:root {
  --yellow: #ffc600;
  --black: #393f4d;
  --grey: #d4d4dc;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  font-family: 'OpenSans', sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: var(--black);
}

body {
  min-height: 100vh;
  letter-spacing: -1px;
  font-size: 15px;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 5px 0;
}

.item {
  display: grid;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  background-color: var(--yellow); 
}

.item p {
  margin: 0 0 5px 0;
}

button {
  background: var(--yellow);
  border: 0;
  padding: 10px 20px;
  color: white;
}

img {
  max-width: 100%;
}


/* .wrapper */

.wrapper {
  display: grid;
  grid-gap: 20px;
}


.hero {
  min-height: 100vh;
  background: var(--yellow);
  background-size: cover;
  padding: 70px;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: flex-end;
}

.hero-image {
  background-image: url("img/hero.jpg");
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.overlay:before{
  position: absolute;
  content:" ";
  top:0;
  left:0;
  width:100%;
  height:100%;
  display: block;
  z-index:0;
  background-color: rgb(255,198,0, 0.8);
}



/* About Section */

.about {
  background: white;
  padding:70px;
  display: grid;
  grid-gap: 30px;
  grid-template-columns: 2fr 5fr;
  justify-content: center;
}

.about-details {
  font-size: 18px;
  font-weight: 500;
  padding: 30px;
}

/* Features! */

.features {
  min-height: 50vh;
  display: grid;
  grid-gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-self: center;
  justify-content: space-evenly;
  
}

.feature {
  padding: 15px;
  border: 1px solid white;
  text-align: center;
  justify-self: stretch;
  align-self: stretch;
}

.feature .icon {
  font-size: 60px;
  color: gray;
  padding: 15px;
}

.modal-header {
  background-color: var(--yellow);
  color: white;
}

.modal-header .fas {
  font-size: 25px;
  padding: 10px;
}

.modal {
  font-size: 15px;
  font-weight: 300;
  color: black;
  text-align: left;
}

.mod-icon {
  font-size: 30px;
  color: gray;
  padding: 20px;
  text-align: center;
}

.mod-gallery {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 15px;
}

.mod-gallery img {
  display: grid;
  grid-template-columns: 1;
  grid-template-rows: 1;
  object-fit: cover;
}

/* Contact Section */

.contact {
  background: var(--yellow);
  padding:70px;
  text-align: center;
}

.ct-icon {
  font-size: 40px;
  color: #ffffff;
  margin: 10px;
}

/* Shadow on text*/
.cursive {
  font-family: 'Cookie', cursive;
  font-size: 85pt;
  text-align: right;
  position: absolute;
  vertical-align: bottom;
}

.hi {
  font-family: 'OpenSans', sans-serif;
  font-size: 55pt;
  text-align: right;
  line-height: -1.2em;
}


.shadow {
  position: relative;
  top: 8px;
  left: 8px;
  display: inline-block;
  color: var(--yellow);
}

.shadow:after {
  z-index: 2;
  content: attr(data-text);
  position: absolute;
  left: -8px;
  top: -8px;
  color: #ffffff;
  text-shadow: 3px 3px var(--yellow);
}

/* Media queries!!*/

@media (max-width: 1000px) {
  .menu {
    order: -1;
    perspective: 800px;
  }
  [aria-controls="menu-list"] {
    display: block;
    margin-bottom: 10px;
  }

  .menu ul {
    max-height: 0;
    overflow: hidden;
    transform: rotateX(90deg);
    transition: all 0.5s;
  }

  [aria-expanded="true"] ~ ul {
    display: grid;
    max-height: 500px;
    transform: rotateX(0);
  }

  [aria-expanded="false"] .close {
    display: none;
  }

  [aria-expanded="true"] .close {
    display: inline-block;
  }

  [aria-expanded="true"] .open {
    display: none;
  }

}

@media (max-width: 800px) {
  .features {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-details {
    font-size: 15px;
    font-weight: 400;
  }
  
  .cursive {
    font-size: 55pt;
    text-align: center;
  }
  
  .hi {
    font-size: 35pt;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .about {
    padding: 10px;
  }
  
  .about-details {
    font-size: 15px;
    font-weight: 400;
  }

  .features h2 {
    grid-template-columns: 1fr 2fr 1fr;
    align-self: center;
  }

  .features h2:before, .features h2:after {
    height: 5px;
  }

  .modal {
    font-size: 14px;
    font-weight: 250;
    color: black;
    text-align: left;
  }


  .modal-header .fas {
    font-size: 18px;
    padding: 5px;
  }

  .cursive {
    font-size: 50pt;
    text-align: right;
    color: #ffffff;
  }
  
  .hi {
    font-size: 20pt;
    text-align: right;
    color: #ffffff;
  }

  .shadow:after {
    visibility: hidden;
    color: #ffffff;
  }

}



