* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

#main-logo {
    width: auto;
    max-height: 150px;
}

body {
    background-color: #1E1E1E;
    color: #D0D0D0;
    margin: 0px;
    padding: 80px;

    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    
    font-family: "Anton", sans-serif;
    font-style: normal;
    font-weight: 400;
    text-align: center;
}

h1,h2,h3,h4 {
    font-family: "Anton", sans-serif;
    font-style: bold;
    font-weight: 400;
    font-size:xx-large;
    margin: 0;
}

h2 {
    font-size: larger;
}

img {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
    padding: 0px 0px 20px 0px;
}

.anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: bold;
}

hr {
    width: 50%;
    color: #D0D0D0;
    background-color: #D0D0D0;
    border: none;
    height: 1px;
    margin-top: 20px;
}

a {
    color: #D0D0D0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.game-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    max-width: 600px;
    margin-top: 20px;
}

.top-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    font-weight: bold;
    font-size: x-large;
    margin-bottom: 15px;
}

.day-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    font-size: 18px;
    letter-spacing: 1px;
    pointer-events: none; /* optional: clicks pass through */
}

.header-btn {
    background: none;
    border: none;
    padding: 1px;

    color: #D0D0D0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #D0D0D0;
    padding: 10px 15px;
    margin: 20px;
    border-radius: 8px;
}

#song-tracker {
    display: flex;
    gap: 8px;
}

.song-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #1E1E1E;
    transition: 0.3s;
}

.song-dot.active {
    border: 2px solid white;
    transform: scale(1.2);
}

.song-dot.correct {
    background-color: #28a745;
}

.song-dot.wrong {
    background-color: #dc3545;
}

.soundbite-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.soundbite {
    display: flex;
    position: relative;
    height: 50px;

    border: 2px solid #D0D0D0;
    border-radius: 8px;

    align-items: center;
    overflow: hidden;
    background: #252525;
    transition: opacity 0.3s;
}

.soundbite.locked {
    opacity: 0.3;
    pointer-events: none;
}

.play-clip-btn {
    background: none;
    border: none;
    color: #D0D0D0;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    padding-left: 15px;
}

.hint-text {
    color: #D0D0D0;
    font-size: 1.2rem;
    z-index: 2;
    padding-left: 65%;
}

.progress-filler {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(200,200,200,0.2);
    z-index: 1;
}

.search-wrapper {
    display: flex;
    position: relative;
    height: 50px;
    width: 100%;
    max-width: 450px;
    margin: 20px auto;

    border: 2px solid #D0D0D0;
    border-radius: 8px;

    align-items: stretch;
    background: #252525;
    overflow: visible;
}

.result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #444;
    cursor: pointer;
    text-align: left;
    color: #D0D0D0;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:first-child {
    background-color: #3d3d3d;
    border-left: 4px solid #D0D0D0;
    color: #ffffff;
    padding-left: 20px;
}

.result-item:hover {
    background-color: #D0D0D0;
    color: #252525;
}

#guess-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #D0D0D0;
    padding: 0 15px;
    font-family: "Anton", sans-serif;
    font-size: 1rem;
    outline: none;
}

#submit-btn {
    -webkit-appearance: none;
    appearance: none;

    flex-shrink: 0;
    border-left: 2px solid #D0D0D0;
    height: 100%;
    padding: 0 20px;

    height: 100%;
    z-index: 1001;
    background: #D0D0D0;
    color: #252525;
    border: none;
    padding: 0 20px;
    font-family: "Anton", sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

#submit-btn:hover {
    background: #ffffff;
}

#results-box {
    position: absolute;
    top: 55px;
    left: -2px;
    right: -2px;
    background: #252525;
    border: 2px solid #D0D0D0;
    border-radius: 8px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

/* The Background Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Darken background */
    backdrop-filter: blur(5px); /* Optional: adds a nice blur effect */
    backdrop-filter: blur(8px); /* Blurs the game UI behind the modal */
    -webkit-backdrop-filter: blur(8px);
}

/* The Actual Window Box */
.modal-content {
    background-color: #252525;
    margin: 15% auto;
    padding: 30px;
    border: 2px solid #D0D0D0;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
    color: #D0D0D0;
    position: relative;
    font-family: Arial, sans-serif;
}

.modal-content h2 {
    letter-spacing: 1px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

/* Close Button (X) */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #D0D0D0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #ffffff;
}

input[type=range] {
    background: transparent;
}

/* The Track (The line) */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #444;
    border-radius: 3px;
}

/* The Thumb (The circle you grab) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #D0D0D0;
    cursor: pointer;
    margin-top: -6px; /* Centers thumb on the track */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

input[type=range]:focus {
    outline: none;
}
.archive-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.archive-grid {
    display: grid;
    /* Reduced from 150px to 80px for a tighter fit */
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.archive-card {
    aspect-ratio: 1 / 1; /* Keeps them perfectly square */
    padding: 10px;
    border: 1px solid #D0D0D0; /* Thinner border for smaller boxes */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.archive-card:hover {
    background: #D0D0D0;
    color: #1E1E1E;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(208, 208, 208, 0.4);
}

/* Coming Soon specific compact style */
.archive-card.coming-soon {
    background: transparent;
    border-color: #444;
}

.archive-card.coming-soon:hover {
    transform: none; /* No movement on hover for locked days */
    background: #252525;
}

.archive-card.coming-soon .archive-status {
    color: #ff4444; /* Optional: Red text to signal 'Locked' */
}

.archive-day {
    font-size: 1.1rem; /* Smaller font for Day number */
}

.archive-status {
    font-size: 0.6rem; /* Tiny text for the status */
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.archive-card.finished {
    border-color: #28a745; /* Green border for success */
    background: rgba(40, 167, 69, 0.1);
}

.archive-card.finished .archive-day {
    color: #28a745;
}

.archive-card.finished:hover {
    background: #28a745;
    color: #fff;
}

/* Container for the end-screen buttons */
.archive-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center; 
    margin-top: 25px; /* Adjust this to move the whole pair up or down */
    width: 100%;
}

/* Base style for both buttons */
.back-btn, .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px; 
    flex: 1;      /* Makes them identical width */
    max-width: 180px; 
    padding: 0 20px;
    margin: 0;    /* Force remove any inherited margins */
    
    background-color: #D0D0D0;
    color: #1E1E1E;
    border: none;
    border-radius: 8px;
    
    font-family: "Anton", sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effects for both */
.back-btn:hover, .share-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none; /* Prevents underline on hover */
}

/* Give the Share button a distinct look if desired, or keep them identical */
.share-btn {
    background-color: #444; 
    color: #D0D0D0;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        margin: 0;
        justify-content: flex-start;
    }

    .game-container {
        padding: 1rem;
        width: 100%;
        box-shadow: none;
    }

    img {
        max-width: 80%;
        margin-bottom: 10px;
    }

    h1 { font-size: 1.2rem; }
    h2 { font-size: 1rem; }

    .status-row {
        flex-direction: row;
        justify-content: space-around;
        padding: 5px;
        margin-bottom: 10px;
    }

    .soundbite {
        height: 45px;
        margin-bottom: 8px;
    }

    .hint-text {
        font-size: 0.75rem;
    }

    .search-wrapper {
        height: 45px;
        width: 100%;
    }

    #guess-input {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    #results-box {
        bottom: 50px;
        top: auto;
        border-radius: 8px 8px 0 0;
    }
}