* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1d29;
    color: white;
    min-height: 100vh;
}

.hero {
    background-size: cover;
    background-position: center;
    position: relative;
}

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;
}

.logo svg {
    width: 32px;
    height: 32px;
    stroke: #3b82f6;
}

.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;
}

footer {
    background-color: #151823;
    padding: 4rem 1rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    color: #9ca3af;
}

.footer-logo svg {
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.background-img{
    width: 100%;
    position: absolute;
    z-index: -10;
    top: 0;
}

.background-img img{
    width: 100%;
    opacity: .03;
}

.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"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #3b82f6;
    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%;
}

@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;
}

#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: #d19b26;
    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 #d19b26 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 {
    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 {
    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 {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    animation: tickScale 0.5s ease-in-out;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    animation: tickStroke 0.5s ease-in-out;
}

.success-content h2 {
    color: #4caf50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-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;
    }
}