* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;

    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    transition: background-image 0.5s ease-in-out;
}


body.monday-bg {
    background-image: url('/monday.gif');
}

body.tuesday-bg {
    background-image: url('/tuesday.gif');
}

body.wednesday-bg {
    background-image: url('/wednesday.gif');
}

body.thursday-bg {
    background-image: url('/thursday.gif');
}

body.friday-bg {
    background-image: url('/friday.gif');
}

body.saturday-bg {
    background-image: url('/saturday.gif');
}

body.sunday-bg {
    background-image: url('/sunday.gif');
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(30, 30, 30, 0.75);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}
.view-switcher-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.view-switcher-btn {
    flex: 1;
    padding: 12px;
    background-color: #03dac6;
    color: #121212;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.view-switcher-btn:hover {
    background-color: #01b8a5;
}

.back-btn {
    background: none;
    border: none;
    color: #03dac6;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
    align-self: flex-start;
}

h1 {
    text-align: center;
    color: #bb86fc;
}
h2 {
    color: #03dac6;
    border-bottom: 2px solid #03dac6;
    padding-bottom: 5px;
    margin-top: 0;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    border-radius: 4px;
}
input:focus {
    outline: none;
    border-color: #bb86fc;
}
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
button[type="submit"]:hover {
    background-color: #a362f7;
}

#auth-section { margin-bottom: 20px; display: flex; justify-content: center; }
.steam-login-button {
    display: inline-block;
    margin: 20px auto;
    border-radius: 8px;
    transition: all 0.2s ease;
    

    
    background-color: #1e1e1e;
    
    border: 2px solid #333;
    
    padding: 20px;
}
.steam-login-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.5);
    border-color: #bb86fc;
    
}
.steam-login-button img {
    display: block;
    width: 150px;
    
    height: auto;
    
    
}
.user-info { width: 100%; display: flex; justify-content: space-between; align-items: center; background-color: #2a2a2a; padding: 10px 20px; border-radius: 6px; }
.user-details { display: flex; align-items: center; gap: 15px; }
.user-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #03dac6; }
.user-name { font-size: 16px; }
.logout-button { background-color: #cf6679; color: #121212; padding: 8px 15px; border-radius: 4px; text-decoration: none; font-weight: bold; transition: background-color 0.2s; }
.logout-button:hover { background-color: #b00020; }

.form-group {
    margin-bottom: 20px;
}
.search-wrapper {
    position: relative;
    
}

#game-suggestions {
    display: none;
    
    position: absolute;
    top: 100%;
    
    left: 0;
    right: 0;
    background-color: #2a2a2a;
    border: 1px solid #bb86fc;
    
    border-top: none;
    border-radius: 0 0 6px 6px;
    
    z-index: 1000;
    max-height: 240px;
    
    overflow-y: auto;
    
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    
}

.suggestion-item {
    padding: 12px 15px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    
    border-bottom: 1px solid #333;
    
}

.suggestion-item:last-child {
    border-bottom: none;
    
}

.suggestion-item:hover {
    background-color: #bb86fc;
    
    color: #121212;
    
    padding-left: 25px;
    
}


#game-suggestions::-webkit-scrollbar {
    width: 8px;
}

#game-suggestions::-webkit-scrollbar-track {
    background: #2a2a2a;
    
}

#game-suggestions::-webkit-scrollbar-thumb {
    background-color: #03dac6;
    
    border-radius: 4px;
    border: 2px solid #2a2a2a;
    
}

#game-suggestions::-webkit-scrollbar-thumb:hover {
    background-color: #01b8a5;
    
}


#roulette-view { display: flex; flex-direction: column; }

#roulette-machine {
    position: relative;
    width: 100%;
    height: 180px; 
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background-color: #101010;
}

#roulette-pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: calc(100% + 10px);
    background-color: #bb86fc;
    box-shadow: 0 0 10px #bb86fc;
    z-index: 10;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

#roulette-reel {
    display: flex;
    height: 100%;
    transition-property: transform;
    
    filter: blur(8px);
    opacity: 0.2;
    transform: scale(1.1);
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}


#roulette-machine.show-winner #roulette-reel {
    filter: blur(8px);
    opacity: 0.2;
    transform: scale(1.1);
}


