body {
    background-color: #171d2a;
    color: #ffffff;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    align-content: center;
    background-image: url("../images/background.png");
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
}

header {
    background-color: #26424e;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login_button {
    padding: 0.5em;
    margin: 0.5em;
    border: none;
    background-color: #da1d6e;
    color: white;
    font-size: 1.5em;
}

.logo-left, .logo-right {
    height: 40px;
    margin: 0 auto;
}

.logo-left:hover, .logo-right:hover {
    cursor: pointer;
}

.logo {
    height: 200px;
    margin: 50px;
}

main {
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    flex-flow: column nowrap;
    min-height: calc(100vh - 120px);
    width: 70vw;
    max-width: 1200px;
}

.category {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.hexOut {
    width: 150px;
    height: 120px;
    transform: skew(30deg);
    padding: 0px;
    overflow: hidden;
    margin: 0 auto;
    font-size: 10px;
}

.hexIn {
    margin: 0px;
    width: 150px;
    height: 120px;
    transform: skew(-30deg);
    overflow: hidden;
}

.hexContent {
    margin: 0px;
    width: 150px;
    height: 120px;
    transform: skew(-30deg);
    overflow: hidden;
}

@property --gradientMidColor {
    syntax: '<color>';
    initial-value: #da1d6e;
    inherits: false;
}
.category-link {
    transform: skew(30deg);
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    background-color: #da1d6e;
    background-image: linear-gradient(#f9aa3a,var(--gradientMidColor), #953661);
    transition: --gradientMidColor 0.5s;
    color: #ffffff;
    cursor: pointer;
}

.category-link:hover {
    --gradientMidColor: #f9aa3a;
    /*background-image: linear-gradient(#f9aa3a,#f9aa3a, #953661);*/
    transform: skew(30deg);
}

.category-link * {
    height: fit-content;
    margin: auto 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: min(5vw, 30px);
    width: calc(70vw - 40px);
    max-width: calc(1200px - 40px);
    padding: 20px;
    justify-items: center;
}

.video-link {
    background-color: #ffffff;
    text-decoration: none;
    color: #000000;
    text-align: center;
    font-size: 0.7rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 2px 2px 10px rgb(0, 0, 0);
    width: 60vw;
}

.video-link img {
    max-width: 100%;
}

.video-link * {
    font-weight: 600;
}

.video-link:hover {
    transform: scale(1.05);
    box-shadow: 20px 20px 15px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

iframe {
    width: 70vw;
    max-width: 1200px;
    height: calc(70vw/16*9);
    max-height: calc(1200px/16*9);
    margin: 0 auto;
    border: none;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.8);
}


footer {
    background-color: #26424e;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    min-height: 60px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

svg:hover {
    cursor: pointer;
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .category {
        flex-direction: row;
    }
    .hexOut {
        width: 30vw;
        height: 24vw;
        font-size: 1rem;
    }
    
    .hexIn {
        width: 30vw;
        height: 24vw;
    }
    
    .hexContent {
        width: 30vw;
        height: 24vw;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-link {
        width: 30vw;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-link {
        width: 20vw;
        max-width: 355px;
    }
} 