@font-face {
    font-family: 'KiffoBDB-SemiBold';
    src: url('../font/KiffoBDB-SemiBold.otf') format('opentype');
}

@font-face {
    font-family: 'KiffoBDB-ExtraLight';
    src: url('../font/KiffoBDB-ExtraLight.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'KiffoBDB-SemiBold', sans-serif;
    background-color: #0043a9;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
}

#logoTop {
    position: fixed;
    top: 4%;
    left: 4%;
    width: auto;
    height: 12%;
    max-height: 50px;
    z-index: 10;
}

#logoBottom {
    position: fixed;
    bottom: 4%;
    left: 4%;
    height: 150px;
    max-height: 10vh;
    width: auto;
    z-index: 10;
}

#bpmContainer {
    position: fixed;
    top: 10%;
    right: 8%;
    display: flex;
    align-items: baseline;
    gap: 0.5vw;
    z-index: 10;
}

#heartRate {
    font-family: 'KiffoBDB-SemiBold', sans-serif;
    font-size: 12vw;
    color: #fff;
    line-height: 1;
}

#bpmText {
    font-family: 'KiffoBDB-ExtraLight', sans-serif;
    font-size: 6vw;
    color: #fff;
}

#videoContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: auto;
    z-index: 5;
}

#heartVideo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.flashing {
    animation: pulse 1s alternate infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}

#logradoContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    background-color: #0043a9;
}

#logradoText {
    font-family: 'KiffoBDB-SemiBold', sans-serif;
    font-size: 8vw;
    color: #fff;
    text-align: center;
    animation: pulseAnimation 0.4s infinite alternate;
}

#bpmFinalContainer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5vw;
    margin-top: 2vw;
}

#bpmFinalNumber {
    font-family: 'KiffoBDB-SemiBold', sans-serif;
    font-size: 12vw;
    color: #fff;
    line-height: 1;
}

#bpmFinalText {
    font-family: 'KiffoBDB-ExtraLight', sans-serif;
    font-size: 6vw;
    color: #fff;
}

@keyframes pulseAnimation {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    #logoTop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 3% 10%;
        background-color: #0043a9;
    }

    #logoBottom {
        height: 50px;
        bottom: 2%;
        left: 3%;
    }

    #bpmContainer {
        position: fixed;
        top: 22%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 1vw;
    }

    #heartRate {
        font-size: 18vw;
    }

    #bpmText {
        font-size: 8vw;
    }

    #videoContainer {
        position: fixed;
        top: 50%;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 75%;
    }

    #logradoText {
        font-size: 12vw;
    }

    #bpmFinalNumber {
        font-size: 18vw;
    }

    #bpmFinalText {
        font-size: 8vw;
    }
}

@media (max-width: 480px) {
    #logoTop {
        padding: 2% 5%;
    }

    #logoBottom {
        height: 40px;
    }

    #bpmContainer {
        top: 20%;
    }

    #heartRate {
        font-size: 22vw;
    }

    #bpmText {
        font-size: 10vw;
    }

    #videoContainer {
        width: 85%;
        top: 52%;
    }

    #logradoText {
        font-size: 14vw;
    }

    #bpmFinalNumber {
        font-size: 22vw;
    }

    #bpmFinalText {
        font-size: 10vw;
    }
}
