@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: url("../img/bg.jpg") center center / cover no-repeat;

    font-family: "Rubik", sans-serif;
    font-size: 18px;
    line-height: 1.5em;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 10px;
}

.header {
    padding: 20px 0;
}

.header h1 {
    font-size: 42px;
    text-align: center;
    color: sandybrown;
}


.game {

}

.game__wrapper {
    background: rgba(102, 51, 153, 0.616);
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: hidden;

    border-radius: 20px;
    box-shadow: 0px 8px 8px 8px rgba(102, 51, 153, 1);

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
}

.game__column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 360px;
    gap: 20px;
}

.game__column-img {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game__column-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 32px;
    padding-bottom: 30px;
}

.start {
    text-transform: uppercase;
    cursor: pointer;
    padding: 30px 60px;
    background-color: sandybrown;
    border-radius: 20px;
    transition: .4s;
}

.start:hover {
    background-color: #BB0200;
}



/* Animations */
@keyframes spin {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}


/* Popup container */
#popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual popup style */
.popup {
    background-color: #66aede;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    animation: popupIn 0.5s forwards, popupOut 3.5s 2.5s forwards;
    font-family: "Yatra One", sans-serif;
}

/* Popup animation */
@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popupOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* Reg popup */
/* Registration modal styles */
.registration-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
}

.registration-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.registration-content h2 {
    margin-bottom: 20px;
    font-family: "Yatra One", sans-serif;
}

.registration-content label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
}

.registration-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    background-color: #66aede;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #4c8bbf;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}
