@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

/* Import Futura font - you may need to adjust the URL based on your setup */
@font-face {
    font-family: 'Futura';
    src: url('fonts/Futura.woff2') format('woff2'),
         url('fonts/Futura.woff') format('woff');
}

/* Alternative: Using Google Fonts if you don't have Futura locally */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');  /* Montserrat is similar to Futura */

/* Import 8-bit style font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Import fancy fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&display=swap');

body {
    margin: 0;
}

.game-wrapper {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.roll-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 30px 60px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, opacity 0.3s;
    min-width: 200px;
}

.roll-button:hover {
    background-color: #45a049;  /* Slightly darker green on hover */
}

.roll-button:disabled {
    pointer-events: none;  /* Prevents hover effects while disabled */
}

.result-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
}

.common {
    color: #808080;  /* Gray */
}

.uncommon {
    color: #4CAF50;  /* Green */
    font-family: 'Futura', 'Montserrat', sans-serif;  /* Fallback to Montserrat or sans-serif if Futura isn't available */
}

.rare {
    color: #2196F3;  /* Blue */
    font-family: 'Futura', 'Montserrat', sans-serif;  /* Using same font as uncommon for now */
}

.decent {
    color: #9C27B0;  /* Purple */
}

.epic {
    color: #6A1B9A;  /* Dark Purple */
}

.good {
    color: #1B5E20;  /* Dark Green */
}

.great {
    color: #03A9F4;  /* Light Blue */
}

.legendary {
    color: #FFA000;  /* Dark Yellow/Gold */
    font-family: 'Cinzel', serif;
}

.expert {
    color: #5D4037;  /* Brown */
    font-family: 'Playfair Display', serif;
}

.winner {
    color: #FF5722;  /* Orange */
    font-family: 'Cormorant Garamond', serif;
}

.show {
    opacity: 1;
}

@keyframes binaryColor {
    0% { color: #4CAF50; }    /* Green */
    50% { color: #000000; }   /* Black */
    100% { color: #4CAF50; }  /* Green */
}

.small-binary {
    animation: binaryColor 1s infinite;
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
}

.sigma {
    color: #000000;  /* Black */
    font-family: 'Cinzel', serif;
}

.even {
    color: #228B22;  /* Forest Green */
    font-family: 'Playfair Display', serif;
}

@keyframes glowingText {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0.7); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.9); }
    100% { text-shadow: 0 0 5px rgba(255,255,255,0.7); }
}

.one {
    color: #000000;  /* Black */
    font-family: 'Cormorant Garamond', serif;
    animation: glowingText 2s infinite;
}

.master {
    color: #808080;  /* Gray */
    font-family: 'Cinzel', serif;
}

@keyframes binaryColorWithGlow {
    0% { 
        color: #4CAF50;
        text-shadow: 0 0 10px rgba(76,175,80,0.5);
    }
    50% { 
        color: #000000;
        text-shadow: 0 0 10px rgba(0,0,0,0.5);
    }
    100% { 
        color: #4CAF50;
        text-shadow: 0 0 10px rgba(76,175,80,0.5);
    }
}

.ultra {
    color: #9C27B0;  /* Purple */
}

.binary {
    animation: binaryColorWithGlow 1s infinite;
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
}

/* Confetti container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 999;
}

@keyframes slashColors {
    0% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 10px rgba(0,0,0,0.5);
    }
    50% { 
        color: #5D4037;  /* Brown */
        text-shadow: 0 0 10px rgba(93,64,55,0.5);
    }
    100% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 10px rgba(0,0,0,0.5);
    }
}

@keyframes progressColors {
    0% { 
        color: #1a237e;  /* Dark Blue */
        text-shadow: 0 0 10px rgba(26,35,126,0.5);
    }
    50% { 
        color: #1B5E20;  /* Dark Green */
        text-shadow: 0 0 10px rgba(27,94,32,0.5);
    }
    100% { 
        color: #1a237e;  /* Dark Blue */
        text-shadow: 0 0 10px rgba(26,35,126,0.5);
    }
}

