* {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

html {    
    color: hsla(0, 0%, 100%, 1);
    font-family: "Inter var", sans-serif;
    font-size: 16px;
    background-color: hsla(222, 10%, 19%, 1);
}

.blue {
    color: hsla(215, 79%, 51%, 1);
}

.pink {
    color: hsla(331, 100%, 56%, 1);
}

.green {
    color: hsla(129, 60%, 53%, 1);
}

.page-title {
    width: 28rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem 0.5rem;
    background-color: hsla(218, 11%, 15%, 1);
    border-radius: 0.75rem;
}



/* Nav Bar */

header {
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    background-color: hsla(222, 10%, 19%, 1);
    border-bottom: 0.1rem solid hsla(218, 11%, 15%, 1);
}

#logo div {
    display: inline-block;  
}

#logo img {
    height: 1.25rem;
    width: auto;
    padding-left: 1.25rem;
    padding-right: 0;
}

#logo-title {
    color: hsla(0, 0%, 100%, 1);
    font-size: 1rem;
    padding-left: 0.25rem;
}

#nav-bar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nav-button {
  float: left;
}

.nav-button a {
  display: block;
  text-align: center;
  padding: 1rem 1rem;
  text-decoration: none;
  color: hsla(225, 7%, 78%, 1);
}

.nav-button a:hover {
    cursor: pointer;
    color: hsla(210, 2%, 78%, 1);
    background-color: hsla(218, 11%, 15%, 1);
    text-decoration: none;
}

.nav-button a:active {
    color: hsla(210, 2%, 78%, 1);
    border: 1px solid hsla(0, 0%, 100%, 1);
}
    


/* Main Content */

main {
    text-align: center;
    position: relative;
    top: 5rem;
}


/* Animation */

.animation {
    letter-spacing: 0.25rem;
    margin: 3rem 0 2rem 0;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    
}

.square {
    margin-top: -6rem;
    margin-bottom: 0.55rem;
}

.square-1 {
    margin-left: 2.4rem;
    animation: hide1 20s infinite ease-out;
}

@keyframes hide1 {
    0%, 25%, 29%, 72%, 76%, 100% {
        opacity: 0;
    }
    28.125%, 75% {
        opacity: 1;
    }
}

.square-2 {
    margin-left: 1.75rem;
    animation: hide2 20s infinite ease-out;
}

@keyframes hide2 {
    0%, 16%, 20%, 25%, 29%, 72%, 76%, 81%, 85%, 100% {
        opacity: 0;
    }
    18.75%, 28.125%, 75%, 84.375% {
        opacity: 1;
    }
}

.square-3 {
    margin-left: 1.5rem;
    animation: hide3 20s infinite ease-out;
}

@keyframes hide3 {
    0%, 25%, 29%, 34.5%, 38.5%, 63%, 67%, 72%, 76%, 100% {
        opacity: 0;
    }
    28.125%, 37.5%, 65.625%, 75% {
        opacity: 1;
    }
}

.square-4 {
    margin-left: 1.65rem;
    animation: hide4 20s infinite ease-out;
}

@keyframes hide4 {
    0%, 25%, 29%, 72%, 76%, 100% {
        opacity: 0;
    }
    28.125%, 75% {
        opacity: 1;
    }
}


#bottom {
    animation: slide 20s infinite ease-in-out;
}

@keyframes slide {
    0%, 100% {
        margin-left: -32.25rem;
    }
    3.125%, 96.875% {
        margin-left: -27.25rem;
    }
    6.25%, 93.75% {
        margin-left: -22.25rem;
    }
    9.375%, 90.625% {
        margin-left: -17.25rem;
    }
    12.5%, 87.5% {
        margin-left: -12.25rem;
    }
    15.625%, 18.75%, 81.25%, 84.375% {
        margin-left: -7.1rem;
        /* more time at this step */
    }
    21.875%, 78.125% {
        margin-left: -2.25rem;
    }
    25%, 28.125%, 71.875%, 75% {
        margin-left: 2.75rem;
        /* more time at this step */
    }
    31.25%, 68.75% {
        margin-left: 7.75rem;
    }
    34.375%, 37.5%, 62.5%, 65.625% {
        margin-left: 12.75rem;
        /* more time at this step */
    }
    40.625%, 59.375% {
        margin-left: 17.75rem;
    }
    43.75%, 56.25% {
        margin-left: 22.75rem;
    }
    46.875%, 53.125% {
        margin-left: 27.7rem;
    }
    50% {
        margin-left: 32.75rem;
    }
} 

/* .description {
    width: 30rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.description p {
    text-align: center;
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.05rem;
} */



/* Input Areas */

#uploads {
    display: inline-flex;
}

