/* ================ Header ================ */

header {
    background: linear-gradient(90deg, #C7C4C7 13.23%, #8C8B8E 86.68%);
    height: 50px;
    padding: 0 20px;
}

.header__arrow {
    background-image: url(/src/img/arrow.svg);
    width: 30px;
    height: 30px;
}

header svg {
    margin: auto;
}

main {
    max-width: 840px;
    max-height: 700px;
    margin: auto;
    overflow: hidden;
    background: linear-gradient(90deg, #C8C5C8 0%, #8C8B8E 100%);
    box-shadow: 
        0px 4px 4px rgba(0, 0, 0, 0.25), 
        inset 1px 0px 0px rgba(255, 255, 255, 0.34);
}

/* ================ Scanner ================ */

.scanner-container {
    max-width: 480px;
    margin: auto;
    color: white;
}

.scanner-container h1 {
    text-align: center;
}

.video-container {
    position: relative;
    display: flex;
    justify-content: center;
    background: #F9F9F9;
}

.video-container img {
    height: 250px;
    margin: auto;
}

#video {
    max-width: 840px;
}

.tutorial-video, .tutorial-gif {
    height: 250px;
}

.direction-container, .button-container {
    padding: 0 10px;
}

button {
    position: static;
    width: 100%;
    margin: 20px 0;
}

/* ================ Media Queries ================ */

@media only screen and (max-width: 840px) {
    body {
        height: 100svh;
        display: flex;
        flex-direction: column;
    }
    header {
        flex-shrink: 0;
    }
    main {
        max-height: none;
        flex-grow: 1;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    .scanner-container {
        margin: 0;
        max-width: none;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    #video {    
        object-fit: cover;
        width: 100%;
    } 
    .video-container {
        flex: 1 1 auto;
        height: 1px;
    }
    .status {
        height: 80px;
    }
     
}

@media only screen and (max-width: 840px) {
    .content-v-container {
        height: 250px;
        flex: none;
    }
    .content-s-container {
        margin: 0;
        max-width: none
    }
}

/* ================ Face ================ */

#faceBox {
    z-index: 1;
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#faceBoxСircleSVG {
    position: absolute;
    min-width: 420px;
    min-height: 420px;
}

#faceBoxSVG {
    position: absolute;
    min-width: 318;
    min-height: 318;
}


.video-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачное затемнение */
    z-index: 1; /* Поверх всего, кроме faceBoxСircle */
    mask: url(#circleMask);
    -webkit-mask: url(#circleMask);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

.blur {
    filter: blur(5px);
}

.background-none {
    background: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.5);
    }
    50% {
        transform: scale(1.55);
    }
}

.resultContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 20px;
    padding: 12px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.result__section {
    margin-top: 12px;
    padding: 5px 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 1.5s ease infinite alternate;
}

.result__title {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.result__score,
.result__score-small {
    font-size: 22px;
    font-weight: bold;
}


.trusted {
    color: rgb(251, 229, 229);
}