* {
    margin: 0;
    padding: 0;
}

:root {
    --dark: rgb(53, 106, 204);
    --dark-transparent: rgba(53, 106, 204, 0.2);
    --text:  rgb(54, 69, 79);
    --light: rgb(228, 232, 240);
    
}

@font-face {
    font-family: 'Mayorice';
    src: url('font/Mayorice.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
    height: -webkit-fill-available;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* width: -webkit-fill-available; */
    height: fit-content;
    /* height: -webkit-fill-available; */
}

.content-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;   
    width: 100%;
}

.content-block {
    min-height: 100vh;
    max-width: 1000px;
    width: 100%;
    padding: 1rem;
}

.hero {
    width: 100%;
    /* height: calc(100vh - 4rem); */
    height: 100svh;
    background: url("img/bg.jpg");
    background-size:cover;
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
    filter: saturate(1.2);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroAnim 20s ease-in-out infinite;
    cursor: pointer;
}

@keyframes heroAnim {
    50% {background-position-x: 20%;}
}

.hero p {
    color: #ffffff;
    text-shadow: 0 0 10px #ffb340;
    text-align: center;
    font-size: 7vw;
    font-family: 'Mayorice';
    position: absolute;
    top: 20vh;
    rotate: -2deg;
}

.hero p::before {
    content: "";
    filter: blur(0.55em);
    /* background-color: red; */
    border-radius: 20%;
    background-color: #57aae5ff;
    position: absolute;
    left: -5%;
    top: -10%;
    width: 110%;
    height: 120%;
    z-index: -1;
}

.hero a {
    position: absolute;
    left: calc(50vw - (141px / 2));
    bottom: max(10rem, 30vh);
    animation: arrowAnim 2s ease-in-out infinite;
}

@keyframes arrowAnim {
    50% {bottom: calc(max(10rem, 30vh) - 2rem)};
}

.hero a img {
    size: 10px 10px;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 1));
}

h2 {
    font-family: 'Mayorice';
    font-size: 5rem;
    position: relative;
    margin-block: 3rem;
    color: var(--text);
    text-shadow: 2px 5px 5px rgba(0, 0, 0, 0.35);
    text-wrap: nowrap;
}

h2::before {
    content: "";
    width: 50px;
    height: 2px;
    position: absolute;
    top: 50%;
    right: 110%;
    background-color: var(--text);
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.35);
}

h2::after {
    content: "";
    width: 50px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 110%;
    background-color: var(--text);
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.35);
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vita {
    display: flex;
    justify-content: center;
    align-items: top;
    text-wrap: wrap;
}

.vita-text {
    width: 500px;
    font-size: 1.2rem;
    color: var(--text);
    text-align: justify;
}

.vita-text::first-letter {
    margin-top: 0.5rem;
    font-size: 5rem;
    float: left;
    padding-right: 1rem;
}

.vita-text ul {
    padding-left: 2rem;
    list-style:circle;
}

.vita-text a {
    color: inherit;
}

.vita img {
    margin-left: 3.5rem;
    width: 450px;
    height: 450px;
    border-radius: 100%;
    box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.2);
}

.youtube {
    display: flex;
    width: 100%;
    margin-top: 2rem;
}

.video {
    
    cursor: pointer;
    position: relative;
    margin: 2rem;
    padding: 0;
    filter: drop-shadow(-10px 15px 15px rgba(0,0,0,0.5));
    aspect-ratio: 16/9;

    .thumbnail {
        width: 100%;
        border-radius: 6px;
    }

    .yt-logo {
        position: absolute;
        width: 64px;
        top: calc(50% - 32px);
        left: calc(50% - 32px);
        transition: 200ms ease-in-out;
        filter: drop-shadow(5px 5px 5px #222);
    }
}

.spotify a {
    margin-top: 2rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    background: var(--text);
    text-decoration: none;
    padding: 2rem 3rem;
    border-radius: 8px;
    color: white;
    justify-content: center;
    align-items: center;
    box-shadow: 10px 15px 15px rgba(0,0,0,0.35);
    
    .spotify-text {
        margin-right: 2rem;

        p {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: .2rem;
            text-shadow: 20px 20px 100px white,
            2px 2px 2px black;
            transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
        }

        #podcast-name {
            font-family: 'Mayorice';
            font-size: 2.5rem;
        }
    }

    img {
        rotate: 0deg;
        transition: 1s;
        filter: drop-shadow(2px 2px 1px black);
    }
}

