@font-face {
    font-family: 'es_buildregular';
    src: url('/assets/fonts/es_build-webfont.woff2') format('woff2'),
         url('/assets/fonts/es_build-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'es_buildmedium';
    src: url('/assets/fonts/es_build_medium-webfont.woff2') format('woff2'),
         url('/assets/fonts/es_build_medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/Gotham-Book.woff2') format('woff2'),
        url('/assets/fonts/Gotham-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/Gotham-Light.woff2') format('woff2'),
        url('/assets/fonts/Gotham-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/Gotham-Medium.woff2') format('woff2'),
        url('/assets/fonts/Gotham-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/Gotham-Thin.woff2') format('woff2'),
        url('/assets/fonts/Gotham-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/Gotham-Bold.woff2') format('woff2'),
        url('/assets/fonts/Gotham-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/Gotham-Black.woff2') format('woff2'),
        url('/assets/fonts/Gotham-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}



body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Gotham', 'Open Sans', sans-serif; /* Use Open Sans font */
    font-weight: 300;
    letter-spacing: 0.03em;
    font-size: 14.5px;
    font-style: normal;
    background-color: #001242; /* Fallback background color */
}

#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%; 
    min-height: 100%;
    object-fit: cover;
}


.scoreboard {
    text-align: center;
    border: 0px solid #6a6a6a; /* Fixed border color */
    border-radius: 20px;
    padding: 20px; 
    background: linear-gradient(
        to right,
        rgba(5, 21, 49, 0.5),
        rgba(18, 13, 40, 0.5),
        rgba(86, 26, 41, 0.5)
    );
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    height: 90vh;
    width: 1060px; /* Fixed width */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space between columns and footer */
    align-items: center;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    position: relative;
    z-index: 1;
}

.voting-status {
    font-size: 30px;
    margin-bottom: 5px;
    color: white; /* White text color */
    text-transform: uppercase;
    font-weight: 300;
}

.columns {
    display: flex;
    justify-content: space-between;
    height: 95%; /* Adjusted to fit within the scoreboard */
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    align-items: center; /* Center columns vertically */
}

.column {
    width: calc(50% - 15px); /* Adjust width for two columns with spacing */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.column.top-five {
    width: calc(50% - 15px);
    margin: auto; /* Center the column */
}

.country-container {
    width: 100%; /* Full width in each column */
    height: 28px;
    border-radius: 28px;
    padding: 0px; /* Reduced padding for a tighter fit */
    margin: 2px 0; /* Reduced margin for a tighter fit */
    border: 0px solid #343a40;
    /* background-color: #01171f; */
    display: flex;
    justify-content: space-between; /* Align items horizontally */
    align-items: center;
    cursor: pointer;
    transition: background-color 1.5s ease; 
    position: relative;
    color: #ffffff; /* Dark text */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    z-index: 2;
    overflow: hidden;
}

.country-container.standby,
.country-container.selected,
.country-container.highlight,
.country-container.gold,
.country-container.locked {
    transition: background-color 1.5s ease; /* Smooth background-color transition for all states */
}

.country-container.selected {
    background-color: rgba(45, 120, 176, 0.8); /* Slightly darker for selected */
}

.country-container.highlight {
  /*  background: linear-gradient(to left, #C03BB4 0%, #4B1E84 15%, #20A1C2 20%, #4B1E84 25%); */
    background: rgba(255, 255, 255, 0.10);
    /* background-color: #13343e; */
}

.country-container.gold {
    /* background: linear-gradient(to left, #EBD317 0%, #DC40C4 15%); */
    background: rgba(255, 255, 255, 0.25);
    /* background-color: #3b7789; */
}

.country-container.locked {
    background: rgba(0, 0, 0, 0.55);
    cursor: not-allowed; /* Indicate that it's not clickable */
}

.country-name {
    flex: 1;
    text-align: left; /* Align country names to the left */
    color: #D6EFFF; 
    padding-left: 10px; /* Padding to give space from the left edge */
    /* padding-top: 3px; */
    padding-bottom: 0px;
    z-index: 3;
    line-height: 28px;
    text-transform: uppercase;
    font-size: 1.1em;
    font-weight: 500;
}

.country-name.gold {
    /* background: linear-gradient(to left, #EBD317 0%, #DC40C4 15%); */
    color: #ffffff;
    font-weight: 500;
}

.country-code {
    flex: 1;
    text-align: left; /* Align country names to the left */
    color: #ffffff; /* Dark text */
    padding-left: 10px; /* Padding to give space from the left edge */
    /* padding-top: 3px; */
    padding-bottom: 0px;
    text-transform: uppercase;
    z-index: 3;
    line-height: 28px;
    font-size: 1.1em;
    font-weight: 500;
}

.country-code.gold {
    /* background: linear-gradient(to left, #EBD317 0%, #DC40C4 15%); */
    font-weight: 500;
}

.country-flag {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-right: 6px;
    margin-left: 72px;
    z-index: 3;
}

.country-points {
    width: 20px;
    text-align: right; /* Align overall points to the right */
    color: #b2bdd6; /* Dark text */
    padding-right: 30px; /* Padding to give space for current points box */
    white-space: nowrap; /* Prevent text from wrapping */
    position: absolute;
    left: 40px; /* 10px from the right edge */
    /* top: 8px; */
    z-index: 3;
    font-weight: 500;
    font-size: 0.9em;
    line-height: 28px;
}

.country-points.gold {
    /* background: linear-gradient(to left, #EBD317 0%, #DC40C4 15%); */
    color: #b2bdd6;
    font-weight: 500;
}

.country-points-container {
    text-align: right;
    width: 100%;
}

.current-points {
    position: absolute;
    border-radius: 50%;
    height: 28px;
    width: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0px;
    background-color: #ffffff; 
    /* background-color: rgba(6, 6, 6, 0.6); /* Darker background with 0.5 transparency */
    /* padding: 3px 3px 0px 3px; */
    font-size: 0.9em;
    color: #000000; /* text */
    /* display: none; */
    font-weight: 500;
    z-index: 3;
    line-height: 28px;
}

.current-points.gold {
    background-color: #ffffff;
}

.footer {
    font-size: 12px;
    text-align: center;
    color: white; /* White text color */
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes gradientShift {
    0% {
        background-position: 100% 50%;  /* Start from the left */
    }
    100% {
        background-position: 0% 50%;  /* End on the right */
    }
}

.country-container.highlight.animated-gradient {
    background: linear-gradient(to right, rgb(255, 255, 255, 0), rgb(255, 255, 255, 1), rgb(255, 255, 255, 0), rgb(255, 255, 255, 0));
    background-size: 500% 500%;  /* Ensure the gradient is wide enough to animate */
    animation: gradientShift 1.5s ease-in-out; /* Animate over 2 seconds */
} 

.country-container.animatedo-gradient {
    background: linear-gradient(to right, rgb(255, 255, 255, 1), rgb(255, 255, 255, 0), rgb(255, 255, 255, 1), rgb(255, 255, 255, 0));
    background-size: 500% 500%;  /* Ensure the gradient is wide enough to animate */
    animation: gradientShift 2s ease-in-out; /* Animate over 2 seconds */
    z-index: 10;
}

.points-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: rgb(38, 38, 38);
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Optional: text shadow for better visibility */
    z-index: 20; /* Ensure it is on top */
    pointer-events: none; /* Make sure the overlay doesn't interfere with clicks */

    /* Animation to make the text appear from the bottom */
    animation: slideUp 0.7s ease-in-out forwards; /* Run the slide up animation */
}

@keyframes slideUp {
    0% {
        transform: translate(-50%, 150%);
        opacity: 0;    /* Fully transparent at the beginning */
    }
    50% {
        opacity: 0.05;    /* Become fully visible halfway through the animation */
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;    /* Fully visible at the end */
    }
}