* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1d29;
    color: white;
    min-height: 100vh;
}

.game-grid-title{
    font-size: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.hero {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100vh;
}

.hero-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80%;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.75rem;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 2rem;
    color: #ffffff7a;
}

a.cta{
    background: #75f454;
    cursor: pointer;
    color: rgb(0, 0, 0);
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    margin-top: 30px;
    transition: background 0.3s ease;
}

a.cta:hover{
    background: #4caf50;
}

header {
    padding: 1rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    width: fit-content;
}

.logo svg {
    width: 32px;
    height: 32px;
    stroke: #75f454;
}

.logo span {
    font-weight: bold;
    font-size: 1.25rem;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.game-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 213px;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0.5rem;
    
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-radius: 0 0 0.5rem 0.5rem;
}

.game-info h3 {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0,0,0,0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.payment-methods {
    background-color: #1a1d29;
    padding: 3rem 1rem;
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

.background-img{
    width: 100%;
    position: fixed;
    will-change: transform;
    z-index: -10;
    top: 0;
}

.background-img img{
    width: 100%;
    opacity: .3;
}

.background-img .background-color{
    background: linear-gradient(180deg, transparent 0%, #1a1d29 50%);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
}

.hidden {
    display: none!important;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
    background: #1a1d29;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.3s ease-in-out forwards;
}

.popup-content h2 {
    margin-bottom: 1rem;
    color: #fff;
}

.popup-content label {
    display: block;
    margin-top: 1rem;
    color: #9ca3af;
}

.popup-content input[type="text"],
.popup-content input[type="email"],
.popup-content input[type="tel"] {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ffffff0f;
    border-radius: 0.25rem;
    background: #1a1d29;
    color: #fff;
}

.popup-content .checkbox-group {
    margin: 1rem 0;
}

.popup-content button[type="submit"], .submit {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #75f454;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-top: 2rem;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.row{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.col-6{
    width: 48%;
}

.col-4{
    width: 30%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#top_up, #account{
    background: transparent;
    color: white;
    border: 2px solid;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    gap: 20px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.prize_type_name{
    max-width: 130px;
}

#top_up, #account{
    -webkit-transition: all 150ms cubic-bezier(0.445, 0.050, 0.550, 0.950); 
}
  
#top_up:before, #account:before {
    position: absolute;
    content: "";
    background: url(https://f.cl.ly/items/3H3A0D1N281a2T280F3o/heist.svg) no-repeat center center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    -webkit-transition: all 250ms cubic-bezier(0.230, 1.000, 0.320, 1.000);
}

#top_up:after, #account:after {
    content: "";
    position: absolute;
    background: #930f8e;
    bottom: 0;
    left: 0;
    right: 0;
    top: 100%;
    z-index: -2;
    -webkit-transition: all 250ms cubic-bezier(0.230, 1.000, 0.320, 1.000);
}

#top_up:hover, #account:hover {
    border: 2px #930f8e solid;
}

#account:after {
    background: #2926d1;
}

#account:hover {
    border: 2px #2926d1 solid;
}

#top_up:hover:before, #account:hover:before {
    opacity: .8;
}

#top_up:hover:after, #account:hover:after {
    top: 0;
}

#top_up img, #account img{
    width: 30%;
}

.success-message, .adblock-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.success-content, .adblock-content {
    background: #1a1d29;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.3s ease-in-out forwards;
}

.success-icon, .adblock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    animation: tickScale 0.5s ease-in-out;
}

.success-icon svg, .adblock-icon svg {
    width: 100%;
    height: 100%;
    animation: tickStroke 0.5s ease-in-out;
}

.success-content h2, .adblock-content h2 {
    color: #4caf50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.adblock-content h2 {
    color: red;
}

.success-content p, .adblock-content p {
    color: #9ca3af;
    margin-top: 0.5rem;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes tickScale {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes tickStroke {
    0% {
        stroke-dasharray: 0, 100;
    }
    100% {
        stroke-dasharray: 100, 0;
    }
}

.error-message {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.error-content {
    padding: 1rem;
    width: 100%;
    transform: scale(0.9);
    animation: popIn 0.3s ease-in-out forwards;
    background: #f443361a;
    border-radius: 20px;
    margin-top: 30px;
}

.error-icon {
    display: flex;
    animation: tickScale 0.5s ease-in-out;
    align-items: center;
    gap: 20px;
}

.error-icon svg {
    width: 40px;
    height: 40px;
    animation: tickStroke 0.5s ease-in-out;
}

.error-content h2 {
    color: #f44336;
    font-size: 1rem;
    margin: 0;
}

.error-content p {
    color: #9ca3af;
    margin-top: 0.5rem;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes tickScale {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes tickStroke {
    0% {
        stroke-dasharray: 0, 100;
    }
    100% {
        stroke-dasharray: 100, 0;
    }
}

button[type="submit"]:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

button[type="submit"]:disabled:hover {
    background: #9ca3af;
}

/* All the spinner styles, with animation */
button[type="submit"]:disabled .spinner{
    border: 2px solid #9ca3af;
    border-top: 2px solid #75f454;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.phone-input-group {
    display: flex;
    margin-top: 10px;
}

.phone-input-group select {
    padding: 0 0.5rem;
    border: 1px solid #ffffff0f;
    border-radius: 0.25rem 0 0 0.25rem;
    background: #1a1d29;
    color: #fff;
    width: 160px;
    border-right: 0;
}

.phone-input-group input[type="tel"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ffffff0f;
    border-radius: 0 0.25rem 0.25rem 0;
    background: #1a1d29;
    color: #fff;
    margin: 0;
}

/* disable outline for all inputs & selec */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
}

.terms_news{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.terms_news label{
    color: #9ca3af;
    margin: 0;
    width: 100%;
}

.terms_news input[type="checkbox"]{
    width: 20px;
    height: 20px;
}

footer {
    background-color: #151823;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
}

.footer-links h3{
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-links a{
    color: #9ca3af;
    text-decoration: none;
}

.footer-links a:hover{
    color: white;
}

.footer-links li{
    margin-bottom: 0.5rem;
    list-style: none;
    text-align: center;
}

.footer-links p{
    color: #9ca3af;
    font-size: 15px;
}


.footer-links .about{
    text-align: left;
}

footer .social-icons{
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

/* FAQ PAGE STYLING */
.faq-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #2a2e3d;
    border-radius: 8px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #75f454;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.5rem;
    color: #75f454;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.5;
}

/* Responsive footer */
@media (max-width: 768px) {
    footer {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .footer-links h3{
        text-align: center;
    }

    .footer-links .about, .footer-links p{
        text-align: center;
    }
}

.lazyLoading {
    position: relative;
}

.lazyLoading img{
    visibility: hidden;
}

.lazyLoading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -20px 0 0 -20px;
    border: 4px solid #75f454;
    opacity: .2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.timer{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #75f454;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}