/* General Body and Container */
body {
    font-family: 'TipoBrasilSans', sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    background-color: #EEDBB7;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-grow: 1;
}

/* Headers */
h1, h2, h3 {
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    border-bottom: 4px solid #EC9E2B;
    padding-bottom: 10px;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
nav {
    background-color: #5E4D3E;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: #EC9E2B;
    color: #fff;
}

/* Festival Header */
.festival-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    justify-content: center;
}
.festival-header .festival-logo img {
    max-height: 70px;
    width: auto;
    display: block;
}
.festival-header .festival-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'TipoBrasilSans', sans-serif;
    font-size: 2em;
    color: #000000;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}
.festival-header .festival-title .title {
    font-weight: 400;
}
.festival-header .festival-title .subtitle {
    font-weight: 700;
}
@media (max-width: 454px) {
    .festival-header .festival-logo img {
        max-height: 100%;
    }
}

/* Voting Form/Section */
#voting-section {
    margin-top: 30px;
}

.music-card {
    display: flex;
    flex-direction: column;
    background-color: #F0EFEF;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.music-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.music-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #000000;
    text-align: left;
}

.music-info p {
    margin: 3px 0;
    color: #555;
    font-size: 0.95em;
}

.music-info p strong {
    color: #34495e;
}

.audio-player {
    width: 100%;
    margin-top: 10px;
    outline: none;
}


.vote-button {
    background-color: #6ABF69;
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    align-self: flex-end; /* Pushes button to the right/bottom */
}

.vote-button:hover {
    background-color: #5E4D3E;
}

.vote-button:disabled {
    background-color: #5E4D3E;
    cursor: not-allowed;
}

/* Alerts and Messages */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 90vw;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    margin: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Results Section */
#results-section {
    margin-top: 30px;
}

.results-list {
    list-style: none;
    padding: 0;
}

.result-item {
    background-color: #F0EFEF;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.result-item h3 {
    margin-top: 0;
    color: #000000;
    text-align: left;
}

.result-item p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #555;
}

.progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 3px;
    height: 20px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #EC9E2B;
    width: 0%;
    text-align: right;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.5s ease-out;
    padding-right: 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.no-results {
    text-align: center;
    color: #777;
    padding: 30px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: #fefefe;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 0.9em;
    background-color: #5E4D3E;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }

    nav a {
        padding: 8px 15px;
        margin: 0 5px;
        font-size: 0.9em;
    }

    .music-card, .result-item {
        padding: 10px;
    }

    .vote-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    nav a {
        display: block;
        margin: 5px auto;
    }
}
