* {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
}

body {
    overflow-x: hidden;
}

#header {
    position: sticky;
    left: 0.5vw;
    right: 0.5vw;
    top: 0.5vw;
    width: 99vw;
    height: 10vh;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4); /* Slightly transparent white */
    backdrop-filter: blur(10px); /* Apply the blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-shadow: 0px 0 10px -2px #888;
    display: flex;
    align-items: center;
    z-index: 100;
}

#header-title {
    cursor: pointer;
    user-select: none;
    padding: 1vh;
    margin-left: 1vw;
    font-size: 2vh;
}

#header-right {
    user-select: none;
    padding: 1vh;
    margin-left: auto;
}

#header-right > * {
    cursor: pointer;
    margin-right: 1vw;
    font-size: 1.7vh;
}

#nav-button {
    font-size: 30px;
    height: 100%;
    vertical-align: middle;
    margin: 0 10px 0 10px;
    cursor: pointer;
}

@media (max-width: 600px) {
    #header-right > span,
    #header-right > .buy-button {
        display: none;
    }

    #nav-button {
        display: inline;
    }
}
@media (min-width: 601px) {
    #header-right > span,
    #header-right > .buy-button {
        display: inline;
    }

    #nav-button {
        display: none;
    }
}

.buy-button {
    padding: 1.2vh;
    background: royalblue;
    border: none;
    border-radius: 20px;
    outline: none;
    color: white;
    cursor: pointer;
    transition: box-shadow 0.5s ease-in-out;
}

.buy-button:hover {
    box-shadow: 0 0 4px #00bfff;
}

.buy-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow:
        1px 1px 2px #00bfff,
        -1px -1px 4px #1e90ff,
        1px -1px 6px #4169e1,
        -1px 1px 8px #6495ed;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: bluePulse 1.5s infinite alternate;
    pointer-events: none;
    z-index: -1;
}

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

@keyframes bluePulse {
    0% {
        transform: translate(0px, 0px);
    }
    100% {
        transform: translate(2px, -2px);
    }
}

#nav-bar {
    position: fixed;
    height: 100vh;
    width: 80vw;
    top: 0;
    right: -80vw;
    background-color: white;
    z-index: 10000;
    transition: 0.6s;
}

#nav-bar > table {
    float: right;
    text-align: right;
    margin-right: 10vw;
    margin-top: 5vh;
    border-collapse: collapse;
    border-spacing: 100px;
}

#garage-boundary {
    position: relative;
    left: 0;
    margin-left: 0;
    height: 1000px;
    background: transparent;
    margin-bottom: 2rem;
}

#garage-container {
    position: sticky;
    top: 50%;
    left: 50%;
    width: 50vw;
    aspect-ratio: 4/3;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    z-index: 50;
    overflow: hidden;
    pointer-events: none;
    border-radius: 4px;
}

#garage-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;

    /*TODO: Make rotating oscillating background*/
}

.rotater {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #4e9af1 0%, #2b6cb0 100%);
    border-radius: 50% / 50%;
    z-index: -1;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    0% {
        border-radius: 50% / 50%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 40% / 40%;
    }
    100% {
        border-radius: 50% / 50%;
        transform: rotate(360deg);
    }
}

#garage-door {
    width: calc(100% - 8px);
    height: calc(100% - 8px);

    background:
            /* Horizontal panel lines */
        repeating-linear-gradient(
            to bottom,
            #d0d0d0 0px,
            #d0d0d0 60px,
            #c0c0c0 60px,
            #c0c0c0 62px
        ),
        /* Vertical panel dividers */
            repeating-linear-gradient(
                to right,
                transparent 0px,
                transparent 160px,
                rgba(0, 0, 0, 0.05) 160px,
                rgba(0, 0, 0, 0.05) 162px
            ),
        /* Subtle metallic gradient */
            linear-gradient(to bottom, #e0e0e0, #bcbcbc);
    border: 4px solid #999;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.15),
        0 0 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0%);
    transition: transform 0.3s ease-in-out;
    border-radius: 4px;

    transform: translateY(0%);
    transition: transform 0.1s ease-out;
}

.title {
    position: relative;
    left: 0;
    margin-left: 0;
    width: 100vw;
    text-align: center;
    font-size: 3vw;
}
