@font-face {
    font-family: 'Pricedown';
    src: url('pricedown/pricedown\ bl.ttf') format('truetype');
}

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

body {
    font-family: 'Pricedown', Arial, sans-serif;
    background-color: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#score-box {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 3px solid gold;
    padding: 15px 25px;
    text-align: center;
    z-index: 100;
}

#score-label {
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

#score-value {
    color: gold;
    font-size: 48px;
    font-weight: bold;
}

#wheel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 40px solid transparent;
    border-bottom: 40px solid transparent;
    border-right: 100px solid #ff0000;
    z-index: 150;
    pointer-events: none;
}

#wheel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    transition: none;
}

.wheel-segment {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 220px;
    font-weight: bold;
    background-color: #000;
    position: relative;
}

/* 100 - red text, white borders, black background */
.wheel-segment[data-value="100"] {
    color: #ff0000;
    text-shadow: 
        -3px -3px 0 #fff,
        3px -3px 0 #fff,
        -3px 3px 0 #fff,
        3px 3px 0 #fff,
        -3px 0 0 #fff,
        3px 0 0 #fff,
        0 -3px 0 #fff,
        0 3px 0 #fff;
    border-top: 5px solid #fff;
    border-bottom: 5px solid #fff;
}

/* 5 and 15 - dark green text, black borders, light green background */
.wheel-segment[data-value="5"],
.wheel-segment[data-value="15"] {
    color: #006400;
    text-shadow: 
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000,
        -3px 0 0 #000,
        3px 0 0 #000,
        0 -3px 0 #000,
        0 3px 0 #000;
    background-color: #90EE90;
    border-top: 5px solid #000;
    border-bottom: 5px solid #000;
}

/* All other numbers - silver text, gold borders, black background */
.wheel-segment:not([data-value="100"]):not([data-value="5"]):not([data-value="15"]) {
    color: #c0c0c0;
    text-shadow: 
        -3px -3px 0 gold,
        3px -3px 0 gold,
        -3px 3px 0 gold,
        3px 3px 0 gold,
        -3px 0 0 gold,
        3px 0 0 gold,
        0 -3px 0 gold,
        0 3px 0 gold;
    border-top: 5px solid gold;
    border-bottom: 5px solid gold;
}

#start-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    color: gold;
    text-align: center;
    z-index: 50;
    padding: 30px 60px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 5px solid gold;
    border-radius: 20px;
    pointer-events: none;
    max-width: 90%;
}

.pulsing {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

#power-gauge {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 60px;
    background-color: #333;
    border: 5px solid gold;
    border-radius: 10px;
    overflow: hidden;
    z-index: 50;
}

#power-bar {
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #00ff00, #ffff00, #ff0000);
    position: absolute;
    left: 0;
    animation: bounce 1.5s linear infinite;
}

@keyframes bounce {
    0% {
        left: 0;
    }
    50% {
        left: calc(100% - 20px);
    }
    100% {
        left: 0;
    }
}

#action-buttons {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 50;
}

.action-btn {
    font-family: 'Pricedown', Arial, sans-serif;
    font-size: 36px;
    padding: 15px 40px;
    background-color: gold;
    color: #000;
    border: 5px solid #000;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

#message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#message-text {
    font-size: 96px;
    color: gold;
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    animation: pulseMessage 1.5s ease-in-out infinite;
}

@keyframes pulseMessage {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.hidden {
    display: none !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #wheel {
        max-width: 100%;
    }
    
    .wheel-segment {
        height: 180px;
        font-size: 140px;
    }
    
    #start-message {
        font-size: 48px;
        padding: 20px 40px;
        max-width: 90%;
    }
    
    #message-text {
        font-size: 64px;
    }
    
    .action-btn {
        font-size: 28px;
        padding: 12px 30px;
    }
    
    #score-box {
        padding: 10px 20px;
    }
    
    #score-label {
        font-size: 20px;
    }
    
    #score-value {
        font-size: 36px;
    }
    
    #arrow {
        right: 0;
        border-top: 30px solid transparent;
        border-bottom: 30px solid transparent;
        border-right: 75px solid #ff0000;
    }
}

@media (max-width: 480px) {
    .wheel-segment {
        height: 150px;
        font-size: 110px;
    }
    
    #start-message {
        font-size: 36px;
        padding: 15px 30px;
        max-width: 90%;
    }
    
    #message-text {
        font-size: 48px;
        padding: 20px;
    }
    
    .action-btn {
        font-size: 24px;
        padding: 10px 25px;
    }
    
    #arrow {
        right: 0;
        border-top: 25px solid transparent;
        border-bottom: 25px solid transparent;
        border-right: 65px solid #ff0000;
    }
}
