body {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    background: #1a1a1a;
    transition: background-color 0.3s;
    touch-action: manipulation;
    -webkit-text-size-adjust: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@font-face {
    font-family: 'Casino';
    src: url('/assets/font.ttf');
}

a, h1, h2, h3, h4, h5, h6, p, span, div, button, input, label {
    color: #000;
    font-family: 'Casino';
    font-size: 1.5vw;
}

@media (max-width: 670px) {
    a, h1, h2, h3, h4, h5, h6, p, span, div, button, input, label {
        font-size: 6vw;
    }

    h2{
        margin: 0;
    }
}

.text{
    font-size: 1.5vw;
}

.bigText{
    font-size: 6vw;
}

.game-link{
    text-decoration: none;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    animation: game-link-hover 8s ease-in-out infinite;
}

.game-link:nth-child(1) {
    animation-delay: 0s;
}

.game-link:nth-child(2) {
    animation-delay: 1s;
}

.game-link:nth-child(3) {
    animation-delay: 2s;
}

.game-link:nth-child(4) {
    animation-delay: 3s;
}

.game-link:nth-child(5) {
    animation-delay: 4s;
}

.game-link:nth-child(6) {
    animation-delay: 5s;
}

.game-link:nth-child(7) {
    animation-delay: 6s;
}

.game-link:nth-child(8) {
    animation-delay: 7s;
}

@keyframes game-link-hover {
    0% { transform: scale(1); filter: brightness(1); }
    6.75% { transform: scale(1.2); filter: brightness(1.3); box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
    12.5% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1); filter: brightness(1); }
}

.back-link{
    position: absolute;
    top: 10px;
    left: 10px;
}

@media (max-width: 670px) {
    .text{
        font-size: 6vw;
    }

    .bigText{
        font-size: 14vw;
    }
}

.content-container {
    max-width: 800px;
    width: 80vw;
    margin: 0 auto;
    padding: 20px;
    margin-top: 2vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    position: relative;
}

