@font-face {
    font-family: rifficFont;
    src: url(assets/RifficFree-Bold.ttf);
  }

body {
    background-color: rgba(93, 17, 175, 255);
    color: white;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

canvas {
    /* border: 5px solid white; */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding-left: 0;
    padding-right: 0;
    margin-left: 30px;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: end;
    bottom: 10px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20px;
}

.container, .button-container {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gameTitle {
    max-width: 8vw;
    max-height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.title-text {
    text-align: center;
    font-family: rifficFont;
    margin-left: 10px;
    font-size: 1.5vw;
}

.title-image {
    width: 3vw;
    height: 3vw;
}

.toodzer-display, .controls {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    color: #ffd000;
    font-size: 18px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    width: 100%;
    text-align: left;
}

#totalToodzer, #currentSpinToodzer {
    display: block;
    font-size: 28px;
    text-align: left;
}

button {
    min-width: 100%;
    background-color: rgba(93, 17, 175, 255);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s;
    outline: none;
}

.darkerPurple {
    background-color: rgba(46, 8, 87, 255);
}

button:hover {
    /* background-color: rgba(93, 17, 175, 155); */
    transform: scale(1.05);
}

button:active {
    /* background-color: rgba(93, 17, 175, 100); */
    transform: scale(0.95);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(93, 17, 175, 255);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.box select {
    background-color: rgba(93, 17, 175, 255);
    color: white;
    padding: 12px;
    width: 250px;
    border: none;
    font-size: 20px;
    box-shadow: 0 5px 25px rgba(93, 17, 175, 0.2);
    -webkit-appearance: button;
    appearance: button;
    outline: none;
}

.box:hover::before {
    color: rgba(93, 17, 175, 0.6);
    background-color: rgba(93, 17, 175, 0.2);
}

.box select option {
    padding: 30px;
}

@keyframes spinCountAnim {
    0% { background-color: rgba(46, 8, 87, 255); }
    50% { background-color: rgba(70, 13, 131, 255); }
    100% { background-color: rgba(46, 8, 87, 255); }
}

.autoSpinActive {
    animation: spinCountAnim 2s infinite;
}

.icon {
    width: 50px;
    height: 50px;
    z-index: -1000;
    background-size: cover;
    position: fixed;
    animation: moveAndFade 5s ease-in-out forwards;
}

@keyframes moveAndFade {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(10px, 10px) rotate(20deg); /* Adjust movement and rotation */
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
}