@font-face {
    font-family: "serif";
    src: url("../fonts/ivar.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg-color: #000;
    --fg-color: #fff;
    --fg-subtle-color: #A2A2A2;
    --accent-color: #e38a2b;
    
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--fg-subtle-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    z-index: 20;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    text-align: center;
    transform: translateY(-5%);
    align-items: center;
}

main h1 {
    font-family: "serif", serif;
    font-size: 6.4rem;
    line-height: 1.2;
    margin: 0 auto;
    color: var(--fg-color);
}

main p {
    font-size: 2rem;
    margin: 0 auto;
    max-width: 540px;
}

.zooom-container {
    z-index: -1;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    overflow: hidden;
}

.zooom-container-overlay {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.zooom-container svg {
    position: absolute;
    z-index: 1;
    bottom: -20px;
    width: 100%;
    height: auto;
    opacity: 0.3;
}

.mock {
    position: relative;
    min-width: 320px;
    min-height: 300px;
    width: min(60vw, calc(60vh * 375 / 426));
    height: min(calc(60vw * 426 / 375), 60vh);
    background-color: transparent;
    border-bottom-right-radius: calc(min(60vw, calc(60vh * 375 / 426)) * 0.17);
    border-bottom-left-radius: calc(min(60vw, calc(60vh * 375 / 426)) * 0.17);
    box-shadow: 0px 0px 32px 24px var(--accent-color) inset, 0px 8px 32px color-mix(in srgb, var(--accent-color) 60%, transparent);
    margin: 0 auto;
    background-image: url("../img/p01.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transform: translateY(-32px);
    
}

.mock > .controls {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    bottom: 0;
    left: 0;
    padding-bottom: 32px;
    width: 100%;
    background: radial-gradient(100% 100% at 50% 100%, var(--accent-color) 40%, transparent 80%);
}

.controls .cameraControls {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.controls .styleControls {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 100%;
}

.controls .button {
    display: flex;
    flex-direction: row;
    gap: 8px;
    cursor: wait;
    color: #FFF;
    display: flex;
    height: 52px;
    width: 52px;
    justify-content: center;
    align-items: center;
    border-radius: 64px;
    background: rgba(0, 0, 0, 0.6);
}

.controls .button p{
    font-size: 1.6rem;
    line-height: 1.3;
    white-space: nowrap;
}

.controls .button svg{
    height: 22px;
    width: 22px;
}


.controls .button.tiny {
    font-size: 16px;
    display: flex;
    height: 40px;
    width: auto;
    width: auto;
    padding: 0px 16px;
}

.controls .button.loop{
    cursor: pointer;
    user-select: none;
} 


.controls .recordButton {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;    
    height: 72px;
    width: 72px;
    border: 4px solid white;
    border-radius: 76px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

.recordButton > .square {
    position: absolute;
    height: 32px;
    width: 32px;
    border-radius: 8px;
    background: red;
    animation: blink 3s ease-in-out infinite;
}

a.button {
    text-decoration: none;
    color: var(--fg-color);
    background: color-mix(in srgb, var(--accent-color) 85%, transparent);
    width: auto;
    padding: 12px 24px;
    border-radius: 56px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    backdrop-filter: blur(24px);
}

@media (max-aspect-ratio: 1/1) {
    .zooom-container {
        display: none;
    }
}

@media (max-width: 768px) {
    main h1 {
        font-size: 4rem;
    }
    main p {
        font-size: 1.6rem;
        max-width: 80vw;
    }
    a.button {
        font-size: 14px;
        transform: scale(1);
    }
    svg.zooom {
        width: 100vw;
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
    }
}