:root {
    --black-1: hsl(228, 14%, 10%);
    --black-2: hsl(228, 14%, 14%);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    display: none;
}


body {
    margin: 0;
    background-color: #070709;
    background-image: url(media/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center bottom;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 65px;
    background-color: var(--black-1);
    border-bottom: 2px solid var(--black-2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.35);
    z-index: 1;
}

nav .items {
    position: relative;
    display: flex;
    width: 560px;
}

nav button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.55em;
    width: 100%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition-duration: 180ms;
    color: rgba(255,255,255,0.6);
    font-family: 'Inter', sans-serif;
    font-size: 1.04em;
    font-weight: 470;
}

nav button:hover {
    background-color: var(--black-2);
}

nav button.active {
    color: white;
}

nav button span {
    pointer-events: none;
}

nav button img {
    display: none;
    height: 1.75em;
    pointer-events: none;
    opacity: 0.3;
    transition-duration: 180ms;
}

nav button.active img {
    opacity: 1;
}

nav .slider {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0 7%;
    width: calc(100% / 3 - 14%);
    height: 3px;
    background-color: white;
    border-radius: 1em;
    transition-duration: 200ms;
    pointer-events: none;
}


main .content {
    margin-top: 65px;
    display: none;
    justify-content: center;
    padding: 25px;
}

main .content.active {
    display: flex;
}


.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9em;
    width: 90%;
    max-width: 1200px;
}

.links a {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 200px;
    padding: 0 0.9em 0.9em 0.9em;
    background-color: var(--black-1);
    border: 2px solid var(--black-2);
    border-radius: 0.8em;
    transition-duration: 180ms;
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 460;
    text-decoration: none;
}

.links a:hover {
    background-color: var(--black-2);
}

.links a img {
    margin: auto 0;
    width: 3.8em;
    max-height: 3.8em;
    border-radius: 0.4em;
}

.links a span.link-label {
    padding: 0.6em 0.8em;
    background-color: rgba(255,255,255,0.06);
    border-radius: 0.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

span.ripple {
    position: absolute;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
}
  
@keyframes ripple {
    to {
      transform: scale(5);
      opacity: 0;
    }
}


.calendar {
    max-width: 1200px;
    border: 2px solid var(--black-2);
    border-radius: 0.6em;
    overflow: hidden;
    transition-duration: 200ms;
}

.calendar img {
    display: block;
    width: 100%;
}


.schedules {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2em;
    width: 90%;
    max-width: 1200px;
}

.schedules table {
    border-spacing: 0;
    width: 520px;
    padding: 0.6em;
    background-color: var(--black-1);
    border: 2px solid var(--black-2);
    border-radius: 0.6em;
}

.schedules table th, .schedules table td {
    padding: 0.85em;
    font-family: 'Inter', sans-serif;
}

.schedules table th {
    background-color: rgba(255,255,255,0.06);
    border-radius: 0.3em;
    color: white;
    font-size: 1.18em;
    font-weight: 480;
    text-align: left;
}

.schedules table td {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    font-size: 1em;
    font-weight: 460;
}

.schedules table td:first-of-type {
    width: 40%;
}
  
.schedules table tr:last-of-type td {
    border-bottom: none;
}


@media (width <= 480px) {
    body {
        background-image: url(media/background_mobile.jpg);
        font-size: 12px;
    }

    nav {
        top: auto;
        bottom: 0;
        border-bottom: none;
        border-top: 2px solid var(--black-2);
        box-shadow: 0 -4px 8px rgba(0,0,0,0.35);
    }

    nav button:hover {
        background-color: transparent;
    }

    nav button:active {
        background-color: var(--black-2);
    }

    nav button {
        font-size: 0.93em;
    }

    nav button img {
        display: block;
    }

    nav .slider {
        display: none;
    }

    main .content {
        margin-top: 0;
        margin-bottom: 65px;
        padding: 15px;
    }

    .links {
        width: 100%;
    }

    .links a {
        width: calc(50% - 0.41em);
        height: 130px;
        padding: 0 0.7em 0.7em 0.7em;
    }

    .calendar.show {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 100dvw;
        border-radius: 0;
        overflow: scroll;
        z-index: 2;
    }
    
    .calendar.show img {
        min-width: 860px;
    }

    .schedules {
        width: 100%;
    }

    .schedules table {
        width: 100%;
    }
}