html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    background-image: url('img/growtopia_world_background.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    overflow: auto;
    box-sizing: border-box;
}


body.modal-active {
    overflow: hidden;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    display: block;
    opacity: 1;
}


.container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 90%;
    z-index: 1;
    position: relative;
    transition: filter 0.3s ease-in-out;
    margin-top: auto; 
    margin-bottom: 20px; 
}


body.modal-active .container {
    filter: blur(5px);
}

h1 {
    color: #ffd700;
    margin-bottom: 20px;
}

.calendar-image {
    max-width: 100%;
    height: auto;
    border: 5px solid #ffd700;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.calendar-image:hover {
    transform: scale(1.02);
}

.disclaimer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ccc;
}


.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    box-sizing: border-box;

    justify-content: center;
    align-items: center;
    padding: 20px;
}


.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    height: auto;
    width: auto;
    animation-name: zoom;
    animation-duration: 0.6s;
    border: 5px solid #ffd700;
    border-radius: 8px;
    filter: none;
}


@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}


.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 11;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


.site-footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: #aaa; 
    font-size: 0.8em;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1; 
    margin-top: auto; 
}



@media only screen and (max-width: 700px){
    .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.5em;
    }
}



.discord-popup {
    display: none; 
    position: fixed;
    z-index: 100; 
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(30, 30, 40, 0.95);
    border: 3px solid #5865F2; 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-sizing: border-box;
}

.discord-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.discord-button {
    background-color: #5865F2; 
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    width: 100%;
    justify-content: center;
}

.discord-button:hover {
    background-color: #4752C4;
}

.discord-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    
}

.popup-countdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #bbb;
    font-size: 0.9em;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 5px;
}

.close-popup-button {
    background-color: #4CAF50; 
    color: white;
    border: none;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-popup-button:hover {
    background-color: #45a049;
}


body.discord-popup-active .container,
body.discord-popup-active .site-footer {
    filter: blur(3px);
}