@font-face {
  font-family: Hello;
  src: url(../../fonts/hello/Hello.otf);
}
@font-face {
  font-family: Hello;
  src: url(../../fonts/hello/Hello.ttf);
}
@font-face {
  font-family: Louis;
  src: url(../../fonts/louis_george_caf/Louis\ George\ Cafe.ttf);
}
html {
  scroll-behavior: smooth;
}

/*body*/
body {
  background: #f2e9e4;
  background-repeat: no-repeat;
  font-family: Louis !important;
}

/*header*/
header {
  width: 100%;
  height: 100px;
  margin-top: 0px;
}
header h1 {
  position: absolute;
  text-align: left;
  color: rgb(73, 39, 19);
  font-family: Hello !important;
  font-size: 50px;
  margin-top: -20px;
  margin-left: 30px;
}

/*nav bar*/
nav {
  width: 100%;
  height: 50px;
  padding-top: 40px;
  padding-bottom: 20px;
  overflow: auto;
}
nav ul {
  text-align: right;
  margin: 0;
  padding: 0;
  font-size: 18px;
  margin-right: 30px;
}
nav ul li {
  display: inline-block;
  margin: 0px 20px;
}
nav ul li:first-child {
  margin-left: 15px;
}
nav li a {
  text-decoration: none;
  color: rgb(73, 39, 19);
}
nav li a.active {
  color: #cb9a7c;
}
nav li a:hover {
  color: #cb9a7c;
}

/*banner*/
#banner {
  width: 100%;
  height: 35vh;
  background-color: #cb9a7c;
  background-image: url(../../img/bears.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: center;
}

/*main*/
main {
  max-width: 1280px;
  position: relative;
  margin: 0px auto;
}
main h2 {
  font-size: 40px;
  padding-top: 20px;
  color: rgb(73, 39, 19);
}
main h3 {
  padding-left: 25px;
  font-size: 25px;
  color: rgb(73, 39, 19);
}
main h4 {
  padding-left: 30px;
  font-size: 20px;
  color: rgb(73, 39, 19);
}
main h5 {
  padding-top: 50px;
  padding-left: 30px;
  font-size: 20px;
  color: rgb(73, 39, 19);
}
main p {
  font-size: 18px;
  padding-right: 25px;
}
main div {
  background-color: #e5d8d1;
  border-radius: 50px;
}

/*about me*/
.aboutme {
  display: grid;
  grid-template-columns: 1fr 2fr;
}
.aboutme img {
  height: 250px;
  padding-top: 20px;
  padding-left: 20px;
}

/*exercises*/
.exercise {
  display: grid;
  grid-template-columns: 2fr 1fr;
}
.exercise p {
  padding-left: 25px;
}
figure {
  position: relative;
  height: 250px;
  width: 250px;
}
figure img {
  position: absolute;
  top: 0;
  left: 0;
  height: 250px;
  border-radius: 50px;
}
.angry {
  opacity: 1;
}
.calm {
  opacity: 0;
}
.angry:hover {
  opacity: 0;
}
.calm:hover {
  opacity: 1;
}
#bear,
#bear2,
#bear3 {
  transition: transform 0.5s;
  width: 250px;
}
#bear:hover {
  transform: rotate(360deg);
}
#bear2:hover {
  transform: scale(1.5);
}
.translate {
  transform: translateX(-400px);
}
code {
  font-family: Louis !important;
}
article {
  position: relative;
}
article section {
  position: absolute;
  width: 400px;
  background-color: #cb9a7c;
  transition: transform 0.5s;
  top: 74px;
  left: -400px;
  border-radius: 0px 20px 20px 0px;
}
article section nav {
  width: 400px;
  text-align: right;
  background-color: #cb9a7c;
  padding: 10px;
  border-radius: 10px;
  height: 28px;
}
article section#info-mask {
  height: 166px;
  z-index: 1;
  background-color: #f2e9e4;
  border-radius: 0px;
}
.visible {
  transform: translateX(400px);
}
.cloud {
  height: 257px;
  background-image: url(../img/clouds.png);
  background-size: cover;
  /*background-repeat: no-repeat;*/
  transform: translate(-30px) rotateX(40deg) rotateZ(30deg);
  border-radius: 45px;
  box-shadow: 8px 10px 5px #e7e7f7, 24px 44px 20px rgba(210, 185, 171, 0.8);
  transition: 0.7s ease-in-out transform, 0.7s ease-in-out box-shadow;
}
.cloud:hover {
  background-image: url(../img/stars.png), url(../img/clouds.png);
  transform: translateX(-30px) translateY(-25px) rotateX(40deg) rotateZ(30deg);
  box-shadow: 8px 10px 5px #e7e7f7, 40px 70px 20px rgba(210, 185, 171, 0.6);
}
.cloud p {
  font-family: Hello !important;
  font-size: 40px;
  font-weight: bold;
  color: #7373ec;
  text-align: center;
  transform: translateY(-80px);
  transition: 0.6s ease-in-out;
  opacity: 0;
}
.cloud:hover p {
  opacity: 1;
  text-shadow: 10px 6px 6px #fbf2f0;
}
.exercise5 {
  display: grid;
  grid-template-columns: 1fr;
}
.exercise5 p {
  padding-left: 25px;
}
.balloon {
  width: 400px;
  animation-name: flying;
  animation-duration: 9s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}
@keyframes flying {
  0% {
    transform: translateX(0px);
  }
  /*25% {
    transform: translateX(400px) translateY(-50px);
  }*/
  48% {
    transform: translateX(800px);
  }
  50% {
    transform: rotateY(180deg) translateX(-800px);
  }
  98% {
    transform: translateX(0px) rotateY(180deg);
  }
  100% {
    transform: translateX(0px);
  }
}
/*footer*/
footer h3 {
  color: rgb(73, 39, 19);
  text-align: center;
  font-size: 25px;
}
footer p {
  text-align: center;
}

/*@media screen and (max-width: 900px) {
  .aboutme {
    grid-template-columns: 1fr 1fr;
  }
  .exercise {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 620px) {
  .aboutme {
    grid-template-columns: 1fr;
  }
  .exercise {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 640px) {} */