.slash {
    animation: slashColors 2s infinite;
}

.progress {
    animation: progressColors 2s infinite;
}

@keyframes mythicalColors {
    0% { 
        color: #9C27B0;  /* Purple */
        text-shadow: 0 0 15px rgba(156,39,176,0.7);
    }
    50% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 15px rgba(0,0,0,0.7);
    }
    100% { 
        color: #9C27B0;  /* Purple */
        text-shadow: 0 0 15px rgba(156,39,176,0.7);
    }
}

@keyframes twoColors {
    0% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 20px rgba(0,0,0,0.8);
    }
    50% { 
        color: #6A1B9A;  /* Dark Purple */
        text-shadow: 0 0 20px rgba(106,27,154,0.8);
    }
    100% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 20px rgba(0,0,0,0.8);
    }
}

.mythical {
    animation: mythicalColors 1.5s infinite;
}

.two {
    animation: twoColors 1.5s infinite;
}

@keyframes closeColors {
    0% { 
        color: #03A9F4;  /* Light Blue */
        text-shadow: 0 0 20px rgba(3,169,244,0.8);
    }
    50% { 
        color: #FF0000;  /* Red */
        text-shadow: 0 0 20px rgba(255,0,0,0.8);
    }
    100% { 
        color: #03A9F4;  /* Light Blue */
        text-shadow: 0 0 20px rgba(3,169,244,0.8);
    }
}

@keyframes largeBinaryColors {
    0% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 25px rgba(76,175,80,0.9);
    }
    50% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 25px rgba(0,0,0,0.9);
    }
    100% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 25px rgba(76,175,80,0.9);
    }
}

.close {
    animation: closeColors 1.5s infinite;
}

.large-binary {
    animation: largeBinaryColors 1.5s infinite;
    font-family: 'Press Start 2P', monospace;
    font-size: 48px !important;
}

/* Add this class for ultra-rare rolls */
.ultra-rare {
    font-size: 56px !important;  /* 2x the base font size */
}

.chromokopia {
    color: #795548;  /* Brown */
}

@keyframes instinctColors {
    0% { 
        color: #FF0000;  /* Red */
        text-shadow: 0 0 25px rgba(255,0,0,0.9);
    }
    50% { 
        color: #FF5722;  /* Orange */
        text-shadow: 0 0 25px rgba(255,87,34,0.9);
    }
    100% { 
        color: #FF0000;  /* Red */
        text-shadow: 0 0 25px rgba(255,0,0,0.9);
    }
}

.instinct {
    animation: instinctColors 1.5s infinite;
}

@keyframes oddColors {
    0% { 
        color: #9E9E9E;  /* Gray */
        text-shadow: 0 0 25px rgba(158,158,158,0.9);
    }
    50% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 25px rgba(0,0,0,0.9);
    }
    100% { 
        color: #9E9E9E;  /* Gray */
        text-shadow: 0 0 25px rgba(158,158,158,0.9);
    }
}

@keyframes evilColors {
    0% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 25px rgba(0,0,0,0.9);
    }
    50% { 
        color: #B71C1C;  /* Dark Red */
        text-shadow: 0 0 25px rgba(183,28,28,0.9);
    }
    100% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 25px rgba(0,0,0,0.9);
    }
}

.odd {
    animation: oddColors 1.5s infinite;
}

.evil {
    animation: evilColors 1.5s infinite;
}

@keyframes decreaseColors {
    0% { 
        color: #9C27B0;  /* Purple */
        text-shadow: 0 0 30px rgba(156,39,176,0.9);
    }
    50% { 
        color: #FF0000;  /* Red */
        text-shadow: 0 0 30px rgba(255,0,0,0.9);
    }
    100% { 
        color: #9C27B0;  /* Purple */
        text-shadow: 0 0 30px rgba(156,39,176,0.9);
    }
}

.decrease {
    animation: decreaseColors 1.5s infinite;
}

.supernatural {
    color: #757575;  /* Gray */
    text-shadow: 0 0 30px rgba(117,117,117,0.9);
}