@keyframes background-flash {
    0% { background-color: #1a1a1a; }
    10% { background-color: red; }      
    20% { background-color: white; }
    30% { background-color: red; }
    40% { background-color: white; }
    50% { background-color: red; }
    60% { background-color: white; }
    70% { background-color: red; }
    80% { background-color: white; }
    90% { background-color: red; }
    100% { background-color: #1a1a1a; }
}

.winning-background {
    animation: background-flash 2.5s ease-in-out;
}

@keyframes background-flash-bigWin {
    0% { background-color: #1a1a1a; }
    10% { background-color: gold; }      
    20% { background-color: white; }
    30% { background-color: gold; }
    40% { background-color: white; }
    50% { background-color: gold; }
    60% { background-color: white; }
    70% { background-color: gold; }
    80% { background-color: white; }
    90% { background-color: gold; }
    100% { background-color: #1a1a1a; }
}

.bigWin-background {
    animation: background-flash-bigWin 2.5s ease-in-out;
}

.slot-machine {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 50px;
}

.slot {
    width: 10vw;
    height: 15vw;
    background: #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}

@media (max-width: 670px) {
    .slot{
        width: 25vw;
        height: 37.5vw;
    }

    .slot-machine{
        margin: 20px;
    }
}

.slot-content {
    transition: transform 0.05s linear;
    margin: auto auto;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slot-content img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.spinning .slot-content {
    animation: spin 0.05s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(50px);
    }
}

button {
    display: block;
    padding: 15px 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #c0392b;
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

#balance-container {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    width: fit-content;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#balance-label {
    font-size: 1.5vw;
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#balance {
    font-size: 3vw;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 670px) {
    #balance {
        font-size: 9vw;
    }

    #balance-label{
        font-size: 6vw;
    }

    #balance-container{
        padding: 5px;
        margin: 5px auto;
    }
}

@keyframes win-pulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes win-color {
    0% { background: linear-gradient(145deg, #2ecc71, #27ae60); }
    25% { background: linear-gradient(145deg, #f1c40f, #f39c12); }
    75% { background: linear-gradient(145deg, #f1c40f, #f39c12); }
    100% { background: linear-gradient(145deg, #2ecc71, #27ae60); }
}

.winning-animation {
    animation: win-pulse 0.5s ease-in-out 3, win-color 1.5s ease-in-out;
}

.coin {
    position: fixed;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23f1c40f" stroke="%23f39c12" stroke-width="2"/><text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="%23f39c12" font-size="12">€</text></svg>');
    background-size: contain;
    pointer-events: none;
    z-index: 1000;
    animation: fall linear forwards;
}

.money {
    position: fixed;
    width: 50px;
    height: 30px;
    object-fit: contain;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3E%3Crect x='0' y='0' width='200' height='100' fill='%234CAF50' rx='10' ry='10'/%3E%3Crect x='10' y='10' width='180' height='80' fill='none' stroke='%23388E3C' stroke-width='4' rx='6' ry='6'/%3E%3Ctext x='100' y='50' font-family='Arial, sans-serif' font-size='40' fill='%232E7D32' text-anchor='middle' dominant-baseline='central'%3E$%3C/text%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
    z-index: 1000;
    animation: fall linear forwards;
}


@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

#einzahlen-container {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 10px;
    max-width: 300px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#einzahlen-input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #e74c3c;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

#einzahlen-input:focus {
    border-color: #c0392b;
}

#einzahlen-input::-webkit-inner-spin-button,
#einzahlen-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#einzahlen-container button {
    margin: 10px auto;
    background: #e74c3c;
    text-align: center;
    width: 90%;
}

#einzahlen-container button:hover {
    background: #c0392b;
}

@media (max-width: 670px) {
    #einzahlen-container{
        max-width: 90vw;
    }

    #einzahlen-input{
        font-size: 6vw;
    }
}

.auto-spin-container{
    display: flex;
    column-gap: 1vw;
    align-items: center;
    justify-content: center;
}

#auto-spin {
    appearance: none;
    width: 3vw;
    height: 1.5vw;
    background: #ccc;
    border-radius: 2vw;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

#auto-spin:checked {
    background: #4CAF50;
}

#auto-spin::before {
    content: '';
    position: absolute;
    width: 1.2vw;
    height: 1.2vw;
    border-radius: 50%;
    background: white;
    top: 0.15vw;
    left: 0.15vw;
    transition: transform 0.3s;
}

#auto-spin:checked::before {
    transform: translateX(1.5vw);
}

@media (max-width: 670px) {
    #auto-spin {
        width: 8vw;
        height: 4vw;
        border-radius: 4vw;
    }

    #auto-spin::before {
        width: 3.2vw;
        height: 3.2vw;
        top: 0.4vw;
        left: 0.4vw;
    }

    #auto-spin:checked::before {
        transform: translateX(4vw);
    }
}

.spin-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    row-gap: -10px;
}

.bet-controls {
    display: flex;
    column-gap: 10px;
    row-gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.bet-amount-container{
    display: flex;
    column-gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

.bet-amount-container p{
    font-size: 3vw;
    margin: 0;
}

#bet-amount {
    width: 30%;
    padding: 10px;
    border: 2px solid #e74c3c;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

#bet-amount:focus {
    border-color: #c0392b;
}

#bet-amount::-webkit-inner-spin-button,
#bet-amount::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#card-container {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 10vw;
    height: 10vw;
    background: #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: transform .5s;
    transform-style: preserve-3d;
}

@media (max-width: 670px) {
    .card{
        width: 20vw;
        height: 20vw;
    }
}

.card.anim{
    animation: cardAnimation .5s ease-in-out;
    transform: scale(-1, 1) rotateY(180deg);
}

.card.selected {
    background: #2ecc71;
}

@keyframes cardAnimation {
    0% { background-color: rgb(37, 37, 37); }
    20% { background-color: #dbbe00; }
    80% { background-color: #dbbe00; }
    90% { background-color: rgb(37, 37, 37); }
}

.card.lost {
    background: #e74c3c;
}

#bomb-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    aspect-ratio: 1;
    width: 50%;
    margin: 0 auto;
    padding: 10px;
}

@media (max-width: 670px) {
    #bomb-container{
        width: 90%;
    }
}