#roulette-machine.spinning #roulette-reel {
    filter: none;
    opacity: 1;
    transform: scale(1);
}

#roulette-machine.show-winner #roulette-pointer {
    opacity: 0;
}

.reel-item {
    width: 320px;
    height: 100%;
    flex-shrink: 0;
    padding: 15px; 
}

.reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

#spin-btn {
    width: 100%;
    padding: 15px;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#spin-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}


#winner-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;

    
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    z-index: 20;
}

#roulette-machine.show-winner #winner-display {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

#winner-image {
    height: 100%;
    max-width: 300px; 
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(187, 134, 252, 0.6);
}

.winner-info {
    text-align: left;
}

#winner-name {
    color: #bb86fc;
    margin: 0;
    font-size: 2em;
    text-shadow: 0 0 10px #000;
}

#winner-task {
    color: #03dac6;
    font-size: 1.2em;
    margin: 10px 0 0;
    text-shadow: 0 0 10px #000;
}
#quiz-view {
    display: flex;
    flex-direction: column;
}

#quiz-game-area {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid #333;
}


#quiz-timer, #current-streak {
    position: absolute;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#quiz-timer {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background-color: rgba(187, 134, 252, 0.9);
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid rgba(18, 18, 18, 0.7);
}

#current-streak {
    top: 10px;
    left: 10px;
    background-color: #03dac6;
    color: #121212;
    font-size: 16px;
}

#quiz-image-wrapper {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    background-color: #101010;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

#quiz-game-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    
    filter: blur(8px);
    
    opacity: 0;
    
    pointer-events: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

#quiz-game-image.loaded {
    opacity: 1;
    
}


#quiz-game-image.unblurred {
    filter: none;
}

#quiz-answer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    min-height: 120px;
}

.quiz-answer-btn {
    padding: 15px;
    font-size: 16px;
    background-color: #2a2a2a;
    border: 2px solid #444;
    color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;

    
    user-select: none;
    -webkit-user-select: none;
}

.quiz-answer-btn:hover:not(:disabled) {
    border-color: #03dac6;
    background-color: #333;
}

.quiz-answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}


.quiz-answer-btn.correct {
    background-color: #2E7D32;
    
    border-color: #4CAF50;
    color: white;
}

.quiz-answer-btn.incorrect {
    background-color: #B71C1C;
    
    border-color: #D32F2F;
    color: white;
}



#leaderboard-area {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
}

#leaderboard-content table {
    width: 100%;
    border-collapse: collapse;
}

#leaderboard-content th,
#leaderboard-content td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;
}

#leaderboard-content th {
    color: #03dac6;
}

#leaderboard-content td.rank {
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
}

#leaderboard-content .leaderboard-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

#leaderboard-content .leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
#screamer-overlay {
    position: fixed;
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    
    z-index: 9999;
    

    
    display: none;

    
    justify-content: center;
    align-items: center;
}

#screamer-overlay video {
    
    max-width: 100%;
    max-height: 100%;
    border: none;
    
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#play-random-track-btn {
    top: 10px;
    left: 10px;
    background-image: url('/play-icon.png');
}

#play-random-video-track-btn {
    top: 90px;
    left: 10px;
    background-image: url('/Billy-Gac.jpg');
    background-size: cover;
    background-position: center;
}

#screamer-trigger {
    top: 10px;
    right: 10px;
    background-image: url('/trigger-icon.png');
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#quiz-game-area.is-hiding {
    animation: fadeOutUp 0.4s ease-out forwards;
}

#quiz-game-area.is-showing {
    animation: fadeInDown 0.4s ease-in forwards;
}
#selected-games-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    min-height: 40px;
    
    background-color: #1e1e1e;
}

#selected-games-container:empty {
    display: none;
}

.game-tag {
    display: flex;
    align-items: center;
    background-color: #bb86fc;
    
    color: #121212;
    
    padding: 5px 10px;
    border-radius: 15px;
    
    font-weight: bold;
    font-size: 14px;
    cursor: default;
}

.remove-tag-btn {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    background-color: rgba(18, 18, 18, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s;
}

.remove-tag-btn:hover {
    background-color: #b00020;
    
}

#wheel-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #bb86fc;
    z-index: 10;
    filter: drop-shadow(0px -2px 3px rgba(0, 0, 0, 0.5));
}
#prize-machine {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

