* {
  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: 22rem;
    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 25s infinite ease-out;
}

@keyframes hide1 {
    0%, 24%, 27.5%, 74%, 77.5%, 100% {
        opacity: 0;
    }
    26.46%, 76.46% {
        opacity: 1;
    }
}

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

@keyframes hide2 {
    0%, 15%, 18.5%, 24%, 27.5%, 74%, 77.5%, 82.75%, 86.25%, 100% {
        opacity: 0;
    }
    17.64%, 26.46%, 76.46%, 85.28% {
        opacity: 1;
    }
}
    

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

@keyframes hide3 {
    0%, 24%, 27.5%, 33%, 36%, 65%, 68.5%, 74%, 77.5%, 100% {
        opacity: 0;
    }
    26.46%, 35.28%, 67.64%, 76.46% {
        opacity: 1;
    }
}

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

@keyframes hide4 {
    0%, 24%, 27.5%, 74%, 77.5%, 100% {
        opacity: 0;
    }
    26.46%, 76.46% {
        opacity: 1;
    }
}


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

@keyframes slide {
    0%, 100% {
        margin-left: -35rem;
    }
    2.94%, 97% {
        margin-left: -29.75rem;
    }
    5.88%, 94.06% {
        margin-left: -24.75rem;
    }
    8.82%, 91.16% {
        margin-left: -19.75rem;
    }
    11.76%, 88.22% {
        margin-left: -14.75rem;
    }
    14.7%, 17.64%, 82.34%, 85.28% {
        margin-left: -9.5rem;
/*         more time this step */
    }
    20.58%, 79.4% {
        margin-left: -4.75rem;
    }
    23.52%, 26.46%, 73.52%, 76.46% {
        margin-left: 0.25rem;
/*         more time this step */
    }
    29.4%, 70.95% {
        margin-left: 5.25rem;
    }
    32.34%, 35.28%, 64.7%, 67.64% {
        margin-left: 10rem;
/*         more time this step */
    }
    38.22%, 61.76% {
        margin-left: 15rem;
    }
    41.16%, 58.82% {
        margin-left: 20rem;
    }
    44.1%, 55.88% {
        margin-left: 25rem;
    }
    47.09%, 52.94% {
        margin-left: 30rem;
    }
    50% {
        margin-left: 35rem;
    }
    
}



/* Input Areas */

#uploads {
    display: inline-flex;
}

#uploads div {
    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(331, 100%, 56%, 1);
    font-size: 1rem;
} 

a:hover {
    cursor: pointer;
    color: hsla(331, 100%, 46%, 1);
    text-decoration: underline;
}

a:active {
    color: hsla(331, 100%, 56%, 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(331, 100%, 56%, 1);
}

button:hover {
    cursor: pointer;
    background-color: hsla(331, 100%, 46%, 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(331, 100%, 56%, 1);
}

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

.blank {
    height: 10rem;
}

/* article {
    display: none;
} */

/* .custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
} */


/* 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 25s infinite ease-out;
    }

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

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

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

    @keyframes slide {
        0%, 100% {
            margin-left: -31.5rem;
        }
        2.94%, 97% {
            margin-left: -27rem;
        }
        5.88%, 94.06% {
            margin-left: -22rem;
        }
        8.82%, 91.16% {
            margin-left: -17.25rem;
        }
        11.76%, 88.22% {
            margin-left: -13rem;
        }
        14.7%, 17.64%, 82.34%, 85.28% {
            margin-left: -8.25rem;
        }
        20.58%, 79.4% {
            margin-left: -4rem;
        }
        23.52%, 26.46%, 73.52%, 76.46% {
            margin-left: 0.25rem;
        }
        29.4%, 70.95% {
            margin-left: 5.2rem;
        }
        32.34%, 35.28%, 64.7%, 67.64% {
            margin-left: 9.5rem;
        }
        38.22%, 61.76% {
            margin-left: 14.25rem;
        }
        41.16%, 58.82% {
            margin-left: 18.5rem;
        }
        44.1%, 55.88% {
            margin-left: 23rem;
        }
        47.09%, 52.94% {
            margin-left: 27.5rem;
        }
        50% {
            margin-left: 32rem;
        }
    }
}

