/* style.css */

body {
    /* Font family is already linked in HTML head */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.eurostyle {
    font-family: "eurostile", sans-serif;
font-weight: 700;
font-style: italic;
}

/* Custom styles for modal */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* SVG Progress bar styling */
.svg-progress-container {
    width: 100%;
    height: 1.25rem; /* h-5 */
    position: relative;
    /* Ensure text is readable over the bar */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
}

.svg-progress-background {
    fill: #e0e0e0; /* Light gray */
    rx: 0.625rem; /* rounded-lg equivalent */
    ry: 0.625rem; /* rounded-lg equivalent */
}

.svg-progress-bar {
    fill: #1271b9; /* prmblue */
    rx: 0.625rem; /* rounded-lg equivalent */
    ry: 0.625rem; /* rounded-lg equivalent */
    transition: width 0.5s ease-in-out;
}

.svg-progress-bar.achieved {
    fill: #008a00; /* prmgreen */
}

.svg-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Default text color over the bar */
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure text is above SVG */
}
.svg-progress-text.dark-text {
    color: #333; /* Darker text for light backgrounds (e.g., if bar is very short) */
}
