:root {
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #AAAAAA;
    --border-color: #333333;

    --accent: #E50914;
    --accent-hover: #FF2A2A;
    --accent-subtle: #8B0000;

    --success: #00C853;
    --warning: #FFD600;
    --error: #D50000;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-size: 10pt;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
}

#header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: solid 2px var(--border-color);
    align-items: center;
    height: 5vh;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 10;
}

#header-text {
    color: var(--accent);
    font-size: 2rem;
    font-weight: bolder;
}

#header-copy {
    font-size: 1.0rem;
    font-weight: bold;
}

.main-container {
    display: flex;
}

.sidebar {
    grid-area: sidebar;
    background-color: var(--surface-color);
    padding: 20px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar img {
    width: 300px;
}

.sidebar a {
    text-decoration: none;
}

#download-text {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    border: solid 2px var(--border-color);
    border-radius: 4px;
    text-align: center;
    padding: 5px;
    font-size: 2rem;
}

#download-text:hover {
    cursor: pointer;
    background-color: var(--accent-subtle);
    transition: all ease-in 0.3s;
    border-color: var(--accent-hover);
}

.content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.video-container {
    margin-top: 20px;
    margin: 10px;
    width: auto;
    display: flex;
    justify-content: center;
}

.video-container video {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: 1000px;
}

.display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.gallery {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px var(--accent-subtle);
    border-color: var(--accent-hover);
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.matID {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    margin-top: 10px;
}

.desc {
    font-size: 1.0rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

input[type="hidden"] {
    display: none;
}

/* Mobile Styles */
@media (max-width: 1000px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        align-items: center;
        justify-content: center;
    }

    .sidebar img {
        width: 80%;
        max-width: 300px;
    }

    .content-container {
        padding: 10px;
        height: auto;
    }

    .display {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    #header {
        flex-direction: column;
        height: auto;
        text-align: center;
    }
}