#uploads div {
    display: block;
    background-color: hsla(218, 11%, 15%, 1);
    border-radius: 0.75rem;
    padding: 2rem;
    width: 21rem;
    height: 13rem;
    margin: 0.5rem;
}

#uploads h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

#uploads p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

a {
    color: hsla(215, 79%, 51%, 1);
    font-size: 1rem;
} 

a:hover {
    cursor: pointer;
    color: hsla(215, 79%, 41%, 1);
    text-decoration: underline;
}

a:active {
    color: hsla(215, 79%, 51%, 1);
    text-decoration: none;
}


/* Button */

.button {
    border: 0.06rem none hsla(215, 79%, 51%, 1);
    text-decoration: none;
    color: hsla(0, 0%, 100%, 1);
    background-color: hsla(215, 79%, 51%, 1);
}

button:hover {
    cursor: pointer;
    background-color: hsla(215, 79%, 41%, 1);
}

.button-primary {
    padding: 0.63rem 1rem;
    font-size: 1.75rem;
    margin-top: 1.5rem;
    letter-spacing: 0.2rem;
    border-radius: 0.32rem;
}

.button-secondary {
    pointer-events: none;
    position: relative;
    z-index: 3;
    border-radius: 0.1rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    width: 5.3rem;
    margin-left: 0.70rem;
    margin-top: -1.25rem;
}




/* Explanation Sections */

.explanation-whole {
    border-top: 0.1rem solid hsla(218, 11%, 15%, 1);
    margin-top: 8rem;
}

.explanation-title {
    margin-top: 8rem;
    margin-bottom: 2rem;
}

.explanation {
    padding: 2rem;
    text-align: left;
    background-color: hsla(218, 11%, 15%, 1);
    border-radius: 0.75rem;
    padding: 2rem;
    width: 45rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.explanation h3 {
    margin-bottom: 2rem;
    color: hsla(215, 79%, 51%, 1);
}

.explanation p {
    margin-bottom: 1rem;
    line-height: 1.4rem;
}

.blank {
    height: 10rem;
}


/* Footer */

footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    letter-spacing: 0.05rem;
    line-height: 2rem;
    margin-left: 1rem;
    border-top: 0.1rem solid hsla(218, 11%, 15%, 1);
    padding: 1rem 0;
}

#footer-first-line {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
}

#logo-footer div {
    display: inline-block;  
    font-size: 1.5rem;
}

#logo-footer img {
    height: 1.75rem;
    width: auto;
    padding-left: 0;
    padding-right: 0;
    
}

.disclaimer {
    font-size: 0.75rem;
    margin-right: 2rem;
}


/* Screen size differences */

#logo-page-hero div {
    display: inline-block;
}


#logo-page-hero img {
    height: 2rem;
    width: auto;
}

#logo-page-hero h1 {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}


.small-screen {
    display: none;
}


@media only screen and (max-width: 845px) {
    .small-screen {
        display: block;
        position: fixed;
        top: 0;
        z-index: 2;
        width: 100%;
        text-align: center;
        margin-top: 8rem;
    }
    
    .small-screen h2 {
        margin-bottom: 2rem;
    }
    
    header {
        display: none;
    }
    
    main {
        display: none;
    }
    
    footer {
        display: none;
    }
}

@media only screen and (min-width: 1700px) {
    .square-1 {
        margin-left: 2.5rem;
        animation: hide1 20s infinite ease-out;
    }

    .square-2 {
        margin-left: 1.25rem;
        animation: hide2 20s infinite ease-out;
    }

    .square-3 {
        margin-left: 1rem;
        animation: hide3 20s infinite ease-out;
    }

    .square-4 {
        margin-left: 1rem;
        animation: hide4 20s infinite ease-out;
    }

    @keyframes slide {
        0%, 100% {
            margin-left: -29rem;
        }
        3.125%, 96.875% {
            margin-left: -24.5rem;
        }
        6.25%, 93.75% {
            margin-left: -20rem;
        }
        9.375%, 90.625% {
            margin-left: -15rem;
        }
        12.5%, 87.5% {
            margin-left: -11rem;
        }
        15.625%, 18.75%, 81.25%, 84.375% {
            margin-left: -6.25rem;
        }
        21.875%, 78.125% {
            margin-left: -1.75rem;
        }
        25%, 28.125%, 71.875%, 75% {
            margin-left: 2.75rem;
        }
        31.25%, 68.75% {
            margin-left: 7.25rem;
        }
        34.375%, 37.5%, 62.5%, 65.625% {
            margin-left: 12rem;
        }
        40.625%, 59.375% {
            margin-left: 16.5rem;
        }
        43.75%, 56.25% {
            margin-left: 21.2rem;
        }
        46.875%, 53.125% {
            margin-left: 25.2rem;
        }
        50% {
            margin-left: 30.25rem;
        }
    } 
}