/**************/
/* CSS REMEDY */
/**************/
*, *::after, *::before {
  box-sizing:border-box;  
}
  
  
/*****************/
/* ROOT ELEMENTS */
/*****************/

:root {
  --primary-color: #606c38;
  --secondary-color: #FFFBBD;
}


/*********************/
/* INDEX PAGE STYLING*/
/*********************/


/********************/
/* GENERAL ELEMENTS */
/********************/


* {
  font-family: Arial, Helvetica, sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-image: url("../images/background.png");
  background-size: 1920px 1080px ;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--secondary-color);
  text-decoration: inherit;
  transition: 0.3s;
}

header a:hover, footer a:hover {
  color: black;
  font-size: larger;
}

header, footer {
  background-color: var(--primary-color);
}

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

h1 {
  color: var(--secondary-color);
}

section {
  margin-top: 1em;
  margin-bottom: 1em;
}


/*******/
/* NAV */
/*******/


nav {
  height: 5em;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: sticky;
  top: 0;
}

nav ul {
  background-color: var(--primary-color);
  list-style: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  translate: -100% 0%;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav ul li {
  margin: 1em;
  font-size: 1.5em;
  text-transform: uppercase;
  font-weight: bold;
}

nav button {
  z-index: 1;
  display: flex;
  justify-content: center;
  align-self: center;
  border: none;
  background: none;
  color: #FFFBBD;
  transition: .3s;
  position: absolute;
  left: 2em;
}

nav button:hover {
  color: black;
}

nav.toonMenu ul {
  translate: 0% 0%;
}


@media (min-width:38em) {
  nav {
    order: 0;
    
  }
  
  nav button {
    display: none;
    
  }
  
  nav ul {
    position: static;
    translate: unset;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
  }

  nav ul li {
    margin: 2em;
    font-size: 1em;
  }
  
  nav li {
    flex-basis: 0;
    flex-grow: 0;
    
  }
  
  nav a {
    display: flex;
    flex-direction: column;
    border: none;
  }
  
  header > a:last-of-type {
    display: flex;
    flex-direction: column;
  }
}


/*****************/
/* FIRST SECTION */
/*****************/


section:first-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section:first-of-type h2 {
  margin-top: 2em;
  margin-bottom: .5em;
  color: var(--primary-color);
}

section:first-of-type p:first-of-type {
  max-width: 60vw;
  text-align: center;
  font-size: 1.2em;
  color: var(--primary-color);
}

section:first-of-type p:last-of-type {
  margin-top: .8em;
  font-size: 1.5em;
  color: gray;
  margin: .5em;
  text-align: center;
}

@media (width < 38em) {
  section:first-of-type h2 {
    margin-top: 2em;
    margin-bottom: .5em;
  }
  
  section:first-of-type p:first-of-type {
    max-width: 60vw;
    text-align: center;
    font-size: 1em;
  }
  
  section:first-of-type p:last-of-type {
    margin-top: .8em;
    font-size: 4vw;
  }
}


/******************/
/* SECOND SECTION */
/******************/


section:nth-of-type(2) > div {
  margin: 3em;
  display: grid;
  gap: 2em;
  grid-template-columns: repeat(3, 1fr);
}

section:nth-of-type(2) h2, section:nth-of-type(3) h2, section:nth-of-type(4) h2 {
  color: var(--primary-color);
  text-align: center;
  margin-top: 1em;
  font-size: 2em;
}

section:nth-of-type(2) img {
  display: block;
  width: 100%;
  height: auto;
  border: solid 3px var(--primary-color);
  border-radius: 1em;
}


.container {
  position: relative;
  width: 100%;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: var(--primary-color);
  border-radius: 1em;
}

.container:hover .overlay {
  opacity: 1;
  cursor: not-allowed;
}

section:nth-of-type(2) div div p {
  color: var(--secondary-color);
  font-size: 2vw;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}


@media (width < 38em) {
  section:nth-of-type(2) > div {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(2, 1fr);
  }
}


/*****************/
/* THIRD SECTION */
/*****************/


section:nth-of-type(3) > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3em;
  margin: 2em;
  justify-items:center;
}

section:nth-of-type(3) div img {
  display: block;
  width: 100%;
  height: auto;
  border: solid 5px var(--primary-color);
  border-radius: 1em;
}

