
.trapezoid {
    background-color: yellow;
    padding: 1em;
    clip-path: polygon(0% 16%, 100% 0%, 100% 100%, 0% 92%);
    text-align: center;
    display: inline-block;
    width: auto;
    margin: 1em;
    padding: 0.3em 1.2em;
}

/* ----------------------------
            BANNER
-----------------------------*/
section#banner {
    display: block;
    position: relative;
}

section#banner .slick-dots {
    bottom: 25px;
}

section#banner .slick-dotted.slick-slider {
    margin-bottom: 0;
}

section#banner .slick-dots li.slick-active button:before {
    opacity: .75;
    color: white;
}

section#banner-editor .slide-banner, 
section#banner .slide-banner {
    position: relative;
    background-color: black;
    background-image: url(../img/slider-background.png), linear-gradient(to right, transparent, rgba(0, 0, 0, 68));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    overflow: hidden; 
    height: 100%;
}

section#banner-editor .slide-banner::after, 
section#banner .slide-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-63%, 59%) scale(0.7);
    width: 1915px;
    height: 100%; /* Set height to 100% to cover the full area */
    background: url(../img/shapes.png) no-repeat center center;
    filter: drop-shadow(65px -25px 0px rgba(255, 255, 255, 0.2));
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    margin-bottom: -1px; /* Negative margin to counteract any rounding issues */
    height: calc(100% + 1px);
}


section#banner-editor .slide-content, 
section#banner .slide-content {
    position: relative;
    z-index: 1;
    font-size: 1em;
    height: calc(100vh - var(--nav-bar-height));
    max-height: 700px;
    flex-direction: column-reverse;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: auto;
    padding-bottom:4em;
    box-sizing: border-box;
    overflow: hidden;
}

section#banner-editor .slide-info, 
section#banner .slide-info {
    width: 100%;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section#banner-editor .slide-info h1,
section#banner-editor .slide-info p,
section#banner-editor .slide-info a, 
section#banner .slide-info h1,
section#banner .slide-info p,
section#banner .slide-info a {
    padding: 10px 0;
    color: white;
}

section#banner-editor .slide-info h1, 
section#banner .slide-info h1 {
    font-size: 2em;
}

section#banner-editor .slide-info p, 
section#banner .slide-info p {
    font-size: 1.3em;
    line-height: 1.4em;
    text-shadow: 0.125em 0.125em 0.25em rgba(0, 0, 0, 0.5);
    margin: 0 1em;
}

section#banner-editor .slide-info a, 
section#banner .slide-info a {
    margin-top: 2rem;
    font-size: 1em;
    line-height: 1.6em;
}

section#banner-editor .slide-illustration, 
section#banner .slide-illustration {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

section#banner-editor .slide-illustration .inner-illustration, 
section#banner .slide-illustration .inner-illustration {
    box-shadow: 
        0.625em 0.625em 0 rgba(var(--ag-red), 0.3), /* First shadow */
        -0.625em -0.625em 0 rgba(var(--ag-blue), 0.3); /* Second shadow */
    transform: skewX(-10deg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

section#banner-editor .slide-illustration .inner-illustration > img{
    height: 100%;
    width: auto;
}

section#banner .slide-illustration .inner-illustration > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

section#banner-editor .slide-illustration .inner-graphic, 
section#banner .slide-illustration .inner-graphic {
    background-color: #abd51c;
}

section#banner-editor .slide-illustration .inner-graphic::after,
section#banner-editor .slide-illustration .inner-graphic::before, 
section#banner .slide-illustration .inner-graphic::after,
section#banner .slide-illustration .inner-graphic::before {
    background-color: rgba(171, 213, 28, 0.4);
}

section#banner-editor  .slide-illustration .inner-graphic, 
section#banner  .slide-illustration .inner-graphic {
    height: 10rem;
    width: 8rem;
    border-radius: 2rem;
    margin-right: 4rem;
    margin-top: 2rem;
    background-color: #FF0077;
    position: relative;
    transform: skewX(-10deg);
}

section#banner-editor .slide-illustration .inner-graphic::after,
section#banner-editor .slide-illustration .inner-graphic::before,
section#banner-editor .slide-illustration .inner-illustration::after,
section#banner-editor .slide-illustration .inner-illustration::before, 
section#banner .slide-illustration .inner-graphic::after,
section#banner .slide-illustration .inner-graphic::before,
section#banner .slide-illustration .inner-illustration::after,
section#banner .slide-illustration .inner-illustration::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    top: 0;
    left: 0;
}

