* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    position: relative;
    margin: 0;
    padding: 0;
    background-image: url("../images/endless-constellation.svg");
    background-repeat: repeat;
    background-size: 100%;
    color: #333;
    z-index: -1;
}

header {
    margin: 5px;
    padding: 5px;
}

.header-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

    .header-links .btn {
        text-decoration: none;
        font-weight: bold;
        color: white;
    }

    .header-links a:hover {
        color: #0f0;
        text-decoration: none;
    }


#section1 {
    height: 100vh;
}

#title {
    margin: 5px;
    padding: 5px;
    font-size: 2.75rem;
    color: black;
    text-shadow: 1px 2px 3px #ffffff;
}

#p1 {
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

#container {
    display: flex;
    position: relative;
    justify-content: center;
    margin: 5px;
    padding: 5px;
}

.device-frame {
    display: block;
}

#device-screen {
    position: absolute;
    width: 260px;
    height: 535px;
    margin-top: 16px;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

.device-content {
    display: flex;
    flex-direction: row;
}
    .device-content img {
        width: 260px;
        height: 535px;
        border-radius: 20px;
        scroll-snap-align: start;
    }

.nav-arrow {
    position: absolute;
    top: 50%;
    border-radius: 100%;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: rgba(0,0,0,0);
    color: #fff;
}
    .nav-arrow:hover {
        color: yellow;
    }

    .nav-arrow:disabled {
        opacity: 0.35;
        cursor: default;
    }

.nav-left {
    left: 37%;
}

.nav-right {
    right: 37%;
}

#section2 {
    display: flex;
    margin: 50px auto;
    justify-content: center;
    gap: 10%;
    padding: 5px;
    font-size: 1.2rem;
    color: white;
}

#section2 h1 {
    text-align: center;
}

.details {
    width: 40%;
}

#container2 {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.feature {
    margin: 5px;
    padding: 5px;
    width: 30%;
    border-radius: 10px;
    box-shadow: 0px 0px 7px rgba(255, 255, 255, 0.1);
    color: white;
    background-color: #000000;
}

.feature h3 {
    text-align: center;
    text-decoration: underline;
}

    .feature li {
        margin: 5px;
        padding: 5px;
    }

#section4 {
    margin: 100px auto;
    padding: 5px;
    z-index: 1;
}

    #section4 h1 {
        text-align: center;
        color: white;
        margin: auto;
        box-shadow: 0px 3px 1px rgba(255, 255, 255, 0.1);
        width: 30%;
    }

pre {
    text-align: left;
    width: max-content;
    margin: 0 auto;
}

#container3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px auto;
    padding: 5px;
    gap: 20px;
}

#section5 h1 {
    text-align: center;
    color: white;
    margin: auto;
    padding-bottom: 20px;
}

#section5 p {
    text-align: center;
    color: white;
    margin: auto;
    width: 50%;
    padding-bottom: 20px;
    font-size: 1.2rem;
}

.title {
    width: 100%;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.container4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px auto;
    padding: 5px;
    gap: 20px;
}

    .container4 h3 {
        text-align: center;
        color: white;
    }

    .container4 code {
        color: white;
    }

.before, .after {
    background-color: rgb(8, 8, 8);
    width: auto;
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    margin: 20px 0;
}

#section6 h1 {
    text-align: center;
    color: white;
    margin: auto;
    padding-bottom: 20px;
}

#section6 p {
    text-align: center;
    color: white;
    margin: auto;
    width: 50%;
    padding-bottom: 20px;
    font-size: 1.2rem;
}

#database {
    color: white;
    text-align: center;
    padding: 20px 0;
}

#database-section2 {
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
    padding: 10px;
}

.db-sec2 {
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.1);
    flex: 1 0 30%;
    margin: 5px;
    text-align: center;
    background-color: rgb(0, 0, 0);
}

    .db-sec2 pre {
        text-align: left;
        margin: 0px 40px;
        width: max-content;
    }

#db-section3 {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    padding: 10px;
}
    #db-section3 h3 {
        text-align: center;
    }

.db-s3 {
    width: 40%;
    margin: 0 auto;
    text-align: left;
    padding-bottom: 40px;
}

#snhu {
    text-align: center;
    color: white;
    padding: 40px;
}

#video-sec {
    text-align: center;
    padding: 40px;
}

    #video-sec .video {
        width: 1000px;
        height: 600px;
    }

#enhancements {
    display: flex;
    flex-direction: column;
    gap: 150px;
    padding: 20px;
}
    #enhancements h3 {
        text-decoration: underline;
        padding-bottom: 20px;
    }

.enhancement {
    text-align: left;
}

#last-section {
    color: white;
    text-align: center;
    padding: 80px 0 20px 0;
}
    
    
/* Footer */
#copy {
    color: red;
    text-align: center;
    width: 100%;
}

@media screen and (max-width: 768px) {
    header {
        gap: 8px;
        align-items: center;
    }

    .header-links {
        margin: 8px 12px 14px;
        justify-content: flex-start;
        gap: 15px;
    }

    #title {
        font-size: 1.75rem;
        text-align: center;
        text-shadow: 0 1px 2px #ffffff;
    }

    #container {
        margin: 10px auto;
        padding: 5px 0;
    }

    #device-screen {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        touch-action: pan-x;
        pointer-events: auto;
    }

    .device-content {
        display: flex;
        flex-direction: row;
    }

        .device-content img {
            scroll-snap-align: start;
        }

    .nav-arrow {
        display: none;
    }

    #section2 {
        flex-direction: column;
        gap: 24px;
        padding: 10px 12px;
        font-size: 1rem;
    }

        #section2 .details {
            width: 100%;
        }

        #section2 h1 {
            font-size: 1.5rem;
        }

    #container2 {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0 12px;
    }

    .feature {
        width: 100%;
        max-width: 640px;
    }

    #section4 h1 {
        width: 90%;
        font-size: 1.5rem;
    }

    #container3 {
        gap: 16px;
        padding: 0 12px;
    }
        #container3 .feature {
            width: 100%;
            max-width: 640px;
        }

    #section5 h1,
    #section6 h1 {
        font-size: 1.5rem;
    }

    #section5 p,
    #section6 p {
        width: 90%;
        font-size: 1rem;
    }

    .container4 {
        flex-direction: column;
        gap: 16px;
        padding: 0 12px;
    }

    .before,
    .after {
        width: 100%;
        overflow-x: auto;
        font-size: 0.9rem;
        line-height: 1.45;
        padding: 10px 12px;
    }

    #database-section2,
    #db-section3 {
        flex-direction: column;
        gap: 12px;
        padding: 0 12px;
    }

    .db-sec2,
    .db-s3 {
        flex: 1 1 auto;
        width: 100%;
        margin: 0;
        text-align: left;
    }

        .db-sec2 pre {
            margin: 0;
            padding: 12px;
            max-width: 100%;
            box-sizing: border-box;
            overflow-x: auto;
            white-space: pre;
            font-size: 0.9rem;
        }


    /* Footer */
    #copy {
        padding: 0 12px;
    }
}