/* this file contains all the styles that are consistent between the 3 pages */


/* global */

html {
    font-size: 62.5%;
}

:root {
    --nav-border: rgba(166, 166, 166, 0.346);
    --body-color: rgb(255, 255, 255);
    --desktop-margin-grey: #808080;
    --active-page-highlight: rgb(43, 167, 167);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    background: linear-gradient(to right, 
        #505050 0%, 
        #c0c0c0 100%
    );
    flex-shrink: 0;
}

.sidebar-left {
    width: 20%;
}

.sidebar-right {
    width: 20%;
    background: linear-gradient(to right, 
        #c0c0c0 0%, 
        #505050 100%
    );
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--body-color);
    border-left: 2px solid #808080;
    border-right: 2px solid #808080;
}


/* header */
header {
    display: flex;
    justify-content: center;

}

.logo img {
    padding: 5px 0 0 0;
    width: 120px;
    height: 120px;
}

/* nav bar */
.navContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    list-style-type: none;
    padding: 20px 0;
    font-size: calc(2rem + 1vw);
    font-family: "Jersey 15", sans-serif;

}

.navContainer a, .navContainer>li {
    text-decoration: none;
    color: black;
    padding: 0 20px;
}

.shop {
    cursor: not-allowed;
}

.navContainer a.active {
    color: var(--active-page-highlight);
}

/* Coming Soon Box */
.coming-soon-box {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background-color: var(--active-page-highlight);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    margin-top: 5px;
    animation: slideDown 0.3s ease-out;
}

.coming-soon-box.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.coming-soon-box.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

nav {
    position: relative;
}

.shop {
    position: relative;
    display: inline-block;
}

/* consistent main content */
main {
    font-size: calc(1rem + 1vw);
}

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

/* footer */
footer {
    /* keeps the footer at the bottom of page */
    margin-top: auto;

    display: flex;
    flex-direction: column;

}

.socials {
    display: flex;
    justify-content: center;
    flex-direction: row;

    padding: 10px 90px;
}

.socials a {
    padding: 10px 30px;
}

.info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    padding: 20px 0;
    font-size: calc(1rem + 1vw);

}

/* fonts */
.jersey-15-regular {
    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* scroll animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    opacity: 0;
}

article:first-of-type {
    opacity: 1;
}

article.fade-in-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* mobile styles */

@media screen and (max-width: 1023px) {
    .sidebar {
        width: 0;
        display: none;
    }

    .content-wrapper {
        flex: 1;
        padding: 0;
        border: none;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* desktop styles */

@media screen and (min-width: 1024px) {
    .content-wrapper {
        padding: 0;
    }

    header, nav, footer {
        background-color: var(--body-color);
    }
}