section#banner-editor .slide-illustration .inner-graphic::after, 
section#banner-editor .slide-illustration .inner-illustration::after, 
section#banner .slide-illustration .inner-graphic::after, 
section#banner .slide-illustration .inner-illustration::after {
    transform: translate(4rem, -1rem);
}

section#banner-editor .slide-illustration .inner-graphic::before, 
section#banner-editor .slide-illustration .inner-illustration::before, 
section#banner .slide-illustration .inner-graphic::before, 
section#banner .slide-illustration .inner-illustration::before {
    transform: translate(2rem, -2rem);
}

@media only screen and (min-width: 1080px) {
    section#banner-editor .slide-content, 
    section#banner .slide-content {
        max-width: 1560px;
        height: 724px;
        flex-direction: row;
        justify-content: center;
        margin-top: auto;
    }

    section#banner-editor .slide-banner::after,
    section#banner .slide-banner::after {
        transform: translate(-63%, 59%) scale(0.9);
    }

    section#banner-editor .slide-info, 
    section#banner .slide-info {
        width: 70%;
        max-width: 830px;
        padding: 0 25px;
    }

    section#banner-editor .slide-info h1, 
    section#banner .slide-info h1 {
        font-size: 2.8em;
    }

    section#banner-editor .slide-info p, 
    section#banner .slide-info p {
        font-size: 1.5em;
    }

    section#banner-editor .slide-info a, 
    section#banner .slide-info a {
        font-size: 1.5em;
    }
    
    section#banner-editor .slide-illustration, 
    section#banner .slide-illustration {
        width: 30%;
        max-width: 535px;
        padding: 0 25px;
        align-items: flex-start;
    }

    section#banner-editor  .slide-illustration .inner-graphic, 
    section#banner-editor  .slide-illustration .inner-illustration, 
    section#banner  .slide-illustration .inner-graphic, 
    section#banner  .slide-illustration .inner-illustration {
        height: 25em;
        width: 18em;
        border-radius: 3em;
    }
}
  
/* ----------------------------
            ABOUT
-----------------------------*/

section#about {
    position: relative;
    display: flex; 
    justify-content: center; 
    align-items: center;
    height: 620px;
    width: 100%;  
    overflow: hidden;
    margin: 0;
}

section#about  .container{
    position: absolute;
    width: 430px;
    max-width: none;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}
  
section#about  .bottom-left, .top-right {
    z-index: -1;
    position: absolute;
    width: auto;
    height: auto;
}
  
section#about .bottom-left {
    bottom: 0; 
    left: 0; 
    transform: translateX(-340px);
    height: 346px;
}
  
section#about .top-right {
    top: 0; 
    right: 0; 
    transform: translate(414px, -83px);
    height: 495px;
}
  
section#about .text-content {
    margin: auto;
    max-width: 1080px;
    width: 100%;
    line-height: 1.3em; 
    height: 372px;
    margin-top: 105px;
}

section#about h1 {
    font-size: 2em;
}

section#about p {
    font-size: 1.2em;
    line-height: 1.3em;
    padding: 0 50px;
}

@media only screen and (min-width: 1080px) {

    section#about  .container{
        width: 1920px;
    }

    section#about .bottom-left {
        transform: none;
    }
      
    section#about .top-right {
        transform: none;
    }

    section#about .text-content {
        margin-top: 180px;
    }

    section#about h1 {
        font-size: 2.6em;
    }

    section#about p {
        font-size: 1.6em;
        padding: 0;
    }
}
/* ----------------------------
            ARCADE
-----------------------------*/

section#arcade .arcade-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: auto;
}

section#arcade a{
    display: contents;
}
  
section#arcade .arcade {
    box-sizing: border-box;
    padding: 10px 15px;
    max-width: 300px;
    width: 50%;
}

.section-seperator {
    width: auto;
    height: 420px;
    position: relative;
    margin: 0;
    padding: 0;
}

.section-seperator::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: url('../img/section-seperator.png') repeat-x center center;
    background-size: auto 100%;
    opacity: 1;
}

