/*
Theme Name: McDonalds Family Fun
Author: Track
Description: 
Version: 1.0
Text Domain: mcdonalds
*/

@font-face {
    font-family: "Speedee";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url(./assets/fonts/Speedee-Regular.woff2) format("woff2");
}

@font-face {
    font-family: "Speedee";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url(./assets/fonts/Speedee-Bold.woff2) format("woff2");
}

html {
    font-size: min(16px, calc(16 / 640 * 100vw));
    font-family: "Speedee", sans-serif;
}

body {
    margin: 0;
}

.background {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-inline-size: calc(640 / 16 * 1rem);    
    margin-inline: auto;
}

.background__player {
    width: 100%;
    height: 100%;
}

.wrapper {
    position: relative;
    max-inline-size: calc(640 / 16 * 1rem);
    padding-inline: calc(30 / 16 * 1rem);
    margin-inline: auto;
    overflow: hidden;
    min-height: 100dvh;
    box-sizing: border-box;
}

.brand {
    max-inline-size: 65%;
    margin-inline: auto;
    margin-block: calc(60 / 16 * 1rem);
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}
.teaser-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(30 / 16 * 1rem);
    margin-block: calc(30 / 16 * 1rem);
}

.teaser--size-single {
    grid-column: span 1;
}

.teaser--size-double {
    grid-column: span 2;
}


.teaser:is(a) {
    text-decoration: none;
    transition: transform 200ms;
}

.teaser:is(a):active {
    transform: scale(0.95);
}

.teaser {
    display: flex;
    flex-direction: column;
    border-radius: calc(14 / 16 * 1rem);
    box-shadow: 0px calc(3 / 16 * 1rem) calc(6 / 16 * 1rem) #00000029;
    user-select: none;
}

.teaser--color-white .teaser__text{
    background: white;
    color: black;
}

.teaser--color-red .teaser__text {
    background: #db0106;
    color: white;
}

.teaser--color-blue .teaser__text {
    background: #57afd1;
    color: white;
}

.teaser--color-yellow .teaser__text {
    background: #ffbc0e;
    color: black;
}

.teaser__image {
    position: relative;
    flex: 0 0 auto;
    border-top-left-radius: calc(14 / 16 * 1rem);
    border-top-right-radius: calc(14 / 16 * 1rem);
    overflow: hidden;
}


/*.teaser__image::after {
    content: "";
    position: absolute;
    display: block;
    right: 0;
    bottom: -1px;
    left: 0;
    height: calc(20 / 16 * 1rem);
}

.teaser--color-white .teaser__image::after {
    background-image: linear-gradient(to top, #ffffffff, #ffffff00);
}

.teaser--color-red .teaser__image::after {
    background-image: linear-gradient(to top, #db0106ff, #db010600);
}

.teaser--color-blue .teaser__image::after {
    background-image: linear-gradient(to top, #57afd1ff, #57afd100);
}

.teaser--color-yellow .teaser__image::after {
    background-image: linear-gradient(to top, #ffbc0eff, #ffbc0e00);
}
*/
.teaser__image img {
    display: block;
    width: 100%;
    height: auto;
}

.teaser__text {
    margin-top: -1px;
    flex: 1 0 auto;
    padding: calc(20 / 16 * 1rem);
    border-bottom-left-radius: calc(14 / 16 * 1rem);
    border-bottom-right-radius: calc(14 / 16 * 1rem);
}

.teaser__text p {
    font-size: calc(24 / 16 * 1rem);
    margin-block: 0;
}