#prize-spinner {
    background-color: #101010;
    color: #03dac6;
    font-size: 1.8em;
    font-weight: bold;
    padding: 20px;
    border-radius: 6px;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px dashed #333;
}
.secret-btn {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(18, 18, 18, 0.7);
    border: 2px solid #555;
    padding: 0;
    cursor: pointer;
    z-index: 100;
    opacity: 0.5;
    transition: all 0.2s;
    border-radius: 50%;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.secret-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: #bb86fc;
}

#play-random-track-btn {
    top: 10px;
    left: 10px;
    background-image: url('/play-icon.png');
    background-size: cover;
    background-position: center;
}
.secret-btn.is-playing {
    border-color: #03dac6;
    box-shadow: 0 0 15px #03dac6;
    opacity: 1;
}

.secret-btn.is-playing:hover {
    transform: scale(1.1);
}

#volume-control-container {
    position: absolute;
    top: 250px;
    left: 10px;
    background: rgba(18, 18, 18, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #555;
    z-index: 99;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#volume-control-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 8px;
    background: #444;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #bb86fc;
    border-radius: 50%;
    border: 2px solid #121212;
    transition: background-color 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    background: #03dac6;
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #bb86fc;
    border-radius: 50%;
    border: 2px solid #121212;
    transition: background-color 0.2s;
}

#volume-slider::-moz-range-thumb:hover {
    background: #03dac6;
}

#volume-toggle-btn {
    top: 170px;
    left: 10px;
    font-size: 28px;
    line-height: 70px;
    text-align: center;
}

#now-playing-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(18, 18, 18, 0.9);
    color: #03dac6;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #333;
    z-index: 101;
    font-size: 14px;
    max-width: 650px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

#now-playing-info.hidden {
    opacity: 0;
    pointer-events: none;
}

#add-game-message {
    display: none;
}

#add-game-message.success {
    display: block;
    background-color: #2E7D32;
    color: white;
}

#add-game-message.error {
    display: block;
    background-color: #B71C1C;
    color: white;
}

#add-game-message.loading {
    display: block;
    background-color: #2a2a2a;
    color: #bb86fc;
    border: 1px dashed #bb86fc;
}

#find-steam-game-btn,
#confirm-add-game-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #03dac6;
    color: #121212;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#find-steam-game-btn:hover,
#confirm-add-game-btn:hover {
    background-color: #01b8a5;
}

#find-steam-game-btn:disabled,
#confirm-add-game-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#game-preview-content {
    position: relative;
}

#delete-game-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 15px;
    background-color: rgba(183, 28, 28, 0.8);
    color: white;
    border: 1px solid #d32f2f;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#delete-game-btn:hover {
    background-color: rgba(211, 47, 47, 1);
    transform: scale(1.05);
}

.add-game-link-container {
    margin-top: 8px;
    text-align: left;
}

.add-game-link-container a {
    color: #03dac6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.add-game-link-container a:hover {
    color: #fff;
    text-decoration: underline;
}

#plinko-board-container {
    display: flex;
    justify-content: center;
    position: relative;
    padding-bottom: 30px; 
}

#plinko-board {
    position: relative;
    width: 400px; 
    height: 450px; 
    background-color: #1e1e1e;
    border: 2px solid #bb86fc;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.plinko-peg {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #03dac6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(3, 218, 198, 0.5);
    z-index: 5;
}

#plinko-buckets {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    border-top: 2px solid #bb86fc;
    z-index: 10;
}

.plinko-bucket {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    color: #121212; 
    border-right: 1px solid #444;
}

.plinko-bucket[data-multiplier="16"] { background-color: #f0f8ff; color: #121212;} 
.plinko-bucket[data-multiplier="8"] { background-color: #F44336; } 
.plinko-bucket[data-multiplier="2"] { background-color: #FFEB3B; color: #121212;} 
.plinko-bucket[data-multiplier="0.5"] { background-color: #03A9F4; } 
.plinko-bucket[data-multiplier="0"] { 
    background-color: #333; 
    color: #f0f0f0; 
    border: 2px solid #555; 
    box-sizing: border-box; 
}

.plinko-bucket:last-child {
    border-right: none;
}

.plinko-ball {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #bb86fc, #03dac6);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: 0 0 10px #bb86fc;
}
