@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: #1c1436;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.user-icons i {
    font-size: 24px;
    margin-left: 10px;
    cursor: pointer;
    color: white;
}

.coins i {
    margin-right: 8px;
    color: yellow;
}

.main-header {
    width: 100%;
    background-color: #2d2b57;
    padding: 15px 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-input {
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    background-color: #312e60;
    color: #fff;
    font-size: 14px;
}

.coins {
    display: flex;
    align-items: center;
    color: #fff;
}

.coins img {
    width: 20px;
    margin-right: 8px;
}

.deposit-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #4b89ff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.deposit-btn:hover {
    background-color: #3a6ddf;
}

.user-icons img {
    width: 24px;
    margin-left: 10px;
    cursor: pointer;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    padding: 20px;
    flex-wrap: nowrap; 
    gap: 20px; 
    transition: opacity 0.5s ease;
}

.cards-container.show {
    opacity: 1;
}

.card {
    background-color: #4c48ff;
    border-radius: 16px;
    padding: 20px;
    width: 350px; 
    height: 250px; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    color: white;
    margin: 20px 0; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px 5px rgba(255, 0, 255, 0.8); 
}

.card-image {
    width: 50%; 
    height: 100%; 
    object-fit: contain; 
    margin-right: 10px;
}

.card-content {
    width: 50%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card p {
    font-size: 18px;
    margin-bottom: 10px;
}

.play-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2d2b57;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: #484690;
}

.header-text {
    color: #8751e4;
    font-size: 3em;
    text-align: center;
    line-height: 1.0625;
    font-weight: 600;
    letter-spacing: -0.009em;
    margin-top: 50px;
}

.glow-filter {
    position: relative;
    display: inline-block;
    scale: 1;
    animation: onloadscale 1s ease-out forwards;
}

.glow-filter::before {
    content: attr(data-text);
    position: absolute;
    pointer-events: none;
    color:  #8751e4;
    background: linear-gradient(0deg,rgba(255, 0, 255, 0.8) 0%, rgba(255, 0, 255, 0.8) 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: url(#glow-4);
    opacity: 0;
    animation: onloadopacity 1s ease-out forwards;
}

@keyframes onloadscale {
    24% {
        scale: 1;
    }
    100% {
        scale: 1.02;
    }
}

@keyframes onloadopacity {
    24% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .cards-container {
        flex-wrap: wrap; 
    }
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: row;
        justify-content: center;
    }

    .card {
        width: 100%;
        max-width: 300px; 
    }
}

@media (max-width: 480px) {
    .cards-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .card-image, .card-content {
        width: 100%;
        margin: 0;
    }

    .card p {
        font-size: 16px;
    }

    .play-button {
        font-size: 14px;
    }
}
