@import url('https://fonts.googleapis.com/css2?family=Bitcount+Single:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* DEV 
.screen {
    background-image: url("faces/12h30.avif") !important;
    opacity: 1 !important;
}
*/

html, body {
  overflow: hidden;
}

body {
    margin: 0;
    font-family: Poppins;
    background: #000;
}

p {
    margin: 0;
}

/* SPLASH SCREEN */
    .splashScreen #left, .splashScreen #right {
        position: absolute;
        top: 0;
        height: 100vh;
        background: #fff;
    }

    .splashScreen #left {
        animation: sSL .5s ease;
    }

    @keyframes sSL {
        0% { margin-left: 50%; width: 0; opacity: 0; }
        40%, 60% { margin-left: 0%; width: 50%; opacity: .8; }
        100% { margin-left: 0%; width: 0; opacity: 0.4; }
    }

    .splashScreen #right {
        margin-left: 50%;
        animation: sSR .5s ease;
    }

    @keyframes sSR {
        0% { margin-left: 50%; width: 0; opacity: 0; }
        40%, 60% { margin-left: 50%; width: 50%; opacity: .8; }
        100% { margin-left: 100%; width: 0; opacity: .4; }
    }

    .splashScreen #fakeScreen {
        position: relative;
        border-radius: 100%;
        margin: auto;
        margin-top: 25%;
        width: 10vw;
        height: 10vw;
        border: solid 0px #fff;
        animation: sSFS 4s .6s ease;
    }

    @keyframes sSFS {
        0% { transform: scale(0); border-width: 50px; }
        40% { transform: scale(1); border-width: 50px; border-radius: 100%; }
        50% { transform: scale(10); width: 16px; height: 16px; border-radius: 100%; border-width: 10px; }
        60% { transform: scale(10); width: 9px; height: 16px; border-radius: 2px; border-width: 1px; }
        100% { transform: scale(10); width: 9px; height: 16px; border-radius: 2px; border-width: 1px; }
    }


/* REAL SCREEN */
.screen {
    display: block;
    position: absolute;
    top: 2.5vh;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 30px;
    width: 100%;
    height: 95vh;
    background-color: #1d1d1d;
    background-size: cover;
    background-position: center;
    /*animation: screenDisplayed .3s 4.3s forwards;*/
    opacity: 1;
}
@keyframes screenDisplayed {
    from { opacity: 0; transform: scale(.8); }
    to { opacity: 1; }
}

    .screen > p {
        display: block;
        padding-top: 20px;
        text-align: center;
        color: #fff;
    }

    .screen #date {
        margin-top: 50px;
        font-size: 20px;
    }
    .screen #date::first-letter { text-transform: capitalize; }

    .screen #hour {
        margin: 0;
        margin-top: -40px;
        font-size: 100px;
    }

    .screen .profils {
        display: flex;
        justify-content: center;
        column-gap: 10px;
        margin: auto;
        width: 100vw;
    }

        .screen .profils .profil {
            display: inline-block;
        }

            .screen .profils .profil a {
                display: block;
                border-radius: 100%;
                padding: 15px;
                color: #fff;
                font-size: 14px;
                min-width: 20px;
                text-align: center;
                background: #ffffff20;
                transition: .3s all;
            }
            .screen .profils .profil a:hover {
                background: #00000050;
            }

/* LIVE ACTIVITY */
.liveActivities {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    padding-bottom: 5vh;
    width: 100vw;
    max-height: 70vh;
    overflow: scroll;
    background-image: linear-gradient(180deg, transparent, #000000B0);
}

    .liveActivities .eventsCount {
        margin: 0;
        margin-top: 55vh;
        font-size: 12px;
        color: #fff;
        text-align: center;
        text-shadow: 0 0 10px #000;
        height: 15px;
        animation: eventsCount 1s 5s ease forwards;
    }
    @keyframes eventsCount {
        to { height: 0; opacity: 0;}
    }

    .liveActivities .liveActivity {
            display: block;
            position: sticky;
            top: 0;
            padding: 30px 30px;
            margin: auto;
            border-radius: 20px;
            margin-top: 30px;
            max-width: 400px;
            min-height: 100px;
            background: #000;
            background-position: center;
            background-size: cover;
            animation: liveActivity 1s ease backwards;
       }
       @keyframes liveActivity {
        from { opacity: .1; }
       }

            .liveActivities .liveActivity h1 {
                margin: 0;
                font-size: 18px;
                color: #fff;
            }

            .liveActivities .liveActivity p {
                margin: 0;
                text-align: left;
                color: #fff;
                font-size: 12px;
            }

            .liveActivities .liveActivity .progressBar {
                display: inline-block;
                margin-top: 20px;
                width: 85%;
                height: 5px;
                border-radius: 100px;
                border: solid 2px white;
            }

                .liveActivities .liveActivity .progressBar .progress {
                    width: 50%;
                    max-width: 100%;
                    height: 100%;
                    border-radius: 100px;
                    background-image: linear-gradient(120deg, white, transparent, white);
                    background-size: 15px;
                    animation: progress 2s 30 linear;
                }
                @keyframes progress {
                    to { background-position: 15px; }
                }

                .liveActivities .liveActivity .progressBar .inProgress {
                    margin-top: -7px;
                    margin-left: -2px;
                    width: 25%;
                    max-width: 100%;
                    height: calc(100% + 4px);
                    border-radius: 100px;
                    background-color: #78d798;
                    background-size: 15px;
                }

            .liveActivities .liveActivity .daysLeft {
                display: inline-block;
                margin-left: 10px;
                min-width: 10%;
                font-weight: bold;
                font-size: 14px;
                text-align: center;
                opacity: .8;
                letter-spacing: .02vw;
            }

/* LIVE ACTIVITY : LOVE THEME */
.liveActivities .liveActivity.love {
    background-image: linear-gradient(#00000030, #00000020), linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #fbc2eb 100%);
}

.liveActivities .liveActivity.starAc {
    background-image: linear-gradient(135deg, #d0b332 0%, #DAA520 50%, #CD7F32 100%);
}

.liveActivities .liveActivity.christmas {
    background-image: linear-gradient(135deg, #cc0000 0%, #ff3333 70%, #ffffff 100%);
}

/* IPAD */
@media screen and (max-width: 1180px ) {
    .liveActivities {
        max-height: 52vh;
    }

        .liveActivities .eventsCount {
            margin-top: 40vh;
        }
}
/* MOBILE */
@media screen and (max-width: 600px ) {
    .splashScreen #fakeScreen {
        margin-top: 40vh;
        width: 2vw;
        height: 2vw;
    }

    .screen {
        top: 0;
        left: 0;
        border-radius: 0;
        width: 100vw;
        height: 100vh;
    }

    .liveActivities {
        max-height: 60vh;
    }

        .liveActivities .liveActivity {
            max-width: 70%;
            min-height: 100px;
        }
        .liveActivities .eventsCount {
            margin-top: 40vh;
        }

            .liveActivities .liveActivity .progressBar {
                width: 80%;
            }
}