.spotify:hover a {
    /* transition: 1s cubic-bezier(0.19, 1, 0.22, 1); */

    p {
        text-shadow: 15px 5px 20px rgba(255, 255, 255, 0.5),
        2px 2px 2px black;
        transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
    }

    img {
        rotate: 15deg;
        scale: 1.1;
    }
}

.video:hover {
    .yt-logo {
        scale: 1.35;
        transition: 200ms ease-in-out;
    }
}

.books-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book {
    display: flex;
    justify-content: space-evenly;
    color: var(--text);
    height: 700px;
    padding: 0 0 8rem 0;
}

.book img {
    box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.2);
    margin: 0 2rem;
    border-radius: 4px;
}

.book-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 40%;
    padding: 2rem;
}

.book-description h3 {
    text-align: center;
    font-family: 'Mayorice';
    font-size: 35px;
    margin-bottom: 1rem;
}

.book-description h4 {
    text-align: center;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 20px;
    font-weight: 900;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.book-description p {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1.2rem;
    text-align: justify;
    margin-bottom: 2rem;
}

.book-description a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--dark);
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
    padding: .5rem 1rem;
    background-color: var(--dark);
    color: white;
    text-decoration: none;
}

.book-description a:hover {
    border: 2px solid var(--dark);
    background-color: white;
    color: var(--dark);
    text-decoration: none;
}

.events-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
}

.table-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

#event-table {
    width: 100%;
    min-width: auto;
    max-width: 100%;
}

.event-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1.5em;
    width: 100%;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    align-self: center;
}

.event-table thead tr {
    background-color: var(--dark);
    color: white;
    text-align: center;
    font-weight: 900;
}

.event-table tbody tr {
    border-bottom: 1px solid #dddddd;
    text-align: center;
    color: var(--text);
}

.event-table tbody tr a {
    color: var(--text);
}

.event-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.event-table tbody tr:last-of-type {
    border-bottom: 4px solid var(--dark);
}

.event-table tbody tr:hover {
    background-color: var(--dark-transparent);
}

.event-table th,
.event-table td {
    padding: 12px 15px
}

.to-event-button {
    cursor: pointer;
    border: 1px solid var(--dark);
    border-radius: 4px;
    padding: .4rem .7em;
    margin-bottom: 6px;
    background-color: var(--dark);
    color: white;
    transition: ease-in 0.1s;
    font-weight: 600;
}

.to-event-button:hover {
    background-color: white;
    color: var(--dark);
    transition: ease-in 0.1s;
}

.hidden {
    display: none;
}

.deactive-button, .deactive-button:hover {
    cursor: not-allowed;
    background-color: rgb(194, 194, 194);
    border-color: rgb(167, 167, 167);
    color: rgb(129, 129, 129);
}

@media (max-width: 1200px) {

    h2 {
        font-size: 4rem;
    }

    .vita {
        align-items: center;
        flex-direction: column;
        margin-inline: 1rem;
        width: 80vw;
        overflow-x: visible;

        img {
            margin-top: 3rem;
            margin-inline: 0;
        }

        .vita-text {
            width: 100%;
        }
    }

    .youtube {
        width: 80vw;
    }

    #event-table {
        min-width: 700px;
    }

    .book {
        height:fit-content;
        align-items: center;

        img {
            height: 50vw;
            aspect-ratio: 0.65/1;
        }
    }

    #event-table {
        font-size: 1.2rem;
        max-width: 90%;
        /* overflow-x: auto; */
        /* min-width: 700px; */
    } 
}

@media (max-width: 800px) {

    h2 {
        font-size: 3rem;
    }

    .hero {
        height: 256px;

        p {
            text-align: center;
            font-size: 5.5vw;
            font-family: 'Mayorice';
            position: absolute;
            top: max(60px, 6vw);
        }
        
        a {
            display: none;
        }
    }

    .vita {
        img {
            max-width: 80%;
            height: auto;
        }
    }

    .youtube {
        flex-direction: column;
    }

    .books-container {
        width: 100%;
    }

    .book {
        width: 100%;
        max-width: 80vw;
        flex-direction: column;
        align-items: center;

        img {
            height: 70vw;
            height: -webkit-fill-available;
            margin-bottom: 5rem;
            aspect-ratio: 0.65/1;
        }

        .book-description {
            width: 90%;
            margin-bottom: 5rem;
            padding: 0;
        }
    }

    #book1 {
        flex-direction: column-reverse;
    }

    #event-table {
        font-size: 1rem;
        max-width: 90vw;
        min-width: 90vw;
        img {
            scale: 0.7;
        }
    } 
}