
:root {
    --color-yellow: 251 231 20;  /* #fbe714 */
    --color-green: 29 130 18;    /* #1d8212 */

    --color-grey: 102 102 102;   /* #666666 */
    --color-dark-grey: 51 51 51; /* #333333 */

    --color-shadow: 0 0 0 / 50%;
}

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

body {
    height: 100%;
    word-break: break-word;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #fafafa;
}

body > figure {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('./tapete.jpg');
    background-size: cover;
    background-position: center;
}

h1, h2 {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin: 0 0 10px 0;
}

h3 {
    font-size: 28px;
}

h4 {
    font-weight: bold;
    color: rgb(var(--color-yellow));
}

img {
    max-width: 100%;
}

table {
    margin: 16px 0;
    width: 100%;
}

table th { text-align: left; }
table td { vertical-align: top; }
table p  { margin: 0; }

p {
    margin: 16px 0;
}

ul, ol {
    margin: 16px 0;
    padding-left: 32px;
}

li > p {
    margin: 0;
}

a {
    text-decoration: none;
    color: rgb(var(--color-yellow));
}

a:hover {
    text-decoration: underline;
}

.button {
    max-width: 450px;
    margin: 4px 10px 0 0;
    padding: 13px 15px;
    font-weight: bold;
    text-decoration: none;
    color: rgb(var(--color-yellow));
    border: 2px solid rgb(var(--color-yellow));
    border-radius: 2px;
    display: block;
    cursor: pointer;
}

.button.center {
    margin: 4px auto;
    text-align: center;
}

.button:hover {
    text-decoration: underline;
    background-color: rgb(var(--color-dark-grey));
    color: white;
}

.hidden {
    display: none;
}

button > hr {
    margin: 4px 0;
    border: solid 1px;
    color: transparent;
    background: transparent;
    transition: 250ms ease-in-out;
}

button.close hr:nth-child(1) { transform: rotate(+45deg) translateY(+2px) translateX(2px); }
button.close hr:nth-child(2) { display: none; }
button.close hr:nth-child(3) { transform: rotate(-45deg) translateY(-2px) translateX(2px); }

/* layout */

body > section {
    position: relative;
    width: 35%;
    min-height: 100vh;
    padding: 60px 50px;
    background-color: rgb(0 0 0 / 30%);
    float: left;
}

body > main {
    position: relative;
    width: 65%;
    padding: 60px 50px;
    background-color: rgb(0 0 0 / 60%);
    float: right;
}

body > footer {
    position: absolute;
    width: 35%;
    margin-top: 92px;
    padding: 60px 50px;
    z-index: 1;
}

@media (max-width: 960px) {
    body > section {
        width: 100%;
        padding: 30px 20px;
        min-height: auto;
    }

    body > main {
        width: 100%;
        padding: 30px 20px;
    }

    body > footer {
        position: relative;
        width: 100%; clear: both;
        padding: 30px 20px;
        background-color: rgb(0 0 0 / 30%);
    }

    .news .spotlight-group {
        width: 100% !important;
    }
}

/* alert */

@keyframes slidedown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(   0%); }
}

body > em.close { visibility: hidden; opacity: 0; }
body > em {
    position: fixed;
    padding: 12px;
    top: 0; left: 0;
    width: 100vw;
    font-style: normal;
    text-align: center;
    color: #fff;
    background-color: rgb(var(--color-green) / 85%);
    box-shadow: 0 1px 5px rgb(var(--color-shadow));
    transition: 250ms ease-in-out;
    visibility: visible; opacity: 1;
    animation: slidedown 250ms ease-in;
    display: flex;
    z-index: 4;
}

body > em > span {
    width: 100%;
    align-self: center;
    flex-shrink: 1;
}

body > em > button > hr { border-color: white; }
body > em > button {
    width: 22px;
    height: 22px;
    padding: 2px;
    margin-left: 8px;
    border: 1px solid white;
    background-color: transparent;
    flex-shrink: 0;
    cursor: pointer;
    order: 2;
}

/* sidebar */

body > section > button > hr { border-color: rgb(var(--color-yellow)); }
body > section > button {
    position: relative;
    width: 36px;
    height: 32px;
    padding: 4px 6px;
    margin-left: auto;
    border: 1px solid rgb(var(--color-yellow));
    background-color: rgb(var(--color-yellow) / 15%);
    cursor: pointer;
    display: block;
    z-index: 3;
}

