body {
    margin: 0;
    background-color: #f3e9dd;
}

.ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #171f2c;
    padding: 10px;
    margin: 0;
    color: #f5e0d2;
    position: sticky;
    top: 0;
    z-index: 8888;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #171f2c;
    padding: 10px;
    color: #f5e0d2;
}

.footer > #credits {
    cursor: pointer;
}

.footer > #credits:hover {
    text-decoration: underline;
    color: #bb9773;
}

.ribbon a, .ribbon p {
    font-size: 20px;
    font-weight: bold;
    padding-inline: 10px;
    cursor: pointer;
}

.navigator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.lengthMarker {
    color: gray;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: right;
    padding-right: 5%;
}

.ribbon a:hover, .ribbon p:hover {
    color: #bb9773;
}

.ribbon > .home {
    height: 7vh;
    display: flex;
    border: 4px ridge #263853;
    cursor: pointer;
}

img {
    height: 100%;
    width: auto;
    display: block;
}

.navigator a {
    color: #f5e0d2;
    text-decoration: none;
    margin-right: 10px;
}

#Splash {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #cfb391;
    border-bottom: 6px solid #7a6852;
}

#Splash img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#products {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    background-color: #f3e9dd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

#products h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    margin: 0;
    margin-top: 10px;
    padding: 10px;
    width: 24ch;
    background-color: #332a00;
    border: 5px ridge #272000;
    border-radius: 10px;
    color: #f5e0d2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.outerProductRow {
    max-width: 100%;
    width: max-content;
}

.productRow {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.product {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    height: 100%;
    max-width: 32ch;
    width: 32ch;
    padding: 10px;
    padding-bottom: 0;
    background-color: #1f1749;
    border: 5px ridge #263853;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.product p {
    text-align: center;
}

.product .preview {
    /* make look like a rounded button */
    background-color: #11428b;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 5px;
    justify-self: center;
    justify-content: center;
    font-weight: bold;
    font-size: 25px;
} 

.product .name {
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
    justify-self: center;
    justify-content: center;
}

.product .image_container {
    height: max-content;
    border: 4px ridge #263853;
}

.image_container > img {
    display: block;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.product:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

#previewLayer {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    background-color: rgba(0, 0, 0, 0.8);

    display: none;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

#previewLayer #viewArea {
    width: 100%;
    height: 80%;

    margin-top: 5vh;

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    min-height: 0;
    min-width: 0;
}

.previewBorder {
    flex: 0 0 auto;
    margin: 20px;
}

.previewBorder button {
    background-color: #11428b;
    color: #ffffff;

    padding: 10px 20px;

    border-radius: 10px;
    cursor: pointer;

    font-weight: bold;
    font-size: 25px;
}

#viewArea > #seekArea {
    width: 50%;
    height: 100%;

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    min-width: 0;
    min-height: 0;
}

#seekArea > .image_container {
    height: 100%;
    width: auto;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

#previewImage {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

#aboutTab, #contactTab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 75vh;
    width: 75vh;
    margin-top: 2.5ch;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
    font-size: 20px;
    background-color: rgba(105, 109, 89, 0.5);
    border: 4px ridge #ac9a00;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    padding: 10px;
}

.previewBorder button {
    background-color: #11428b;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 5px;
    justify-self: center;
    justify-content: center;
    font-weight: bold;
    font-size: 25px;
}

#previewLayer #productInfo {
    width: 50%;
    height: auto;

    margin: 0 20px;

    overflow: hidden;

    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
    font-size: 20px;

    background-color: rgba(105, 109, 89, 0.5);

    border: 4px ridge #ac9a00;
    border-radius: 10px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);

    padding: 10px;
}

#productInfo > p {
    overflow-y: auto;

    padding-left: 10px;
    padding-right: 10px;
}

#previewLayer #providers {
    height: 20%;

    display: flex;
    justify-content: center;
    align-items: center;
}

#providers a {
    background-color: #11428b;
    color: #ffffff;

    padding: 10px 20px;

    border-radius: 10px;

    font-weight: bold;
    font-size: 25px;

    cursor: pointer;
}

#providers a:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    text-decoration: underline;
}

body > #credits-content {
    display: none;
}

#credits-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 80%;
    width: 75%;
    margin-top: 2.5ch;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    background-color: rgba(105, 109, 89, 0.5);
    border: 4px ridge #ac9a00;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    padding: 10px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

#credits-content > h2 {
    margin-bottom: 0;
}

#credits-content > hr {
    width: 90%
}

@media (max-width: 768px) {
    .ribbon > .home {
        height: 6vh;
    }

    .ribbon {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .ribbon a, .ribbon p {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #aboutTab {
        width: 85vw;
        height: auto;
    }

    #aboutTab h2 {
        font-size: 25px;
    }

    #aboutTab p {
        font-size: 18px;
    }

    #viewArea > #contactTab {
        width: 85vw;
        height: auto;
    }

    .footer p {
        font-size: 10px;
    }

    #products h2 {
        font-size: 20px;
    }

    .product {
        width: 50vw;
    }

    .product .preview {
        font-size: 20px;
    }

    #previewLayer #viewArea {
        flex-direction: column;
    }

    #viewArea > #seekArea {
        height: 120%;
        width: 100%;
        margin: 5px;
        margin-bottom: 10px;
    }

    #previewLayer #productInfo {
        width: 90%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    #productInfo > h2 {
        margin-top: 0;
        font-size: 24px;
    }

    #previewLayer #providers {
        height: 10%;
        margin-bottom: 50px;
    }
}