/* Inline CSS for demonstration (replace with your CSS file for production) */
@import url("https://fonts.googleapis.com/css?family=Poppins:400,800");
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,800");

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

html::-webkit-scrollbar {
    display: none;
}


body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

nav {
    display: flex;
    margin: 0 auto;
    transform: translateY(-50%);
    align-items: center;
    justify-items: center;
    width: 100%;
    text-align: center;
}

nav a {
    position: relative;
    width: 35%;
    display: table-cell;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    opacity: 0.5;
    padding: 10px 20px;
}

nav a:nth-child(3) {
    opacity: 1;
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    border-radius: 50px;
}

.candidates-container {
    display: flex;
    align-items: center;
    justify-items: center;
    padding: 20px;
    width: 100%;
}

.candidates-title {
    width: 95%;
    display: grid;
    grid-template-columns: 8% 92%;
    justify-items: right;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s ease-in;
}

.results-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    animation: fadeIn 1s forwards 0.8s ease-in;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #e67e22;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.results-table thead th {
    background-color: #e67e22;
    color: #fff;
    padding: 10px;
}

.results-table tbody tr:nth-child(even) {
    background-color: #e67e22;
    color: #000;
}

.results-table tbody tr:nth-child(odd) {
    background-color: #fff;
    color: #000;
}

.results-table td {
    padding: 10px;
    text-align: left;
}

.message-container {
    text-align: center;
    padding: 20px;
    background-color: #fde3a7;
    border: 1px solid #e67e22;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-title {
    font-size: 1.5rem;
    color: #e67e22;
}

.message-subtitle {
    font-size: 1rem;
    color: #555;
}

.logo {
    width: 110px;
}

@media (max-width: 800px) {

    .candidates-container {
        padding: 10px;
        justify-content: center;
    }

    /* Adjusting the home-title for stacking */
    .candidates-title {
        display: flex;
        /* Center vertically */
        align-items: last baseline;
        gap: 15rem;
        width: 95%;
        height: 8rem;
        padding: 10px;
        /* Add space between logo and navbar */
    }

    /* Center and resize navigation */
    nav {
        display: flex;
        flex-direction: column;
        /* Stack links vertically for smaller screens */
        /* Center navbar links */
        gap: 0.25;
        /* Space between links */
        margin: 0;
        /* Remove any top margin */
        width: 100%;
        /* Span the full width */
        transform: none;
    }

    nav a {
        font-size: 1rem;
        /* Adjust text size for smaller screens */
        width: auto;
        /* Adjust width to fit content */
        text-align: right;
        padding: 10px;
    }

    .navbar {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}