/** {
    border: 1px solid red;
}*/

html, body {
    /* Prevent the webpage from scrolling horizontally, */
    max-width: 100%;
    overflow-x: hidden;
    /* Remove white border around edges of body. */
    margin: 0;
        /* Set the min-height to the size of the screen to force the body below the header to take up all remaining space. */
        /* Thus removing white border at the bottom of the screen after the body is finished. */
        /* Setting height instead of min-height prevents vertical scrolling, because the body is only as tall as the screen, even if some content is pushed outside of the screen. */
    min-height: 100vh;
    display: flex;
}

/* ----------------------------------------------- */
.slideshow-container {
    width: 100vw;
    overflow: hidden;
}

.slides-wrapper {
    white-space: nowrap; /* Keep the slides in a single line */
    animation: scroll 120s linear infinite; /* Adjust the duration and timing function as needed */
}

.slide {
    display: inline-block; /* Display the slides in a row */
    width: 1300px;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
}

/* Animation keyframes for scrolling effect */
@keyframes scroll {
    0% {
        transform: translateX(calc(1300px / 2));
    }
    100% {
        transform: translateX(calc(-1300px * 10 + 1300px / 2));
    }
}

/* ------------------------------------------------------------------ */


main {
    flex: 1;
    /* Prevent the main body from overlapping with the header. */
    margin-top: 60px;
    font-family: sans-serif;
    /* The main isn't full width by default for some reason. */
    width: 100vw;
    /* Move the text in the body down just a bit. */
    /* Also add a little space at the bottom. */
    padding-bottom: 50px;
    background-color: #003366;
}

header {
    /* For some reason, the details box floats above the header by default. Use this z-index to make sure it goes underneath. */
    z-index: 1;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #414253;
    opacity: 0.95;
    /* Add the shadow to the header. */
	-webkit-box-shadow: 0 8px 9px -6px black;
	   -moz-box-shadow: 0 8px 9px -6px black;
	        box-shadow: 0 8px 9px -6px black;
}

#encode {
    font-family: 'courier-prime', monospace;
    text-shadow: 1px 1px 3px black;
    color: #EEE;
    /* 10px from the top and bottom, 20px from the sides; */
    margin: 10px 20px;
    /* So that things can sit next to the ENcode text in the header. */
    display: inline-block;
    /* Below is for the grow effect. */
    position: relative;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#encode::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#encode:hover {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
}

#encode:hover::after {
    opacity: 1;
}
/* Above code until the next comment above is for the grow effect. */

#privacy {
    float: right;
    font-family: 'courier-prime', monospace;
    text-shadow: 1px 1px 3px black;
    color: #EEE;
    /* 10px from the top and bottom, 20px from the sides; */
    margin: 20px;
    /* So that things can sit next to the ENcode text in the header. */
    display: inline-block;
    /* Below is for the grow effect. */
    position: relative;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#privacy::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#privacy:hover {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
}

#privacy:hover::after {
    opacity: 1;
}
/* Above code until the next comment above is for the grow effect. */

.encode-text {
    font-family: 'courier-prime', monospace;
    font-size: 1.2rem;
}

p {
    color: #EEE;
}

main > p {
    text-align: center;
    margin-bottom: 50px;
}

div {
    display: flex;
    justify-content: center;
}

/* The button class applies the grow and shadow effect to buttons. */
.button {
    font-family: sans-serif;
    text-decoration: none;
    padding: 10px;
    /* Below is for the shadow effect and transition. */
    position: relative;
    display: inline-block;
    border-radius: 5px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.button::after {
    content: "";
    border-radius: 5px;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.button:hover {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.01, 1.01);
}

.button:hover::after {
    opacity: 1;
}

/* Make the details box look clickable rather than like a text input. */
details summary {
    cursor: pointer;
    font-weight: bold;
}

div > details > p {
    text-align: center;
}

details {
    width: 80%;
    background: #EEE;
}

details * {
    color: #111;
}

li {
    margin: 8px 0;
}

li > details {
    width: 100%;
}

li > details > summary {
    font-weight: normal;
}

@media (max-width: 1200px) {
    details {
        width: 70%;
    }
}

@media (max-width: 850px) {
    details {
        width: 85%;
    }
}