.withered {
    color: #000000;  /* Black */
    text-shadow: 0 0 35px rgba(0,0,0,0.95);
}

@keyframes unununcommonColors {
    0% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 35px rgba(76,175,80,0.95);
    }
    50% { 
        color: #8BC34A;  /* Light Green */
        text-shadow: 0 0 35px rgba(139,195,74,0.95);
    }
    100% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 35px rgba(76,175,80,0.95);
    }
}

.unununcommon {
    animation: unununcommonColors 1.5s infinite;
}

@keyframes evoddColors {
    0% { 
        color: #FFD700;  /* Yellow */
        text-shadow: 0 0 40px rgba(255,215,0,0.95);
    }
    50% { 
        color: #9C27B0;  /* Purple */
        text-shadow: 0 0 40px rgba(156,39,176,0.95);
    }
    100% { 
        color: #FFD700;  /* Yellow */
        text-shadow: 0 0 40px rgba(255,215,0,0.95);
    }
}

@keyframes judasColors {
    0% { 
        color: #3E2723;  /* Dark Brown */
        text-shadow: 0 0 40px rgba(62,39,35,0.95);
    }
    50% { 
        color: #B71C1C;  /* Dark Red */
        text-shadow: 0 0 40px rgba(183,28,28,0.95);
    }
    100% { 
        color: #3E2723;  /* Dark Brown */
        text-shadow: 0 0 40px rgba(62,39,35,0.95);
    }
}

.evodd {
    animation: evoddColors 1.5s infinite;
}

.judas {
    animation: judasColors 1.5s infinite;
}

