:root {
    --color-dark: #333;
    --color-light: #f0f0f0;
    --color-border: #ccc;
    --color-table-header: #eee;
    --color-event-border: #999;
    --color-white: #fff;
    --color-dark-border: #444;
    --primary-color: #9349f6;
    --text-color: #000;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

main {
    margin-top: 80px;
}

h1 {
    font-size: 2.0rem;
    color: var(--primary-color);
    text-shadow: 0.1875rem 0.1875rem 0.1875rem #000;
    font-weight: bolder;
    text-align: center;
}

h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 0.1875rem 0.1875rem 0.1875rem #000;
    font-weight: bolder;
    text-align: center;
}

h3{
    font-size: 1.5rem;
    color: #FF69B4;
    text-shadow: 0.1875rem 0.1875rem 0.1875rem #000;
    font-weight: bold;
    text-align: center;
}

p{
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0.1875rem 0.1875rem 0.1875rem #000;
    font-weight: bold;
    text-align: center;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("../img/background_blurred.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

section {
    text-align: center;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: none;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    background: var(--primary-color);
    padding: 1.0rem;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}
.navbar a,
.navbar a:visited,
.navbar a:hover {
    color: var(--text-color);
    text-decoration: none;
}
.menu-toggle {
    display: none;
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    font-size: 1.5rem;
    padding: 1rem;
    width: 100%;
    text-align: left;
    background-color: var(--primary-color);
}
main {
    padding: 1rem;
}
footer {
    text-align: center;
    padding: 1rem;
    background: var(--color-light);
    margin-top: 2rem;
}
.twitch-player{
    width: 40rem;
    height: 22.5rem;
    max-width: 100%;
}
.schedule-wrapper {
    overflow-x: auto;
    display: flex;
    justify-content: center;
}
.table-schedule {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 1.0rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}
.table-schedule th,
.table-schedule td {
    border: 1px solid var(--color-event-border);
    padding: 0.5rem;
    vertical-align: top;
    width: 14.285%;
    min-width: 100px;
}
.table-schedule th {
    background: var(--primary-color);
    text-align: center;
}

.event.filmes {
    border: 1px solid var(--color-event-border);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 20rem;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--primary-color);
}

.reviews-search {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-event-border);
    border-radius: 8px;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    width: 100%;
    cursor: pointer;
}

.review-item img {
    width: 100px;
    height: auto;
    margin-right: 0.5rem;
    border-radius: 8px;
}

.review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-item h3 {
    margin: 0;
    display: flex;
    align-items: center;
}

.review-item .heart {
    margin-left: 0.5rem;
}

.review-item .rating {
    margin-top: 0.25rem;
}

.review-item .sponsor {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.review-item .date {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.rating .star {
    font-size: 1.2rem;
    color: #ccc;
}

.rating .star.full {
    color: #ffc107;
}

.rating .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heart {
    color: red;
}

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

#review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    z-index: 1001;
    height: 80%;
    width: 20%;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#review-modal .close {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#review-modal .modal-title {
    white-space: pre-line;
    height: 4%;
}

#review-modal .modal-image {
    max-width: 100%;
    height: 50%;
    margin: 0.5rem 0;
}

#review-modal .modal-rating {
    white-space: pre-line;
    height: 3%;
}

#review-modal .modal-rating .star {
    font-size: 1.2rem;
    color: #ccc;
}

#review-modal .modal-rating .star.full {
    color: #ffc107;
}

#review-modal .modal-rating .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#review-modal .modal-sponsor {
    white-space: pre-line;
    height: 3%;
}

#review-modal .modal-date {
    white-space: pre-line;
    height: 3%;
}

#review-modal .modal-review {
    color: #FF69B4;
    white-space: pre-line;
    height: 37%;
}

.hidden {
    display: none;
}
.event.filmes .time {
    margin-bottom: 0.25rem;
    font-size: 1.0rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}
.event.filmes .title {
    margin-bottom: 0.25rem;
    font-size: 1.0rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}
.event.filmes img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 15rem;
    margin-top: 0.25rem;
}
.event.filmes,
.event.filmes:link,
.event.filmes:visited
.event.filmes:hover,
.event.filmes:active {
    color: inherit;
    text-decoration: none;
}

.event.outros-eventos {
    border: 1px solid var(--color-event-border);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 10rem;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--primary-color);
}
.event.outros-eventos .time {
    margin-bottom: 0.25rem;
    font-size: 1.0rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}
.event.outros-eventos .title {
    margin-bottom: 0.25rem;
    font-size: 1.0rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}
.event.outros-eventos img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 6rem;
    margin-top: 0.25rem;
}
.event.outros-eventos,
.event.outros-eventos:link,
.event.outros-eventos:visited
.event.outros-eventos:hover,
.event.outros-eventos:active {
    color: inherit;
    text-decoration: none;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.5rem;
}
.social-links li {
    width: 100%;
}
.social-links a {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-event-border);
    border-radius: 8px;
    padding: 0.5rem;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-color)
}
.social-links img {
    height: 100%;
    width: 4rem;
    margin-right: 0.5rem;
}
.social-links span {
    flex: 1;
    text-align: center;
    font-weight: bolder
}
.controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}
.controls button{
    background-color: var(--primary-color);
}
.controls span {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0.1875rem 0.1875rem 0.1875rem #000;
    font-weight: bold;
}
.week-range {
    flex: 1;
    text-align: center;
}
.admin {
    font-size: 1.0rem;
    color: #FF69B4;
    text-shadow: 0.1875rem 0.1875rem 0.1875rem #000;
    font-weight: bold;
    text-align: center;
}
@media (max-width: 600px) {
    .navbar {
        display: none;
        flex-direction: column;
        background-color: var(--primary-color);
    }
    .navbar a {
        padding: 1rem;
        border-top: 1px solid var(--color-dark-border);
        background-color: var(--primary-color);
    }
    .navbar.open {
        display: flex;
        background-color: var(--primary-color);
    }
    .menu-toggle {
        display: block;
    }
    .controls {
        flex-direction: column;
    }
    .table-schedule th{
        min-width: 150rem;
    }
    .table-schedule td{
        min-width: 150rem;
    }
}