.bombCard {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: calc(2vw + 8px);
    transition: transform .5s;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.bombCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: 10px;
    transition: background 0.3s ease;
    z-index: -1;
}

.bombCard.clicked::before {
    background: transparent !important;
}

.bombCard img{
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.bombCard:hover{
    cursor: pointer;
    transform: scale(1.13);
}

.bombCard:hover::before{
    background: linear-gradient(145deg, #fff200, #ffbf00) !important;
    transition: background-color 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
    .bombCard:hover::before{
        background: transparent !important;
    }

    .bombCard:hover{
        transform: scale(1);
    }
}

.bombAnimation{
    animation: bombAnimation 0.5s ease-in-out;
}

@keyframes bombAnimation {
    0% { transform: scale(1); }
    20% { transform: scale(1.2) rotate(5deg); }
    30% { transform: scale(1.3) rotate(-5deg); }
    40% { transform: scale(1.4) rotate(5deg); }
    50% { transform: scale(1.5) rotate(-5deg); }
    60% { transform: scale(1) rotate(5deg); }
    70% { transform: scale(0.5) rotate(-5deg); }
    80% { transform: scale(0); }
    85% { transform: scale(0); }
    90% { transform: scale(0); }
    95% { transform: scale(1.2); }
    97% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.shake{
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(2px, 0px) rotate(1deg); }
    30% { transform: translate(-2px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-2px, 1px) rotate(0deg); }
    70% { transform: translate(2px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}


#links-container{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 670px) {
    #links-container{
        width: 75vw;
    }
}

#links-container a{
    width: 50%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    background: #333;
    color: rgb(230, 219, 0);
    text-align: center;
}

#cash-out-info{
    text-align: center;
    background: #333;
    color: rgb(230, 219, 0);
    padding: 10px;
    border-radius: 10px;
    margin: 0;
}

.winning-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: gold;
  text-shadow: 2px 2px 4px rgb(196, 137, 0);
  animation: blink-animation 2s ease-in-out;
  z-index: 1000;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 670px) {
    .winning-text{
        white-space: normal;
        width: 90vw;
    }
}

.losing-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: rgb(74, 74, 74);
    text-shadow: 2px 2px 4px rgba(72, 72, 72, 0.3);
    animation: blink-animation 2s ease-in-out;
    z-index: 1000;
    white-space: nowrap;
}

@keyframes blink-animation {
  0% { opacity: 1; }
  20% { opacity: 0.25; }
  40%  { opacity: 1; }
  60% { opacity: 0.25; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}


.blackjack-card {
    display: inline-block;
    padding: 10px;
    margin: 5px;
    aspect-ratio: 2 / 3;
    border: 1px solid #000;
    border-radius: 5px;
    background-color: white;
    position: relative;
    min-width: 7vw;
    margin-left: -5vw;
    animation: cardAnim 0.5s ease-out forwards;
}

.blackjack-card-text {
    position: absolute;
    top: 1vh;
    left: 1vh;
    font-size: 3vw;
}

@keyframes cardAnim {
    0% {
        transform: translate(-1000px, -500px) rotate(-180deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) rotate(0);
        opacity: 1;
    }
}

@keyframes turn-around {
    0% { transform: scale(-1, 1) rotateY(180deg); }
    100% { transform: scale(1, 1) rotateY(0deg); }
}

.blackjack-card-img {
    width: 40px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.blackjack-card-background{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border-radius: 10px;
}

.blackjack-hand {
    margin: 20px 0;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5vw;
}

#blackjack-controls {
    margin: 20px 0;
}
.blackjack-hidden {
    display: none;
}

@media (max-width: 670px) {
    .blackjack-card{
        min-width: 15vw;
        margin-left: -10vw;
    }

    .blackjack-card-text{
        font-size: 6vw;
        top: 0.5vh;
        left: 0.5vh;
    }

    .blackjack-hand{
        padding-left: 10vw;
        margin: 5px auto;
    }
}

.signup-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    color: rgb(230, 219, 0);
    text-align: left;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.form-input {
    padding: 10px;
    border: 2px solid #e74c3c;
    border-radius: 5px;
    background: rgba(51, 51, 51, 0.9);
    color: white;
    font-size: 1.1em;
    transition: border-color 0.3s, transform 0.3s;
}

.form-input:focus {
    border-color: rgb(230, 219, 0);
    transform: scale(1.02);
    outline: none;
}

.error-text {
    color: #e74c3c;
    font-size: 0.9em;
    margin: 5px 0;
    text-align: left;
}

.casino-button {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.casino-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(145deg, #c0392b, #e74c3c);
}

@media (max-width: 670px) {
    .signup-container {
        max-width: 90%;
    }
    
    .form-label {
        font-size: 6vw;
    }
    
    .form-input {
        font-size: 5vw;
        padding: 15px;
    }
    
    .casino-button {
        font-size: 6vw;
        padding: 20px;
    }
    
    .error-text {
        font-size: 4vw;
    }
}

.wheel-container {
    position: relative;
    width: 25vw;
    height: 25vw;
    margin: 20px auto;
    background: #5d2d0b;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#wheel {
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

#selector {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #5d2d0b;
    z-index: 2;
}

@media (max-width: 670px) {
    .wheel-container {
        width: 70vw;
        height: 70vw;
    }
    
    #wheel {
        width: 300px;
        height: 300px;
        z-index: -1;
    }
}

@keyframes spinWheel {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(var(--spin-degrees));
    }
}

