* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #333;
    margin-left: 20px;
    margin-right: 20px;
    padding: 0;
    padding-top: 70px;
}

::selection {
    background: #00ffc3;
    color: #000;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.hero-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.band-logo {
    flex: 0 0 300px;
    text-align: center;
}

.band-logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.voting-info {
    flex: 1;
    min-width: 300px;
}

.voting-info {
    flex: 1;
    min-width: 300px;
}

.main-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.show-name-section {
    margin-bottom: 1.5rem;
}

#showname-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

#showname-form input {
    width: 480px; /* Narrower width */
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

#showname-form button {
    padding: 0.75rem 1rem;
    background: #006600;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

#showname-form button:hover {
    background: #005500;
}

.current-show-name {
    padding: 1rem;
    background: #006600;
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: -10px;
}

.current-show-name.none {
    background: darkred;
    color: #fff;
}

/* Top Bar Styles */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #121212;
    color: #e0e0e0;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#title {
    font-size: 1.5rem;
    font-weight: bold;
}

#vote-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    font-size: 1.2rem;
}

#vote-stats {
    flex: 1;
}

/* Button Styles */
.admin-btn, .admin-btn-dark {
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.admin-btn {
    background-color: #006600;
    color: #efefef;
}

.admin-btn-dark {
    background-color: #777;
    color: #fff;
}

.admin-btn:hover {
    background-color: #007b3d;
    color: #fff;
}

/* Content Containers */
.blurb-container {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    color: black;
}

.blurb-container h2 {
    color: #00ffc3;
}

.blurb-container p {
    color: #000;
    font-size: 1.25rem;
}

.blurb-container span.green {
    color: #66ff66;
    font-weight: bold;
}

/* Table Styles */

/* Standardize table row heights */
#masterTable tr,
#set1 tr,
#set2 tr,
#set3 tr,
#overflow tr {
    height: 40px; /* Adjust this value as needed */
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

tr.clickable:hover {
    background-color: #2a2a2a;
    cursor: pointer;
}

tr:hover td, tr.selected td {
    background-color: cadetblue !important;
    color: #fff;
}

tr.selected td {
    color: #000 !important;
    font-weight: bold;
}

/* Table Sorting */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: #0056b3;
}

.sort-icon {
    font-size: 0.8em;
    margin-left: 5px;
}

.sort-asc .sort-icon::after {
    content: "↑";
}

.sort-desc .sort-icon::after {
    content: "↓";
}


/* Vote Counter and Timer */
#totalVotes {
    text-align: center;
    font-size: 1.5rem;
    padding: 10px 0;
    color: #00ffc3;
}

#countdown {
    font-size: 1rem;
    color: #ff0000;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
    background-color: #f8d7da;
    padding: 5px;
    border-radius: 8px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.vote-rules {
    text-align: center;
}

.disclaimer {
    font-size: .8rem;
    color: #777;
    font-style: italic;
    //margin-bottom: 30px;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    clear: both; /* Ensures it clears any floated elements */
    display: block; /* Makes it a block-level element */
    position: relative; /* Allows for absolute positioning of pseudo-elements if needed */
    overflow: hidden; /* Prevents margin collapse */
}

.vote-indicators {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    min-height: 24px; /* This ensures consistent height even when empty */
    align-items: center; /* Centers the indicators vertically */
}

.voted-check {
    color: #00ffc3;
    font-weight: bold;
}

.voted-check-others {
    color: gold;
    font-weight: bold;
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Content Container */
.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 15vh auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s ease-out;
}

/* Close Button */
.close-button {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #000;
}

/* Form Styles */
#loginForm {
    margin-top: 1rem;
}

#loginForm h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Input Fields */
.input-group {
    margin-bottom: 1.5rem;
}

#loginForm input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#loginForm input:focus {
    outline: none;
    border-color: #006600;
    box-shadow: 0 0 0 3px rgba(0, 102, 0, 0.1);
}

/* Terms Text */
.terms-text {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.terms-text a {
    color: #006600;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-text a:hover {
    color: #004d00;
}

/* Submit Button */
#loginForm button {
    width: 100%;
    padding: 12px;
    background-color: #006600;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#loginForm button:hover {
    background-color: #005500;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 0, 0.2);
}

#loginForm button:active {
    transform: translateY(0);
}

/* Error Message */
#loginMessage {
    margin-top: 1rem;
    text-align: center;
    color: #dc3545;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

    .main-title {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10vh auto;
        padding: 1.5rem;
        width: 90%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Media Queries */
@media (max-width: 768px) {
    body {
        margin-left: 10px;
        margin-right: 10px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .band-logo {
        flex: 0 0 auto;
        width: 250px;
        margin: 0 auto;
    }

    .band-logo img {
        width: 100%;
        max-width: 250px;
    }

    .voting-info {
        width: 100%;
        min-width: 0;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .band-logo {
        width: 300px;
    }

    .band-logo img {
        max-width: 300px;
    }

    .container {
        padding: 0 0.5rem;
    }
}