.container .btn {
  position: absolute;
  bottom: 5%;
  right: 5%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  transition: .2s ease;
  cursor: pointer;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.container .btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.container:hover {
  cursor: not-allowed;
}

.container .btn:active {
  box-shadow: none;
}


@media (width < 38em) {
  section:nth-of-type(3) > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}


/*****************/
/* MODAL STYLING */
/*****************/


.modal-container {
  background-color: rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-container.capybara-show {
  opacity: 1;
  pointer-events: auto;
}

.modal-container.ghibli-show {
  opacity: 1;
  pointer-events: auto;
}


.modal {
  background-color: var(--primary-color);
  width: 100%;
  height: auto;
  max-width: 70%;
  padding: 2em;
  border-radius: 1em;
  color: var(--secondary-color);
  position: relative;
  cursor: auto;
}

.modal button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  transition: .2s ease;
  cursor: pointer;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  position: absolute;
  right: 1em;
  top: 1em;
}

.modal button:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.modal h3 {
  max-width: 80%;
}

.modal p {
  max-width: 85%;
  margin: 1em;
}

.modal a {
  text-decoration: underline;
}

@media (width < 38em) {
  .modal {
    max-width: 80%;
    min-height: 10em;
  }

  .modal button {
    width: 6em;
    height: 3em;
    font-size: .7em;
    padding: 0px;
  }

}


/******************/
/* FOURTH SECTION */
/******************/


section:nth-of-type(4) > div {
  display: flex;
  margin-bottom: 2em;
}

section:nth-of-type(4) h2 {
  margin: 1em;
  margin-top: 2em;
}

section:nth-of-type(4) h3 {
  color: var(--primary-color);
  margin-top: 1em;
  margin-left: 2em;
  font-size: 2vw;
  width: 100%;
  margin-bottom: .5em;
}

section:nth-of-type(4) p {
  margin-left: 2em;
  width: 100%;
  font-size: 1.5vw;
  color: var(--primary-color);
  margin-top: .5em;
}

.slider-body, .slider-body2 {
  min-width: 60%;
  max-width: 60%;
  height: auto; 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
}


.slider-container, .slider-container2 {
  position: relative; 
  width: 60%; 
  overflow: hidden; 
  border-radius: 1em; 
  border: solid 5px var(--primary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); 
  margin: 1em;
}


.slider, .slider2 {
  display: flex; 
  transition: transform 0.3s ease-in-out;
}


.slide, .slide2 {
  min-width: 100%; 
  height: auto; 
  transition: transform 0.5s ease-in-out;
}


.slide img,.slide2 img  {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}


.prev, .next, .prev2, .next2 {
  position: absolute; 
  top: 50%; 
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none; 
  width: 3em; 
  height: 3em;
  cursor: pointer; 
  border-radius: 50%;
  transition: background-color 0.3s ease; 
}

.prev, .prev2 {
  left: 1em;
}


.next, .next2 {
  right: 1em; 
}


.prev:hover, .next:hover, .prev2:hover, .next2:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

@media (width < 38em) {
  section:nth-of-type(4) > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slider-body, .slider-body2 {
    min-width: 100%;
    max-width: 100%;
  }
  
  section:nth-of-type(4) h3 {
    text-align: center;
    margin-right: 0;
    margin-left: 0;
    font-size: 3vw;
  }
  
  section:nth-of-type(4) p {
    margin-right: 0;
    margin-left: 0;
    text-align: center;
    font-size: 2.5vw;
    padding: 1em;
  }
}


/**********/
/* FOOTER */
/**********/


footer {
  margin-top: auto;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

footer ul li {
  margin: 1em;
}


/*********************/
/* ABOUT PAGE STYLING*/
/*********************/


[class="about"] section {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  margin: 1em;
  text-align: center;
}

[class="about"] section img {
  width:  30vw;
  height: 30vw;
  object-fit: cover;
  border-radius: 50%;
  border: solid 5px var(--primary-color);
}

[class="about"] section div {
  display: block;
  margin: 1em;
}

[class="about"] section h3 {
  width: 80%;
  color: var(--primary-color);
  font-size: 3vw;
  text-align: center;
}

[class="about"] section div p {
  color: var(--primary-color);
  font-size: 1.7vw;
  text-align: center;
}

[class="about"] section div p:first-of-type {
  color: var(--primary-color);
  margin: 1em;
  font-size: 1.7vw;
}

[class="about"] section:last-of-type {
  flex-direction: column;
}

[class="about"] section:last-of-type p {
  color: var(--primary-color);
  font-size: 3vw;
  margin: 1.5em;
  border: solid 5px var(--primary-color);
  padding: .5em;
  border-radius: 1em;
  animation-name: contact-animation;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  transition: 0.3s;
}

[class="about"] section:last-of-type p:hover {
  animation: none;
}

@keyframes contact-animation {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.3;
  }
  100% {
    scale: 1;
  }
}

@media (width < 38em) {
  [class="about"] section h3 {
    font-size: 3.5vw;
  }

  [class="about"] section div p {
    font-size: 2.5vw;
  }

  [class="about"] section div p:first-of-type {
    font-size: 2.5vw;
  }

  [class="about"] section img {
    width:  40vw;
    height: 40vw;
  }

  [class="about"] section:last-of-type p {
    border: solid 2px var(--primary-color);
  }
}