@font-face {
    font-family: "Loyola Round";
    src: url("https://db.onlinewebfonts.com/t/d9d0c3be740f74cd578418cb0693e2c6.eot");
    src: url("https://db.onlinewebfonts.com/t/d9d0c3be740f74cd578418cb0693e2c6.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/d9d0c3be740f74cd578418cb0693e2c6.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/d9d0c3be740f74cd578418cb0693e2c6.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/d9d0c3be740f74cd578418cb0693e2c6.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/d9d0c3be740f74cd578418cb0693e2c6.svg#Loyola Round")format("svg");
}

:root {
    --contrast-color: #000000;
    --accent-color: #FECBD7;
    --team1-color: #38761d;
    --team2-color: #d9ead3;
    --team3-color: #ff0000;
    --team4-color: #4a86e8;
}

body {
    font-family: 'Loyola Round', sans-serif;
    margin: 0;
    background-image: url(img-curling/fond.png);
    background-repeat: repeat;
    color: #ffffff;
    overflow-x: hidden;
}

* {
    text-shadow: 1px 0 #000000, -1px 0 #000000, 0 1px #000000, 0 -1px #000000,
             1px 1px #000000, -1px -1px #000000, 1px -1px #000000, -1px 1px #000000;

}

h1 {
    font-size: 5em;
    text-align: center;
    margin: 20px 20px 0 20px
}

h2 {
    font-size: 2em;
    text-align: center;
    margin: 20px 20px 0 20px

}

h3 {
    font-size: 1.5em;
    text-align: center;
    margin: 10px;
}

.equipe-1 {
    color: var(--team1-color);
}
.equipe-2 {
    color: var(--team2-color);
}
.equipe-3 {
    color: var(--team3-color);
}
.equipe-4 {
    color: var(--team4-color);
}

p {
    font-size: 1.6em;
    text-align: center;
    margin: 20px;
}

.presente-par-manu {
    all: unset; /* Resets all styles */
    display: flex;
    align-items: center;
    justify-content: center;

}

.presente-par-manu p {
    font-size: 2em;
    margin: 0 0.5em 0 0;

}

.presente-par-manu img {
    width: 4em;
    height: 4em;
    margin-right: 20px;
}

.bandeau {
    background-color: black;
    padding: 5px;
    width: 100%;
}

.pastille {
    all: unset;
    background-color: white;
    display: flex;
    align-items: center;
    border-radius: 75px;
    height: 100px;
    width: 350px;
    margin: 10px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pastille:hover:not(.grayed-out) {
    /*add drop shadow and increase size by 10%*/
    /*add transition for smooth effect*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
    cursor: pointer;
}


.pastille .image-pastille {
    flex: 0 0 auto;
    width: 75px;
    height: 75px;
    padding: 12.5px;
    flex-shrink: 0;
}
.image-pastille img {
    border-radius: 100%;
    border: 4px solid;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.texte-pastille {
    display: flex;
    text-align: left;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    margin-top: auto;
    margin-bottom: auto;
    padding-right: 20px;
}

.texte-pastille p {
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.nom-joueur p {
    font-size: 1.6em;
    color:white;
}

.description-joueur p{
    font-size: 1.1em;
    /*
    color: var(--accent-color);
    */
}

.liste-pastille > a {
    color: var(--accent-color);
}

.equipe-joueur p {
    font-size: 1em;
}

.liste-pastille {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.grayed-out {
    filter: grayscale(100%);
    opacity: 0.5;
    cursor: not-allowed;
}

iframe,
.fakeFrame {
    margin: 20px;
    max-width: 750px;
    width: calc(100% - 10px);
    height: 525px;
    border: none;
    background-color: #33C1FF;
}

.live {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.general-stream-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 20px 20px;
}

.general-stream-info button {
    background-color: white;
    border: none;
    border-radius: 16px;
    padding: 10px 18px;
    height: 60px;
    width: 215px;
    font-family: 'Loyola Round', sans-serif;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.general-stream-info button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
    cursor: pointer;
}

.vote-etoile {
    display: flex;
    align-items: center;
    
}

.vote-etoile > a {
    max-width: 400px;
    max-height: 250px;
    aspect-ratio: 400/250;
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    text-decoration: none;
     transition: all 0.3s ease-in-out;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vote-etoile > a > p {
    font-size: 3em;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    color: white;
}

.vote-etoile > a > img {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1.52;
}

.vote-etoile > a:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
    cursor: pointer;
}

.space-for-margin {
    height: 150px;
}


.premiere-participation {
    position: relative;
    bottom: 65px;
    left: -95px;
    width: 0;
    transform: rotate(20deg);
}

.premiere-participation p {
    width: max-content;
    font-size: 1em;
    color: rgb(255, 255, 255);
    padding: 5px 10px;
    border-radius: 10px;
    display: inline-block;
    margin: 0px;
}

.equipe-1 .premiere-participation p {
    background-color: var(--team1-color);
}
.equipe-2 .premiere-participation p {
    background-color: var(--team2-color);
}
.equipe-3 .premiere-participation p {
    background-color: var(--team3-color);
}
.equipe-4 .premiere-participation p {
    background-color: var(--team4-color);
}


.video-modal[hidden] {
    display: none;
}
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
}
.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}
.video-modal__panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}
.video-modal__panel h2 {
    margin: 0 52px 12px 0;
    text-align: center;
}
.video-modal__panel--planning {
    width: fit-content;
    max-width: calc(100vw - 24px);
}
.planning-modal__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    border-radius: 18px;
    background: #000000;
    margin: 0 auto;
}
.video-modal__frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
}
.video-modal__frame-wrap iframe {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: none;
    background: #111;
}
.video-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    color: #000;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.video-modal__close:hover {
    transform: scale(1.06);
}
body.video-modal-open {
    overflow: hidden;
}


footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/*MAKE NICE ANIMATION*/
footer > div {
    animation: swivel 5s ease-in-out infinite;
}

@keyframes swivel {
    0% {
        transform: rotateZ(-5deg);
    }
    10% {
        transform: rotateZ(5deg);
    }
    20% {
        transform: rotateZ(-5deg);
    }
    25% {
        transform: rotateZ(0deg);
    }
    50% {
        transform: rotateZ(0deg);
    }
    95% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(-5deg);
    }
}

footer a,
footer p {
    margin: 0cqb;
    font-size: 1.5em;
    color: white;
}