* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background-color: rgb(89, 90, 106);
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgb(69, 64, 64);
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    max-width: 600px;
    align-items: center; /* Center-align everything inside the container */
}

h1 {
    font-size: 2rem;
    text-align: center; /* Center-align the heading */
    margin-bottom: 1rem; /* Optional: Space below the heading */
}

.user-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: start;
}

.user-input-container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

#user-input {
    width: 80%;
    padding: 0.4rem;
    border-radius: 5px;
}

#search-btn {
    padding: 0.4rem;
    border-radius: 5px;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #299f5d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1 rem;
    color: white;
    font-weight: 700;
    background: conic-gradient(#299f5d var(--progress-degree, 0%), #283a2e 0%);
    flex-direction: column;
}

.circle span {
    position: relative;
    z-index: 2;
}

.progress {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 10px;
}

.stats-cards {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-evenly;
}

h4 {
    font-size: 1rem;
}

.card {
    background-color: rgb(230, 146, 44);
    width: 40%;
    max-width: 290px;
    padding: 10px;
    border-radius: 10px;
    font-size: 1rem;
    min-height: 4rem;
}

/* CORS Info Section */
.cors-info {
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
}

.cors-info a {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
}

.cors-info a:hover {
    text-decoration: underline;
}

.cors-info p {
    margin: 5px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 80%; /* Take up more width on smaller screens */
        padding: 15px; /* Less padding on small screens */
    }

    h1 {
        font-size: 1.5rem; /* Smaller header text */
    }

    .circle {
        width: 100px;
        height: 100px; /* Smaller circle */
        font-size: 0.9rem;
    }

    .user-input-container {
        flex-direction: column; /* Stack input and button vertically */
        gap: 10px;
    }

    #user-input {
        width: 100%; /* Full width input */
    }

    .stats-cards {
        flex-direction: column;
        gap: 15px;
        justify-content: center; /* Center align cards */
    }

    .card {
        width: 80%; /* Cards take more width on smaller screens */
        max-width: none; /* Remove max-width to allow for flexibility */
    }

    .progress {
        flex-direction: column; /* Stack progress indicators vertically */
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%; /* Even more width for very small screens */
    }

    h1 {
        font-size: 1.2rem; /* Further reduce font size */
    }

    .circle {
        width: 80px;
        height: 80px; /* Even smaller circle */
        font-size: 0.8rem;
    }

    .card {
        width: 100%; /* Cards take full width on very small screens */
    }
}
