@import url('reset.css');

* {
}

html {
  font-family: Montserrat-Light, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";;

  body {
    height: 100vh;
    color: #111827;
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;

    header {
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      background-color: #f9fafb;

      label {
        cursor: pointer;
        padding: 0.75rem;
        position: absolute;
        top: 0;
      }

      input[type="checkbox"] {
        display: none;
      }

      img {
        background-color: rgb(8 145 178);
        width: 5rem;
        height: 5rem; 
        margin-left: 1.25rem;
        margin-right: 3rem;
      }

      ul {
        display: flex;
        flex-direction: row;
        margin-right: auto;
        font-size: 1.25rem;
        gap: 1.5rem;
        padding-top: 1.5rem;
      }

      input[type="checkbox"]:checked ~ ul {
        padding-left: 1.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        gap: 0.5rem;
        flex-direction: column;
      }

      li {
        cursor: pointer;
      }

      li:hover a {
        color: #9ca3af;
      }

      a {
        display: none;
      }

      @media (min-width: 1024px) {
        a {
          display: inline-block;
        }
      }

      input[type="checkbox"]:checked ~ img {
        display: none;
      }

      input[type="checkbox"]:checked ~ svg:first-of-type {
        display: none;
      }

      input[type="checkbox"]:checked ~ svg:last-of-type {
        display: inline-block;
      }

      svg {
        fill: currentColor;
        height: 1.5rem;
        margin-top: 0.5rem;
        margin-right: 0.5rem;
        display: none;
      }

      @media (min-width: 1024px) {
        svg {
          display: none;
        }
      }

      input[type="checkbox"]:checked ~ svg:last-of-type {
        display: inline-block;
      }

    } /* header */

    main {

      flex-grow: 1;
      display: flex;
      flex-direction: column;

      &.home{
        background-image: url('/assets/img/achievement-1920x1080.png');
        background-repeat: no-repeat;
        background-position: center;
      }

    } /* main */

    footer {
      padding: 0.5rem;
      border-top: 1px solid #e2e8f0;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

      nav {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: space-evenly;

        ul {
          display: flex;
          flex-direction: column;

          li {
            padding-right: 0.5rem;
            cursor: pointer;
          }

          li:hover {
            color: #9ca3af;
          }

        }

      } /* nav */

    } /* footer */

  } /* body */

} /* html */


/* Utils */

li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  display: grid;
  grid-template-columns: 0 90% 0;
  gap: 1.25rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-top: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    grid-template-columns: 15% 40% 1fr;
  }
}

h1 {
  font-weight: inherit;
}

h2 {
  font-weight: inherit;
}
