@import url(https://fonts.googleapis.com/css?family=Fredoka+One);

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

body {
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(135deg, #03543f 0%, #024434 100%);
    color: #fff;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Slots Machine */
.slots-machine {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    perspective: 1000px;
}

.slot-machine-frame {
    background: linear-gradient(145deg, #2a2a2a, #333);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 12px solid #222;
    width: 100%;
    max-width: 1200px;
    transform-style: preserve-3d;
    transform: rotateX(5deg);
}

@keyframes machineAppear {
    0% { transform: rotateX(5deg); opacity: 1; }
    100% { transform: rotateX(5deg); opacity: 1; }
}

/* Display Window */
.display-window {
    background-color: #222;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    width: 100%;
}

/* Reels Container */
.reels-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.reel-window {
    width: 300px;
    height: 300px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 0 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.reel {
    position: absolute;
    width: 100%;
    height: auto;
    transform: translateY(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.reel.spinning {
    transition: transform var(--spin-time, 3s) cubic-bezier(0.21, 0.53, 0.29, 0.99) !important;
}

.reel.bouncing {
    transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}

.reel-item {
    height: 100px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 10px 15px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    width: 100%;
    background-color: inherit;
    left: 0 !important;
}

.reel-item .sector {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: normal;
}

.reel-item .label {
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
}

/* Reel labels */
.reel-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.reel-label {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Control Panel */
.control-panel {
    background: linear-gradient(145deg, #3a3a3a, #444);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    z-index: 1000;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spin-button {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 26px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-grow: 1;
    margin-right: 20px;
    box-shadow: 
        0 6px 0 #a82315,
        0 8px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /* Hardware acceleration fixes */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    /* Appearance and interaction fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    z-index: 1001;
    will-change: transform;
}

.spin-button:hover {
    background: linear-gradient(145deg, #c0392b, #a82315);
    transform: translateY(2px) translateZ(0);
    -webkit-transform: translateY(2px) translateZ(0);
    box-shadow: 
        0 4px 0 #a82315,
        0 6px 10px rgba(0, 0, 0, 0.2);
}

.spin-button:active {
    transform: translateY(6px) translateZ(0) !important;
    -webkit-transform: translateY(6px) translateZ(0) !important;
    box-shadow: none !important;
}

.spin-button:disabled {
    background: linear-gradient(145deg, #999, #777);
    cursor: not-allowed !important;
    box-shadow: none;
    transform: none;
}

/* Remove slider completely */
.handle-slider-container,
.handle-slider {
    display: none !important;
}

/* Only highlight center items */
.reel-item.highlighted {
    box-shadow: 0 0 25px 12px rgba(255, 215, 0, 0.7) !important;
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.reel-item.winning-item {
    animation: winningPulse 2s infinite ease-in-out !important;
}

@keyframes winningPulse {
    0% {
        box-shadow: 0 0 25px 12px rgba(255, 215, 0, 0.7);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 35px 15px rgba(255, 215, 0, 0.9);
        transform: scale(1.08);
    }
    100% {
        box-shadow: 0 0 25px 12px rgba(255, 215, 0, 0.7);
        transform: scale(1.05);
    }
}

/* Additional controls */
.additional-controls {
    display: flex;
    gap: 15px;
}

.icon-button {
    background: linear-gradient(145deg, #444, #333);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 12px;
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 
        0 4px 0 #222,
        0 6px 10px rgba(0, 0, 0, 0.2);
    /* Hardware acceleration fixes */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    /* Appearance and interaction fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    z-index: 10;
    will-change: transform;
}

.icon-button:hover {
    background: linear-gradient(145deg, #333, #222);
    transform: translateY(2px) translateZ(0);
    -webkit-transform: translateY(2px) translateZ(0);
    box-shadow: 
        0 2px 0 #222,
        0 4px 6px rgba(0, 0, 0, 0.2);
}

.icon-button:active {
    transform: translateY(4px) translateZ(0) !important;
    -webkit-transform: translateY(4px) translateZ(0) !important;
    box-shadow: none !important;
}

/* Force hardware acceleration for Chrome */
.spin-button,
.icon-button {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Disable hardware acceleration for problematic browsers */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .spin-button,
    .icon-button {
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .spin-button:hover,
    .icon-button:hover {
        transform: translateY(2px) !important;
        -webkit-transform: translateY(2px) !important;
    }
    
    .spin-button:active,
    .icon-button:active {
        transform: translateY(6px) !important;
        -webkit-transform: translateY(6px) !important;
    }
}

/* Settings Panel */
.settings-panel {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90%;
    z-index: 1000;
    animation: panelAppear 0.3s ease-out;
}

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

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.settings-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.close-button {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-button:hover {
    color: #333;
    transform: scale(1.1);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.setting {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting label {
    font-weight: bold;
    color: #555;
    font-size: 18px;
}

.setting input[type="range"] {
    width: 100%;
    height: 15px;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
    outline: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2C8195;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: -407px 0 0 400px #41A7BC;
}

.setting input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #2C8195;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: -407px 0 0 400px #41A7BC;
}

/* Hide elements */
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .slot-handle-container {
        display: none; /* Hide handle on medium screens */
    }
    
    .handle-slider-container {
        display: block; /* Show slider instead */
    }
    
    .slot-machine-frame {
        max-width: 100%;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .slot-machine-frame {
        padding: 20px;
        transform: none;
    }
    
    .reels-container {
        gap: 10px;
    }
    
    .reel-window {
        height: 250px;
    }
    
    .spin-button {
        font-size: 22px;
        padding: 12px 25px;
    }
    
    .icon-button {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .reel-window {
        height: 200px;
    }
    
    .reel-item {
        height: 80px;
        font-size: 16px;
    }
    
    .reel-label {
        font-size: 16px;
    }
    
    .spin-button {
        font-size: 18px;
        padding: 10px 20px;
    }
}

/* Fullscreen mode - more comprehensive selectors */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen,
:-ms-fullscreen,
:root:fullscreen,
:root:-webkit-full-screen,
:root:-moz-full-screen,
:root:-ms-fullscreen,
body:fullscreen,
body:-webkit-full-screen,
body:-moz-full-screen,
body:-ms-fullscreen {
    background: linear-gradient(135deg, #084b3f 0%, #063629 100%) !important;
    background-color: #063629 !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Add additional body and html selectors to ensure background color propagation */
html:fullscreen,
html:-webkit-full-screen,
html:-moz-full-screen,
html:-ms-fullscreen {
    background: linear-gradient(135deg, #084b3f 0%, #063629 100%) !important;
    background-color: #063629 !important;
}

/* For Chrome specifically */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    :fullscreen, :-webkit-full-screen {
        background: linear-gradient(135deg, #084b3f 0%, #063629 100%) !important;
        background-color: #063629 !important;
    }
    
    /* Target the actual container in fullscreen for Chrome */
    :-webkit-full-screen .container {
        background: linear-gradient(135deg, #084b3f 0%, #063629 100%) !important;
    }
}

/* Rest of fullscreen styles remain the same */
:fullscreen .container,
:-webkit-full-screen .container,
:-moz-full-screen .container,
:-ms-fullscreen .container {
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

:fullscreen header,
:-webkit-full-screen header,
:-moz-full-screen header,
:-ms-fullscreen header {
    margin-bottom: 2vh;
}

:fullscreen h1,
:-webkit-full-screen h1,
:-moz-full-screen h1,
:-ms-fullscreen h1 {
    font-size: 4vmin;
    margin-bottom: 1vh;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

:fullscreen .slots-machine,
:-webkit-full-screen .slots-machine,
:-moz-full-screen .slots-machine,
:-ms-fullscreen .slots-machine {
    transform: scale(1);
    margin: 0 auto;
    width: 100%;
    max-width: 90vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

:fullscreen .slot-machine-frame,
:-webkit-full-screen .slot-machine-frame,
:-moz-full-screen .slot-machine-frame,
:-ms-fullscreen .slot-machine-frame {
    transform: rotateX(5deg) scale(0.95);
    margin: 0 auto;
    width: 85vw;
    max-width: 1300px;
    background: linear-gradient(145deg, #333333, #3d3d3d);
    border: 15px solid #222;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

:fullscreen .reels-container,
:-webkit-full-screen .reels-container,
:-moz-full-screen .reels-container,
:-ms-fullscreen .reels-container {
    gap: 2vw;
}

:fullscreen .reel-window,
:-webkit-full-screen .reel-window,
:-moz-full-screen .reel-window,
:-ms-fullscreen .reel-window {
    height: 40vh;
    max-height: 400px;
    background: #161616;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

:fullscreen .reel-label,
:-webkit-full-screen .reel-label,
:-moz-full-screen .reel-label,
:-ms-fullscreen .reel-label {
    font-size: 2.5vmin;
    padding: 1.5vh 1vw;
    background-color: rgba(255, 255, 255, 0.15);
}

:fullscreen .control-panel,
:-webkit-full-screen .control-panel,
:-moz-full-screen .control-panel,
:-ms-fullscreen .control-panel {
    background: linear-gradient(145deg, #444444, #505050);
    border-radius: 20px;
    padding: 3vh 4vw;
    margin-top: 3vh;
    width: 90%;
}

:fullscreen .spin-button,
:-webkit-full-screen .spin-button,
:-moz-full-screen .spin-button,
:-ms-fullscreen .spin-button {
    font-size: 3vmin;
    padding: 1.5vh 3vw;
    border-radius: 15px;
}

:fullscreen .icon-button,
:-webkit-full-screen .icon-button,
:-moz-full-screen .icon-button,
:-ms-fullscreen .icon-button {
    width: 5vmin;
    height: 5vmin;
    min-width: 50px;
    min-height: 50px;
    font-size: 2vmin;
}

/* Better highlighting in fullscreen */
:fullscreen .reel-item.highlighted,
:-webkit-full-screen .reel-item.highlighted,
:-moz-full-screen .reel-item.highlighted,
:-ms-fullscreen .reel-item.highlighted {
    box-shadow: 0 0 35px 15px rgba(255, 215, 0, 0.8) !important;
}

@media (max-height: 700px) {
    :fullscreen .reel-window,
    :-webkit-full-screen .reel-window,
    :-moz-full-screen .reel-window,
    :-ms-fullscreen .reel-window {
        height: 30vh;
    }
    
    :fullscreen h1,
    :-webkit-full-screen h1,
    :-moz-full-screen h1,
    :-ms-fullscreen h1 {
        font-size: 3.5vmin;
        margin-bottom: 1vh;
    }
    
    :fullscreen .control-panel,
    :-webkit-full-screen .control-panel,
    :-moz-full-screen .control-panel,
    :-ms-fullscreen .control-panel {
        padding: 2vh 3vw;
    }
}

/* Extra fullscreen adjustments for very wide screens */
@media (min-aspect-ratio: 16/9) {
    :fullscreen .slot-machine-frame,
    :-webkit-full-screen .slot-machine-frame,
    :-moz-full-screen .slot-machine-frame,
    :-ms-fullscreen .slot-machine-frame {
        width: 75vw;
        max-width: 1600px;
    }
    
    :fullscreen .reel-window,
    :-webkit-full-screen .reel-window,
    :-moz-full-screen .reel-window,
    :-ms-fullscreen .reel-window {
        height: 45vh;
    }
}

/* Digiwise branding */
.digiwise-credit {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.digiwise-credit:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.digiwise-logo {
    width: 120px;
    display: block;
    margin: 0 auto 15px;
    /* Disable logo spinning animation */
    animation: none !important;
}

.info-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    width: 320px;
    margin-bottom: 15px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.digiwise-credit:hover .info-popup {
    display: block;
}

.team-section {
    margin-bottom: 20px;
}

.team-group {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(44, 129, 149, 0.1);
    border-radius: 8px;
}

.team-group h4 {
    color: #2C8195;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
}

.team-group p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(44, 129, 149, 0.2);
    font-size: 14px;
}

.contact-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-attribution {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(44, 129, 149, 0.2);
    font-size: 12px;
    color: #666;
}

.sound-attribution a {
    color: #2C8195;
    text-decoration: none;
    transition: color 0.3s;
}

.sound-attribution a:hover {
    color: #41A7BC;
    text-decoration: underline;
}

/* Animations & Effects */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Remove the shake animation */
.shake {
    animation: none;
}

@keyframes shake {
    0%, 100% { transform: rotateX(5deg); }
    25% { transform: rotateX(5deg) translateX(-5px); }
    75% { transform: rotateX(5deg) translateX(5px); }
}

/* Remove the white fade overlay */
.reel-window::after {
    display: none;
}

/* Ensure center items stand out */
.reel-window::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 100px;
    margin-top: -50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 3;
}

/* Hide settings panel and button permanently */
#settings-panel, #settingsButton {
    display: none !important;
} 