body > section > nav {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    max-height: 600px;
    padding: 116px 50px 20px 50px;
    background-color: rgb(0 0 0 / 60%);
    box-shadow: 0 1px 5px rgb(var(--color-shadow));
    transition: 400ms ease-in-out;
    overflow: hidden;
    z-index: 2;
}

body > section > nav.close {
    max-height: 0;
    padding: 0 50px 0 50px;
}

body > section > nav ul {
    padding: 0;
}

body > section > nav ul ul {
    margin: 0 0 0 20px;
}

body > section > nav li {
    position: relative;
    list-style: none;
}

body > section > nav a {
    position: relative;
    margin-left: 20px;
    padding: 10px 8px 10px 0;
    display: block;
}

body > section > nav li.active > a {
    font-weight: bold;
    text-decoration: underline;
    color: white;
}

body > section > nav button {
    position: absolute;
    top: 14px; left: 0;
    height: 10px; width: 10px;
    border: solid rgb(var(--color-yellow));
    border-width: 2px 2px 0 0;
    background: transparent;
    transition: 250ms ease-in-out;
    transform: rotate(45deg);
    cursor: pointer;
    display: block;
}

body > section > nav li.active > button {
    border-color: white;
}

body > section > nav button.close {
    transform: rotate(135deg);
}

body > section > nav ul.close {
    display: none;
}

/* content */

body > main > *   { max-width: 1020px; overflow: hidden; }

body > main > header { margin-bottom: 60px; }
body > main > header > nav { margin-bottom: 60px; }

body > main > header > nav ul,
body > main > header > nav li {
    list-style: none;
    display: inline;
}

body > main > header > nav li + li::before {
    content: '/ ';
    color: rgb(var(--color-grey));
}

body > main > header > nav li:last-child a {
    pointer-events: none;
    color: white;
}

body > main > header > figure {
    justify-content: end;
    display: flex;
}

body > main > header > figure > img {
    margin-left: 15px;
    align-self: flex-start;
    order: 2;
}

body > main > header > figure > figcaption {
    margin: auto 0;
    text-align: right;
    order: 1;
}

body > main > header > figure > figcaption > b {
    display: block;
}

body > main > header > figure > figcaption > em {
    display: block;
    margin-top: 20px;
    font-style: normal;
    color: rgb(var(--color-yellow));
}

/* gallery */

.spotlight-group {
    margin: 24px 0;
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
}

@media (max-width: 960px) {
    .spotlight-group { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 660px) {
    .spotlight-group { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .spotlight-group { grid-template-columns: 1fr; }
}

.spotlight {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
}

.spotlight > img {
    position: absolute;
    top: 50%; left: 50%;
    max-width: unset;
    height: clamp(250px, 100%, 300px);
    transform: translateX(-50%) translateY(-50%);
    border-radius: 4px;
}

/* news */

.news {
    margin: 20px 0 60px;
    padding-left: 10px;
    border: solid transparent;
    border-width: 0 0 0 2px;
}

.news.highlight {
    border-color: rgb(var(--color-yellow));
}

.news .spotlight-group {
    gap: 0;
    width: 250px;
    padding: 20px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    float: right;
}

.news > hr {
    clear: both;
    visibility: hidden;
}

/* schedule */

.schedule {
    gap: 40px;
    padding-left: 0;
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    list-style: none;
}

@media (max-width: 660px) {
    .schedule {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
    }
}

.schedule h2,
.schedule p {
    text-align: center;
    font-weight: bold;
}

.schedule a {
    font-weight: normal;
}

/* pageable */

.pageable {
    margin-top: 60px;
    text-align: center;
}

.pageable a {
    font-size: 0;
    padding: 18px;
    border: solid 1px rgb(var(--color-yellow));
    display: inline-block;
}

.pageable a[href=''] {
    pointer-events: none;
    opacity: 0.4;
}

.pageable a::before {
    content: ' ';
    height: 10px; width: 10px;
    border: solid rgb(var(--color-yellow));
    border-width: 2px 2px 0 0;
    display: inline-block;
}

.pageable a:first-child { margin-right: 32px; }
.pageable a:first-child::before { transform: translateX(2px) rotate(225deg); }

.pageable a:last-child { margin-left: 32px; }
.pageable a:last-child::before { transform: translateX(-2px) rotate(45deg); }

/* upload */
input[type=file]:invalid ~ label[for=select] { display: block; }
input[type=file]:valid   ~ label[for=submit] { display: block; }

/* footer */

body > footer ul {
    padding: 0;
}

body > footer li {
    margin: 2px 0;
    list-style: none;
}

body > footer p,
body > footer li {
    font-weight: bold;
}

body > footer a {
    font-weight: normal;
}