html {
    background-color: aliceblue;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    background-image: url('./Assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body {
    display: flex;
    height: 100%;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
}

#main {
    padding-top: 40%;
    text-align: center;
}

h1 {
    animation: fadeIn 2s ease-in-out;
    font-size: 50px;
    text-align: center;
}

#countdown {
    background-color: black;
    opacity: 0;
    animation: fadeIn 2s ease-in-out;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
    padding: 10px;
}

#visit-count {
    font-size: 30px;
    opacity: 0;
    position: absolute;
    left: 10%;
    top: 40%;
    animation: fadeIn 2s ease-in-out;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
}

.popup {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 2s ease-in-out;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff, #e6e6e6);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.popup-content h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333333;
}

.popup-content p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

.popup-content a {
    color: #0066cc;
    text-decoration: none;
}

.popup-content a:hover {
    text-decoration: underline;
}

.popup-content button {
    margin: 0 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-content button.accept {
    background-color: #4caf50;
    color: white;
}

.popup-content button.accept:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.popup-content button.deny {
    background-color: #f44336;
    color: white;
}

.popup-content button.deny:hover {
    background-color: #e53935;
    transform: scale(1.05);
}

.profile-container {
    position: absolute;
    display: flex;
    align-items: center;
    right: 5%;
    top: 40%;
    background-color: #292b2f;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 0 5px #292b2f;
    opacity: 0;
    animation: fadeIn 2s ease-in-out;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
}

.avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: visible;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status {
    position: absolute;
    bottom: -1.5px;
    right: -1.5px;
    width: 14px;
    height: 14px;
    background-color: #80848e;
    border: 3px solid #292b2f;
    border-radius: 50%;
}

.info {
    margin-left: 10px;
}

.username {
    text-align: left;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
}

.status-text {
    font-size: 14px;
    color: #b9bbbe;
    margin-top: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    #main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        height: auto;
    }

    #countdown {
        position: static;
        background-color: black;
        padding: 10px;
        font-size: 16px;
    }

    #visit-count {
        position: static;
        margin-top: 10px;
        font-size: 16px;
    }

    .profile-container {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 400px;
    }

    .avatar {
        margin-bottom: 10px;
    }

    .info {
        text-align: center;
    }

    .popup-content {
        width: 90%;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }
}