@keyframes hugeBinaryColors {
    0% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 45px rgba(76,175,80,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    50% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 45px rgba(0,0,0,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    100% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 45px rgba(76,175,80,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
}

@keyframes trueOddColors {
    0% { 
        color: #2196F3;  /* Blue */
        text-shadow: 0 0 45px rgba(33,150,243,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    50% { 
        color: #FF0000;  /* Red */
        text-shadow: 0 0 45px rgba(255,0,0,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    100% { 
        color: #2196F3;  /* Blue */
        text-shadow: 0 0 45px rgba(33,150,243,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
}

.huge-binary {
    animation: hugeBinaryColors 1.5s infinite;
    font-family: 'Press Start 2P', monospace;
    font-size: 48px !important;
}

.true-odd {
    animation: trueOddColors 1.5s infinite;
}

/* Add overlay for ultra-rare effects */
.black-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Modify the result text for fade-in effect */
.result-text.legendary-fade {
    opacity: 0;
    z-index: 9999;
    transition: opacity 2s ease;
    color: inherit;  /* This ensures it keeps its rarity color */
}

@keyframes repeatingColors {
    0% { 
        color: #03A9F4;  /* Light Blue */
        text-shadow: 0 0 45px rgba(3,169,244,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    50% { 
        color: #8BC34A;  /* Light Green */
        text-shadow: 0 0 45px rgba(139,195,74,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    100% { 
        color: #03A9F4;  /* Light Blue */
        text-shadow: 0 0 45px rgba(3,169,244,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
}

@keyframes concreteColors {
    0% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 45px rgba(0,0,0,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    50% { 
        color: #9E9E9E;  /* Gray */
        text-shadow: 0 0 45px rgba(158,158,158,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
    100% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 45px rgba(0,0,0,0.95), 0 0 20px rgba(255,255,255,0.5);
    }
}

.repeating {
    animation: repeatingColors 1.5s infinite;
}

.concrete {
    animation: concreteColors 1.5s infinite;
}

@keyframes goldColors {
    0% { 
        color: #FFD700;  /* Gold/Yellow */
        text-shadow: 0 0 50px rgba(255,215,0,0.95), 0 0 25px rgba(255,255,255,0.6);
    }
    50% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 50px rgba(0,0,0,0.95), 0 0 25px rgba(255,215,0,0.6);
    }
    100% { 
        color: #FFD700;  /* Gold/Yellow */
        text-shadow: 0 0 50px rgba(255,215,0,0.95), 0 0 25px rgba(255,255,255,0.6);
    }
}

@keyframes chainedColors {
    0% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 50px rgba(0,0,0,0.95), 0 0 25px rgba(158,158,158,0.6);
    }
    50% { 
        color: #9E9E9E;  /* Gray */
        text-shadow: 0 0 50px rgba(158,158,158,0.95), 0 0 25px rgba(0,0,0,0.6);
    }
    100% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 50px rgba(0,0,0,0.95), 0 0 25px rgba(158,158,158,0.6);
    }
}

.gold {
    animation: goldColors 1.5s infinite;
}

.chained {
    animation: chainedColors 1.5s infinite;
}

@keyframes holyColors {
    0% { 
        color: #FFD700;  /* Gold/Yellow */
        text-shadow: 0 0 60px rgba(255,215,0,0.95), 0 0 30px rgba(255,255,255,0.7);
    }
    50% { 
        color: #FFFFFF;  /* White */
        text-shadow: 0 0 60px rgba(255,255,255,0.95), 0 0 30px rgba(255,215,0,0.7);
    }
    100% { 
        color: #FFD700;  /* Gold/Yellow */
        text-shadow: 0 0 60px rgba(255,215,0,0.95), 0 0 30px rgba(255,255,255,0.7);
    }
}

@keyframes titanBinaryColors {
    0% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 60px rgba(76,175,80,0.95), 0 0 30px rgba(255,255,255,0.7);
    }
    50% { 
        color: #000000;  /* Black */
        text-shadow: 0 0 60px rgba(0,0,0,0.95), 0 0 30px rgba(76,175,80,0.7);
    }
    100% { 
        color: #4CAF50;  /* Green */
        text-shadow: 0 0 60px rgba(76,175,80,0.95), 0 0 30px rgba(255,255,255,0.7);
    }
}

.holy {
    animation: holyColors 1.5s infinite;
}

.titan-binary {
    animation: titanBinaryColors 1.5s infinite;
    font-family: 'Press Start 2P', monospace;
    font-size: 48px !important;
}

/* Add star effect for legendary rolls */
.legendary-star {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    color: white;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Star animation */
@keyframes starPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.legendary-star.show-star {
    animation: starPulse 1s ease-out forwards;
}

/* Continue for ultra-rare classes (1/9999 and rarer) */
.close, .instinct, .odd, .evil, .decrease, .supernatural, 
.withered, .unununcommon, .evodd, .judas, .repeating, 
.concrete, .gold, .chained, .holy {
    font-family: 'Cinzel', serif;
}

.cool {
    color: #FF5722;  /* Orange */
    font-family: 'Futura', 'Montserrat', sans-serif;  /* Using Futura like other common rarities */
}

.eh {
    color: #000000;  /* Black */
    font-family: 'Futura', 'Montserrat', sans-serif;
}

.rarest-roll {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
}

.ancient {
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.diamond {
    background: linear-gradient(45deg, #b9f2ff, #fff, #b9f2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(185, 242, 255, 0.5);
}

.three {
    background: linear-gradient(45deg, #ff3d00, #ff9e80);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 61, 0, 0.5);
}

.pt-richard {
    background: linear-gradient(45deg, #FF0000, #00FF00, #0000FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.collection-tracker {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    z-index: 1000;
    min-width: 200px;
}

.collection-tracker div {
    margin: 5px 0;
    padding: 3px 0;
}

.collection-tracker span.count-number {
    font-weight: 700;
    color: white;
    transition: color 0.3s;
}

.collection-tracker span.count-number.completed {
    color: #4CAF50;
}

.completion-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.95);
    border: 3px solid #4CAF50;
    border-radius: 12px;
    padding: 30px 40px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    text-align: center;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}

.completion-notification.show {
    opacity: 1;
    pointer-events: auto;
}

.completion-notification h2 {
    color: #4CAF50;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    margin: 0 0 15px 0;
}

.completion-notification p {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    margin: 0;
}