html {
    font-family: 'Fredoka', sans-serif;
    overflow-x: hidden;
}

body {

    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

nav {
    position: fixed;
    top: 0;
    right: 0;
    /*width: 100%;*/
    padding: 10px;
    text-align: right;
    z-index: 99;
}

nav ul {
    background-color: #333;
    background-origin: padding-box;
    border-radius: 30px;
    list-style-type: none;
    margin: 10px;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 15px;
    margin-right: 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #555;
}

section {
    padding: 60px 20px;
    text-align: center;
}

section h1 {
    font-size: 100px;
    line-height: 0%;
}

.section-white {
    background-color: white;
}

.section-grey {
    background-color: #f0f0f0;
}

.logo {
    position: relative;
    top: 10px;
    left: 10px;
    width: 50%;
}

.background {
    text-align: center;
    background-image: url('images/background/dimmed-image-placeholder.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    max-height: 100vh;
    padding: 100px 0;
    margin: 0;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.content h1{
    font-size: 150px;
    line-height: 0%;
}

.about{
    display: inline-block;
    width: 80%;
    margin: 0 10% 0 10%;
    text-align: justify;
}

.description {
    max-width: 50%;
    padding: 10px;
    float: left;
}

.description h1{
    line-height: 0%;
    font-size: 50px;
}

.description h2{
    line-height: 0%;
    font-size: 35px;
}

.description h3{
    max-width: fit-content;
    padding: 15px;
    border-radius: 30px;
    color: #f0f0f0;
    background-color: #333;
}

.about img{
    max-width: 40%;
}

button {
    font-family: inherit;
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 30px;
    background-color: #333;
    color: white;
    border: none;
    text-align: center;
}

button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.panel {
    display: inline-block;
    max-width: 30%;
    max-height: 50px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.panel:hover {
    transform: scale(1.05);
}

.panel img {
    width: 100%;
    border-radius: 10px;
}

.panel p {
    font-size: 25px;
}

/* .media iframe {
    width: 100%;
    height: calc(100% * 9 / 16); 
} */

.large-video iframe {
    width: 75%; /* 3/4 of the size */
    height: 50vw; /* Maintain 16:9 aspect ratio */
    max-height: 100vh;
    margin: 0 auto;
    display: block;
}

.video-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.video-panel {
    max-width: 30%;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.portfolio-button{
    font-size: 25px;
}

button svg{
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.discord-panel {
    display: inline-block;
    max-width: 30%;
    max-height: 50px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.discord-panel:hover {
    transform: scale(1.05);
}

.discord-panel img {
    width: 50%;
    border-radius: 10px;
}


.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap to the next line if needed */
}

.social-media button {
    flex: 1 1 auto; /* Allow buttons to grow and shrink as needed */
    margin: 10px;
}

@media (max-width: 1080px) {
    nav {
        right: auto;
        left: calc(50vw - 765px / 2);
        max-width: 766px;
    }

    nav ul {
        text-align: center;
        justify-content: center;
    }

    nav ul li {
        display: inline-block;
    }
}

@media (max-width: 768px){
    nav {
        visibility: hidden;
    }

    .about {
        display: grid;;
        justify-items: center;
        position: relative;
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
    }

    .description {
        max-width: 80%;
        text-align: justify;
        float: none;
    }

    .about img {
        float: none;
        max-width: 80%;
    }

    section h1 {
        font-size: 50px;
    }

    .panel {
        max-width: 80%;
    }

    .panel p, br {
        font-size: 25px;
    }

    #portfolio .video-panel {
        visibility: hidden;
        position: absolute;
    }

    .video-container {
        display: grid;
        justify-items: center;
    }

    .video-panel {
        max-width: 100%;
    }

    .social-media{
        display: grid;  
        justify-items: stretch;
    }
}