* {
    box-sizing: border-box;
}

body {
    background: var(--background-image);
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

a.right {
    width: 250px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

#header_logo.logo {
    padding: 10px;
    position: absolute;
    right: 0;
    padding-left: 0;
    padding-bottom: 0;
    padding-right: 50px;
    padding-top: 50px;
    display: block !important;
    max-width: 250px !important;
    max-height: 250px !important;
}

.chrono {
    display: block;
    position: absolute;
    z-index: 10;
    top: 25%;
    right: 3%;
    text-align: center;
    font-size: 6vw;
    font-family: "PSG-Bold", sans-serif;
    color: #fff;
}

.chrono .end {
    color: #ff0000;
}

.notice {
    top: 50%;
}

.slot-machine {
    border-radius: 10px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-secondary-color 0.5s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#result {
    width: 30%;
    height: 10vh;
    background-color: var(--secondary-color);
    border: 10px solid var(--primary-color);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 50%;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--secondary-font-family);
}

.reels {
    display: flex;
    justify-content: space-around;
    height: 50vh;
    width: 60vw;
    opacity: 1;
    filter: grayscale(0);
    margin: 0 auto;
    margin-bottom: 5rem;
}

.reel-strip,
.final-strip {
    position: absolute;
    left: 0;
    width: 100%;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.reel {
    width: 30%;
    height: 70vh;
    background-color: var(--secondary-color);
    border: 16px solid var(--third-color);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.reel-strip {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
}

.symbol-container {
    height: calc(70vh / 3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--background-secondary-color);
}

.symbol-container img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.reel-strip,
.symbol-container,
.symbol-container img {
    transform: none;
    -webkit-transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

.reel-arrows {
    z-index: 3;
}

.reel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(70vh / 3);
    height: calc(70vh / 3);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    pointer-events: none;
    z-index: 9;
}

.reel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.reel-arrows::before,
.reel-arrows::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
}

.reel-arrows::before {
    border-left: 50px solid var(--secondary-color);
    margin-right: 0px;
}

.reel-arrows::after {
    border-right: 50px solid var(--secondary-color);
    margin-left: 0px;
}

.reels-out {
    opacity: 0.5;
    filter: grayscale(1);
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.win-animation .reel,
.blink {
    animation: blink 0.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100000px);
    }
}

@keyframes spinReel {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10000px);
    }
}

@keyframes winPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes winGlow {
    0% {
        box-shadow: 0 0 5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
}

.winning-animation {
    animation: winPulse 0.5s infinite, winGlow 1s infinite;
}

.winning-animation2 {
    animation: winGlow 1s infinite;
}

.reel-strip {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.reel {
    overflow: hidden;
    position: relative;
    height: 70vh;
}

.reel-strip {
    position: absolute;
    width: 100%;
}

.symbol-container {
    height: calc(100vh/3);
    /* Should be reel.height / 3 */
    display: flex;
    align-items: center;
    justify-content: center;
}