.spinning {
    animation: spinWheel 4s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

.color-bet-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.color-bet-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    width: fit-content;
    margin: 0 0;
}

.color-bet-btn:hover {
    transform: scale(1.05);
}

.color-bet-btn.green { background-color: #008000; }
.color-bet-btn.red { background-color: #FF0000; }
.color-bet-btn.black { background-color: #000000; }

.color-bet-btn.selected {
    border: 5px solid rgb(71, 71, 71);
    transform: scale(1.1);
}

.game-area {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0;
    background-position-y: 0.2vw;
    background-image: url('/assets/dinosaurBackground.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    animation: scrollBackground 10s linear infinite;
    animation-play-state: paused;
}

@keyframes scrollBackground {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: -200%;
    }
}

.dinosaur {
    width: 10vw;
    height: 10vw;
    background: url('/assets/dinosaur.gif') no-repeat;
    background-size: contain;
    position: absolute;
    bottom: 2vw;
    left: 20px;
    animation: spawnDinosaur 1s ease-in forwards;
}

.dinosaur.exploding {
    animation: dinosaurExplode 1s ease-out forwards;
    display: none;
}

.dinosaur.runAway{
    animation: runAway 1s ease-out forwards;
    display: none;
}

@keyframes spawnDinosaur {
    from {
        transform: translate(0, -100vh);
    }
    to {
        transform: translate(0, 0);
    }
}

@keyframes dinosaurExplode{
    from{
        transform: scale(1) translate(0, 0);
        display: block;
    }
    to{
        transform: scale(1.5) translate(-50vw, -50vh) rotate(180deg);
        display: block;
    }
}

@keyframes runAway{
    from{
        transform: scale(1) translate(0, 0);
        display: block;
    }
    to{
        transform: translate(100vw, 0);
        display: block;
    }
}

.meteor {
    position: absolute;
    width: 7vw;
    height: 7vw;
    left: 50%;
    top: 50%;
    background-image: url('/assets/meteor.webp');
    background-size: contain;
    background-repeat: no-repeat;
    animation: meteorFall .5s linear forwards;
    z-index: 2000;
}

@keyframes meteorFall {
    from {
        transform: translate(85vw, -40vw) rotate(15deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(15deg);
    }
}

.nearMissMeteor{
    position: absolute;
    width: 5vw;
    height: 5vw;
    background-image: url('/assets/meteor.webp');
    background-size: contain;
    background-repeat: no-repeat;
    animation: nearMissMeteorFall 1s linear forwards;
    z-index: 2000;
}

@keyframes nearMissMeteorFall {
    0% {
        transform: translate(85vw, -40vw) rotate(15deg);
    }
    95% {
        transform: translate(-100%, -100%) rotate(15deg);
    }

    100% {
        transform: translate(-1000%, -1000%) rotate(15deg);
    }
}

@keyframes nearMissMeteorFall2 {
    0% {
        transform: translate(85vw, -40vw) rotate(0deg);
    }
    95% {
        transform: translate(200%, 200%) rotate(0deg);
    }

    100% {
        transform: translate(-1000%, -1000%) rotate(15deg);
    }
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2vw;
    background: #333;
}

.multiplier {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #333;
}

.explosion {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ff4d4d, #ff9933, #ffff66);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 2001;
    animation: explode 0.5s ease-out forwards;
    left: 50%;
    top: 50%;
}

@keyframes explode {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.canvas {
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

#payout-display {
    text-align: center;
    color: white;
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    position: absolute;
    top: 1vh;
    right: 1vh;
}

.stock-market-container{
    position: relative;
}

@media (max-width: 670px) {
    canvas {
        width: 100% !important;
        height: auto !important;
    }

    .stock-market-container {
        margin: 10px -10px;
    }

    #payout-display {
        font-size: 4vw;
        padding: 5px;
        top: 0.5vh;
        right: 0.5vh;
    }

    .bet-controls {
        align-items: center;
        gap: 15px;
    }

    .bet-amount-container p{
        font-size: 8vw;
    }

    #bet-amount {
        width: 55%;
        font-size: 5vw;
        padding: 15px;
    }

    .bet-controls button {
        width: 40%;
        padding-top: 15px;
        padding-bottom: 15px;
        font-size: 5vw;
    }

    button{
        padding-right: 10px;
        padding-left: 10px;
    }
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: rgb(230, 219, 0);
    font-size: 1.1em;
    margin-left: 4px;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid rgba(230, 219, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: rgb(230, 219, 0);
    box-shadow: 0 0 10px rgba(230, 219, 0, 0.2);
    outline: none;
}

.forgot-password {
    color: #888;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: rgb(230, 219, 0);
}

.error-text {
    color: #e74c3c;
    text-align: center;
    font-size: 0.9em;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 670px) {    
    .form-label {
        font-size: 4vw;
    }

    .form-input {
        font-size: 4vw;
        padding: 10px;
    }
}

#game-board {
    width: 40vw;
    height: 30vw;
    margin: 20px auto;
    position: relative;
}

#plinko-canvas {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    border-radius: 10px;
}

#multipliers-container {
    position: absolute;
    bottom: 0;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 1px;
}

#multipliers-container div {
    border-radius: 5px;
    font-size: 1.2vw !important;
    padding: 5px 5px;
    text-align: center;
    width: calc((100% - 12px) / 13);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 670px) {
    #game-board {
        width: 80vw;
        height: 70vw;
        margin: 10px auto;
    }

    #multipliers-container {
        bottom: 15%;
    }

    #multipliers-container div {
        font-size: 2.5vw !important;
    }

}

* {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

footer {
    margin-top: auto;
    width: 100%;
}

.footer-content{
    margin: 0 auto;
    margin-top: 3vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1vh;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: white;
    gap: 10px;
    z-index: 1002;
    width: fit-content;
}

.footer-content a, .footer-content p{
    color: white;
    text-decoration: none;
}

.footer-content a:hover{
    color: rgb(230, 219, 0);
}

.scratch-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scratch-cell {
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7d7d7d;
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.scratch-overlay:hover {
    background-color: #929292;
}

.symbol {
    z-index: 0;
    font-size: 28px;
    color: #333;
}

/* Symbol specific styling */
.symbol.cherry {
    color: #e03131;
}

.symbol.lemon {
    color: #fcc419;
}

.symbol.orange {
    color: #fd7e14;
}

.symbol.grape {
    color: #9775fa;
}

.symbol.seven {
    color: #f03e3e;
}

.symbol.diamond {
    color: #4dabf7;
}
