* {
  box-sizing: border-box;
}

header {
  display: inline;
}

main {
  padding: 20px;
  overflow: auto;
}

nav {
  margin: 0 auto;
  background-color: #DBE2EF;
  top: 0;
  position: sticky;
} n


.flex-row {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}

.box {
  flex-basis: 25%;
  background-color: #F9F7F7;
  margin: 0 15px 0 0;
  box-sizing: border-box;
  overflow: hidden;
}

.box h3 {
  background-color: #F2EDD7;
  color: FFC996;
  padding: 3px;
  border-radius: 5px 30px 5px 30px;
}

.box img {
  height: 150px;
  float: none;
}

.nav-left {
  margin-left: 60px;
  flex-basis: 25%;
  padding: 10px;
  /* text-align: left; */
  color: white;
}

.nav-right {
  flex-basis: 75%;
  /* text-align: right; */

  word-spacing: 1vw;
  margin-right: 60px;
}

nav img {
  display: inherit;
  width: 100%;
  height: auto;
}

nav ul {
  list-style: none;
  margin-top: 25px;
  text-align: right;
  position: relative;
}

nav li {
  display: inline;
  list-style-type: none;
  margin-right: 10px;
}

nav a {
  font-size: 1.2em;
  font-weight: 400;
  text-decoration: none;
  color: #3A6351;
}
nav a:hover {
  color: #f4f4f4;
  font-weight: bolder;
}

body {
  background-color: #DBE2EF;
  color: #40514e;
  margin: 0;
  text-align: center;
  font-family: "Merriweather", serif;
  top: 0;
}
.content {
  width: 78%;
  float: left;
  padding-top: 20px;
  border: none;
}

aside {
  width: 22%;
  padding-left: 20px;
  right: 0;
  display: block;
  position: fixed;
  float: right;
  margin-right: 15px;
}

aside img {
  width: 60%;
  height: auto;
  border: none;
}

aside p {
  display: inline;
}

.social {
  width: 10%;
}

.round {
  /* Safari 3-4, iOS 1-3.2, Android 1.6- */
  -webkit-border-radius: 50%;

  /* Firefox 1-3.6 */
  -moz-border-radius: 50%;

  /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */
  border-radius: 50%;
}

article {
  display: block;
  margin-bottom: 150px;
}

#exp {
  margin-right: 40px;
  margin-left: 40px;
}

.skill-row {
  width: 80%;
  margin: 0px auto 100px auto;
  text-align: left;
  display: block;
}

.left-img {
  width: 25%;
  float: left;
  margin-right: 30px;
}

.right-img {
  width: 25%;
  float: right;
  margin-left: 30px;
}

.card {
  box-shadow: 2px 6px 10px 2px rgba(78, 133, 235, 0.2);
  border-radius: 8px;
  padding: 5px;
  margin-top: 5px;
}

#diri {
  width: 45%;
}

#about {
  line-height: 1;
}

footer {
  background-color: #DBE2EF;
  padding: 5px 0 5px 0;
  position: relative;
  color: #112D4E;
}

h1 {
  color: #112D4E;
  font-size: 6.625rem;
  margin: 50px auto 0 auto;
  font-family: "Fira Sans", sans-serif;
}

h2 {
  color: #112D4E;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: normal;
  /* padding-bottom: 10px; */
}

h3 {
  color: #3A6351;
  font-family: "Montserrat", sans-serif;
}

p {
  line-height: 2;
}

hr {
  border: dotted #40514e 6px;
  border-bottom: none;
  width: 4%;
  margin: 100px auto;
}

a {
  color: #00A19D;
  font-family: "Montserrat", sans-serif;
  margin: 10px 20px;
  text-decoration: none;
}

a:hover {
  color: #eaf6f6;
}

#myBtn {
  /*    display: none;  Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #67b8ae; /* Set a background color */
  color: #ffff; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 120px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  opacity: 30%;
}

#myBtn:hover {
  background-color: #000; /* Add a dark-grey background on hover */
  opacity: 50%;
}

.iconmode {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  background-position: center;
  transition: all 0.5s linear;

}
.iconmode:hover {
  border-radius: 100px;
}

.check {
  display: none;
}

@media screen and (max-width: 1024px) {
  .flex-row {
      flex-direction: column;
  }

  .nav-left {
      flex-basis: 100%;
      margin: 10px 0px 0px 10px;
  }

  .nav-right {
      flex-basis: 100%;
      text-align: center;
      margin: 0;
      padding-right: 32px;
  }

  nav img {
      position: relative;
      max-width: 60%;
      margin-left: auto;
      margin-right: auto;
  }

  nav ul {
      /* display: none; */
      text-align: center;
      margin-top: 0px;
      word-spacing: normal;
  }

  nav li {
      font-size: 3vw;
      text-align: center;
  }

  .content {
      width: 100%;
      position: static;
      left: 0;
  }

  .left-img {
      width: 100%;
      float: none;
      margin-right: auto;
      margin-left: auto;
  }

  .right-img {
      width: 100%;
      float: none;
      margin-right: auto;
      margin-left: auto;
  }

  h1 {
      font-size: 2.625rem;
  }

  aside {
      width: 100%;
      padding-left: 0;
      text-align: center;
      display: block;
      position: static;
      margin-right: auto;
  }
}

@media screen and (max-width: 360px) {
  nav {
      margin: 0 0 0 0;
      height: 90px;
  }
  nav li {
      display: none;
      margin-bottom: 0;
  }
}