@font-face {
    font-family: toodzFont;
    src: url(assets/RifficFree-Bold.ttf);
}

body {
    background-color: rgba(93, 17, 175, 255);
    color: white;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

canvas {
    /* border: 5px solid white; */
    border-radius: 25px;
    padding-left: 0;
    padding-right: 0;
    margin-left: 30px;
    margin-top: 3vh;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

h1 {
    text-align: center;
    font-family: toodzFont;
    margin-bottom: -10px;
}

#toggleTable table { 
    table-layout: fixed;
}

#toggleTable td {
    width: 20%;
    height: 20%;
    font-size: 12px;
    text-align: center;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.main-container {
    flex: 1;
    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: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.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%;
}

.container, #playerTable {
    max-width: 350px;
}

.advanced-controls {
    max-width: 1323px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust as needed */
    text-align: center;
    padding: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Optional */
    color: white;
    margin-top: 20px; /* Ensure there's space above */
    margin-left: 22px;
    margin-bottom: 20px;
    overflow: hidden;
}

#playerTable {
    /* border: solid white 3px; */
    border-radius: 10px;
    left: 0px;
    padding-left: 0px;
    margin-left: 0px;
    height: 50%;
    width: 100%;
    max-height: 50vh;
    max-width: 350px;
    overflow-x: auto;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

img {
    border-radius: 10px;
    max-width: 250px;
}

textarea {
    max-width: 300px;
    max-height: 70vh;
    height: 20vh;
    border-radius: 10px;
}

button {
    min-width: 90%;
    background-color: rgba(93, 17, 175, 255);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s;
    outline: none;
}

button:hover {
    background-color: rgba(93, 17, 175, 255);
    transform: scale(1.05);
}

button:active {
    background-color: rgba(93, 17, 175, 255);
    transform: scale(0.95);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 90%;
    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 {
    border-radius: 10px;
    background-color: rgba(93, 17, 175, 255);
    color: white;
    padding: 12px;
    width: 250px;
    border: none;
    font-size: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    -webkit-appearance: button;
    appearance: button;
    outline: none;
}

.box:hover::before {
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
}

.box select option {
    padding: 30px;
}

.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;
    }
}

/* TOGGLE */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: rgba(93, 17, 175, 255);
}

input:focus + .slider {
    box-shadow: 0 0 1px rgba(93, 17, 175, 255);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 20px;
}
  
::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
}

::-webkit-scrollbar-corner {
    background: rgba(0,0,0,0);
}