.section-seperator::after {
    content: "";
    position: absolute;
    bottom: -38px; /* Adjust this value to control the vertical offset */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: url('../img/section-seperator.png') repeat-x center center;
    background-size: auto 100%;
    opacity: 0.22;
    z-index: -1;
}
  
@media only screen and (min-width: 1080px) {
    section#arcade .arcade {
        max-width: 300px;
        width: auto;
    }

    section#arcade .arcade-container{
        max-width: none;
    }
    
}
/* ----------------------------
            NEWS
-----------------------------*/
section#news {
    position: relative;
    text-align: center;
    overflow: visible;
}

section#news .news-container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    padding-bottom: 80px;
    display: flex;
    justify-content: space-between;
    flex-flow: column;
    max-width: 1700px;
    overflow: visible;
}

section#news::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: yellow;
    z-index: -1;
    clip-path: polygon(
        calc(1.5em) 362.5px,
        calc(100% - 1.5em) 362.5px,
        110% 100%,
        -10% 100%
    );    
    
}

section#news .headline-news{
    position: relative;
    height: 370px;
    overflow: visible;
}

section#news .headline-news img{
    position: relative;
    top: -110px;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

section#news .news-grid {
    display: flex;
    justify-content: center;
    flex-flow: column;
    max-width: 840px;
    max-height: 650px;
}

section#news .news-item {
    display: flex;
    flex-flow: row;
    overflow: hidden;
    width: 100%;
    padding: 10px 10px;
    box-sizing: border-box;
}

section#news .news-image-container {
    background-color: #000;
    width: 50%;
    border-radius: 16px;
    position: relative;
}

section#news .news-image-container img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

section#news .news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.65em;
    width: 5em;
    height: 1.1em;
    line-height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

section#news .news-description {
    width: 50%;
    padding: 20px 0;
    font-size: 1em;
    line-height: 1.2em;
    text-align: center;
    margin: 0;
}
  
@media only screen and (min-width: 1080px) {

    section#news .news-container {
        display: flex;
        justify-content: center;
        flex-flow: row;
        align-items: stretch;
        width: 100%;
        max-width: 1630px;
        height: auto;
        max-height: calc(2 * 14.25em + 2 * 3.875em); /* 2 * 228 is image height + 2 * text height */
    }

    section#news::after {
        clip-path: polygon(
            calc(50% - (clamp(0px, 100vw, 1630px) / 2) + 10px) 229px,
            calc(50% - (clamp(0px, 100vw, 1630px) * ( 50 - 45.7 + 1.5 ) / 100 ) - 5px) 229px,
            110% 100%,
            -10% 100%
        );    
        
    }

    section#news .headline-news{
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 45.7%; /* grid news size + margin / total width */
        position: relative;
        display: flex; 
        align-items: flex-end;
        height: auto;
        overflow: visible;
        margin-right: 1.5%;
        /*width: calc((100% - 3.875em / 37.7) * 0.87);*/ /* 37.7 being the offset of the image pivot, 0.87 being the aspect ratio of the TV image*/
    }
    
    section#news .headline-news img{
        position: absolute;
        top: 0;
        right:0;
        transform: translateY(-37.7%);
        height: auto;
        width: 100%;
        padding: 0;
    }

    section#news .news-grid {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 53.7%; /* grid news size + margin / total width */
        margin-left: 1.5%;
        height: 100%;
        flex-flow: row;
        flex-wrap: wrap;
        max-width: calc( 2 * ( 25.33em + 2 * ( 0.625em ) ) + 25px );
    }

    section#news .news-item {
        flex-flow: column;
        width: auto;
        max-width: 50%;
        padding: 0px 0.625em;
        max-height: 18.15em;
    }

    section#news .news-image-container {
        width: 100%;
        max-height: 14.25em;
        max-width: 25.33em;
    }

    section#news .news-image-container img {
        height: auto;
        width: 100%;
    }

    section#news .news-description {
        /* font-size: clamp(0.9em, 1.2vw, 1em); */
        font-size: 1em;
        height: 3.875em;
        width: 100%;
        padding: 0.5em 0 1em 0;
        box-sizing: border-box;
    }
}

/* ----------------------------
            NEWSLETTER
-----------------------------*/
section#newsletter {
    background-color: yellow;
}

section#newsletter .content_container {
    background-color: rgba(255, 167, 187, 0.9);
    margin: auto;
    padding: 1em 0;
    box-sizing: border-box;
}