@media (prefers-color-scheme: dark) {
  :root {
   --primary-color : #ef4b3c;
   --secondary-color : #ffbd17;
   --third-color : #1973c0;
   --fourth-color : #1da849;
   --extra-color : #f9b6b1;
   --black : #0c0c0c;
   --white: #f2f2f2;
  }
}
:root {
    --title-font : "Inter", sans-serif;
    --small-text : "Montserrat", sans-serif;
    --primary-color : #ef4b3c;
    --secondary-color : #ffbd17;
    --third-color : #1973c0;
    --fourth-color : #1da849;
    --extra-color : #f9b6b1;
    --black : #0c0c0c;
    --white: #f2f2f2;
}

/* Keyframes and animations */

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes slideIn {
  to {
    left: 0;
    opacity: 1;
  }
}

@keyframes popUp {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    60% {
      transform: scale(1.2);
      opacity: 1;
    }
    100% {
      transform: scale(1);
    }
}

/* General page elements */
*,
*:before,
*:after {
    font-family: var(--small-text);
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}

/* Header */
header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    min-height: 30px;
    border-bottom: var(--border-color) 1px solid;
    text-align: center;
    & .logo {
        justify-self: center;
        padding: 15px;
        width: 100px;
        height: 100%;
    }

    & h1 {
        font-family: var(--title-font);
        color: var(--black);
        padding: 5px;
    }
}

/* Hamburger */

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--small-text);
    font-size: 1.8rem;
    color: var(--black);
    &::before {
        content: "\2630";
    }
    &.show::before {
        content: "\00D7";
    }
}

/* Nav Content */

.navigation {
    display: none;
    background-color: var(--third-color);
    padding: 5px;
    text-align: center;
    &.show {
        display: block; 
    }
    & ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        justify-content: space-around;
        padding: 5px;
        align-items: center;
    }
    & a {
        display: block;
        text-decoration: none;
        color: var(--white);
        font-family: var(--small-text);  
        &:hover {
            background-color: var(--third-color);
            border-radius: 3px;
        }
        &.active {
            /*border-bottom: 2px solid var(--primary-color);*/
            color: var(--secondary-color);
            font-weight: bold;
        }
    }
}

/* Main */

main {
    /* Página Inicial */
    & .home {
        & .slide {
            & .banner {
                max-width: 1000px;
                position: relative;
                margin: auto;
                & .mySlides-fade {
                    display: none;
                    & img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
                /* Next & previous buttons */
                & .prev, .next {
                    cursor: pointer;
                    position: absolute;
                    top: 50%;
                    width: auto;
                    margin-top: -22px;
                    padding: 16px;
                    color: var(--white);
                    font-weight: bold;
                    font-size: 18px;
                    transition: 0.6s ease;
                    border-radius: 0 3px 3px 0;
                    user-select: none;
                }
                /* Position the "next button" to the right */
                & .next {
                  right: 0;
                  border-radius: 3px 0 0 3px;
                }
                /* On hover, add a black background color with a little bit see-through */
                & .prev:hover, .next:hover {
                  background-color: var(--black);
                }
            }    
            /* The dots/bullets/indicators */
            & .dot {
              cursor: pointer;
              height: 15px;
              width: 15px;
              margin: 0 2px;
              background-color: var(--white);
              border-radius: 50%;
              display: inline-block;
              transition: background-color 0.6s ease;
            }
            & .active, .dot:hover {
              background-color: var(--black);
            }
        }
        
        & .who-we-are {
            display: flex;
            flex-flow: column;
            padding: 10px;
            justify-content: center;
            & h2 {
                text-align: center;
                font-family: var(--title-font);
            }
            & p {
                padding: 10px;
                font-family: var(--small-text);
            }
        }
    }
    & .our-definition {
        display: flex;
        flex-flow: column;
        text-align: center;
        & h2 {
            font-family: var(--title-font);
        }
        & .letters {
            padding: 10px;
            & div {
                border: 2px solid var(--white);
                border-radius: 10px;
                padding: 10px;
                margin: 10px;
                & h3 {
                    font-size: xx-large;
                    font-family: var(--title-font);
                }
                & p {
                    padding: 10px;
                    font-family: var(--small-text);
                }
                & .s {
                    color: var(--secondary-color);
                }
                & .e {
                    color: var(--primary-color);
                }
                & .t {
                    color: var(--third-color);
                }
                & .e-late {
                    color: var(--fourth-color);
                }
            }
        }
    }
    & .help-us {
        display: flex;
        flex-flow: column;
        padding: 10px;
        text-align: center;
        justify-content: center;
        & h2 {
            margin: 10px;
            font-family: var(--title-font);
        }
        & p {
            font-family: var(--small-text);
        }
        & q {
            padding: 10px;
            margin: 10px;
            font-family: var(--small-text);
        }
        & button {
            padding: 20px;
            margin: 15px;
            border: 1px solid var(--black);
            border-radius: 10px;
            color: var(--white);
            background-color: var(--third-color);
            font-weight: bold;
        }
    }
    /* Página Sobre */
    & .nos {
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        margin: 10px;
        & img {
            width: 100%;
            height: 50%;
            object-fit: cover;
            border-radius: 15px;
        }
        & div {
            border: 1px solid var(--white);
            border-radius: 15px;
            padding: 10px;
            text-align: center;
            margin: 10px;
            & h2 {
                margin: 10px;
                font-family: var(--title-font);
            }
            & p {
                font-family: var(--small-text);
                margin: 10px;
            }
        }
    }
    & .projetos {
        display: flex;
        flex-flow: column;
        justify-content: center;
        margin: 10px;
        & div {
            border: 1px solid var(--white);
            border-radius: 15px;
            padding: 10px;
            margin: 10px;
            text-align: center;
            & h2 {
                margin: 10px;
                font-family: var(--title-font);
            }
            & h3 {
                font-family: var(--title-font);
            }
            & p {
                font-family: var(--small-text);
                margin: 5px;
            }
        }
    }
}

/* Footer */

footer {
   background-color: var(--white);
   padding: 10px;
   text-align: center;
   margin-top: 20px;
   & p, a {
        color: var(--black);
        padding: 10px;
        text-decoration: none;
        font-family: var(--small-text);
   }
}

.social {
    display: flex;
    justify-content: center;
    column-gap: 8px;
    & a {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    & img {
        width: 33px;
        height: auto;
    }
    & a:hover {
        background-color: var(--third-color);
        border-radius: 10%;
    }
}