html {
    overflow-x: hidden;
}

body {
    text-align: center;
    display: flex;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: 40px;
}

body {
    background-image: url('https://i.ibb.co/Lh0NpN5k/BG-MAHJONG-DRAW-DOKTER88.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.card {
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    margin-bottom: 45px;
    position: relative;
    background: transparent;
}

.card-content {
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    max-height: 355px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card-content h3 {
    font-size: 20px;
}

.bg-image {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    opacity: 1;
    z-index: 0;
    transform: scale(1.5);
}

.logo-container {
    position: absolute;
    bottom: 0;
    width: 60%;
}

.tile-container {
    display: grid;
    grid-template-columns: repeat(6, 60px);
    grid-gap: 12px;
}

.tile {
    background-color: rgba(200, 200, 200, 0.8);
    font-size: 40px;
    border-radius: 6px;
    width: 60px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.9s;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tile.flipping {
    transform: rotateY(180deg);
}

.tile .front,
.tile .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile .back {
    transform: rotateX(180deg);
}

.flipped {
    cursor: default;
    background-color: transparent;
}

.reward-box {
    padding: 10px;
    border-radius: 5px;
}

.rewards-list {
    width: 500px;
}

.rewards-list img {
    transform: scale(1.15);
}

input[name="code"] {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 18px;
    color: #333;
    background-color: #fdf5e6;
    /* Light golden background */
    border: 2px solid #d4af37;
    /* Gold border */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease-in-out;
}

input[name="code"]:focus {
    border-color: #ffd700;
    /* Bright gold on focus */
    box-shadow: 0 0 10px #ffd700;
    background-color: #fff8dc;
    /* Slightly brighter background */
}

input[name="code"]::placeholder {
    color: #a67c00;
    /* Gold-like placeholder text */
    font-style: italic;
}

button[type="submit"] {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 18px;
    color: white;
    background-color: #d4af37;
    /* Gold background */
    border: 2px solid #d4af37;
    /* Gold border */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    margin-top: 8px;
}

button[type="submit"]:hover {
    background-color: #ffd700;
    /* Bright gold on hover */
    border-color: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

button[type="submit"]:active {
    background-color: #b8860b;
    /* Darker gold on click */
    border-color: #b8860b;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1440px) {
    body {
        background-size: cover;
    }
}

@media (max-width: 430px) {
    body {
        padding-top: 0;
    }

    .card {
        width: 100%;
        margin-top: 50px;
        margin-bottom: 25px;
    }

    .card-content {
        max-height: 265px;
    }

    .rewards-list {
        width: 100%;
    }

    .tile-container {
        grid-template-columns: repeat(6, 50px);
        grid-gap: 10px;
    }

    .tile {
        width: 50px;
        height: 50px;
        font-size: 40px;
        border-radius: 5px;
    }

    .card-content h3 {
        font-size: 18px;
    }
}

@media (max-height: 800px) {
    .card {
        margin-top: 70px;
    }
}