body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.before-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-bg {
    background-image: url('../images/login-background.png');
}
.signup-bg {
    background-image: url('../images/signup-background.png');
}

.before-background-container {
    aspect-ratio: 10 / 16;
    width: min(calc(100vw - 40px), calc((100vh - 40px) * (12 / 16)));
    height: min(calc(100vh - 12vh), calc((100vw - 40px) * (16 / 10)));
    position: relative;
    border: 5px solid black;
    background-color: white;
}

#login-section h2, #signup-section h2 {
    text-align: center;
    font-size: clamp(0.1em, 5.4vh, 5rem);
}

#login-section form, #signup-section form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#login-section label, #signup-section label {
    border: 2px solid black;
    padding: 5px;
    font-size : clamp(0.1em, 1.9vh, 5rem);
    min-width: 65%;;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

#login-section input, #signup-section input {
    font-size : clamp(0.1em, 1.9vh, 5rem);
}

#login-section button, #signup-section button {
    font-size : clamp(0.1em, 1.9vh, 5rem);
    padding: 5px;
    min-width: 50%;
    background: black;
    color: white;
}

#login-section p, #signup-section p {
    text-align: center; 
}

#login-section .switch-button, #signup-section .switch-button {
    font-size: clamp(0.1rem, 2vh, 2rem); 
    display: inline-block;
    text-decoration: underline;
}

.homepage-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center; 
    align-items: center;     
    background-image: url(../images/home-background.avif);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}

.homepage-camera-container {
    aspect-ratio: 16 / 9;
    width: min(calc(100vw - 40px), calc((100vh - 40px) * (4 / 3)));
    height: min(calc(100vh - 40px), calc((100vw - 40px) * (3 / 4)));
    position: relative;
}

.homepage-camera-button {
    position: absolute;
    height: 7%;
    width: 12%;
    bottom: 85%;
    left: 9%;
    background-color: black;
    color: white;
    font-size: clamp(0.01em, 1.75cqmin, 1.6rem);
    border-bottom: 1px solid white;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
} 

.homepage-camera-button.active {
    height: 3%;
    transition: height 0.3s ease-in-out;
    color: transparent;
}

.homepage-camera-button.inactive {
    height: 7%;
    transition: height 0.3s ease-in-out;
    color: white;
}

@keyframes l {
    from {
        height: 7%; 
    }
    to {
        height: 3%; 
    }
}

#homepageButton {
    outline: 4px double white;
    background-color: black;
    color:  white;
    margin: 10px;
    width: 40%;
    height: 76%;
    display: none;
    position: absolute;
    top: 17%;
    left: 1%;
    z-index: 19;
    border-radius: 40px;
    text-align: center;
    font-size: clamp(0.01em, 2cqmin, 1.8rem);
    padding: 7px;

    overflow: auto; 
}

.homepage-camera-top {
    position: absolute;
    height: 9.5%;
    width: 40%;
    top: 10.2%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    border-bottom: 2px solid white;
    border-radius: 30px 30px 0 0;
}

.homepage-camera-button-account {
    position: absolute;
    top: 15%;
    height: 42.5%;
    width: 50%;
    background-color: black;
    border-right:  2px solid white;
    border-bottom: 2px solid white;
    border-radius: 20% 0 0 0;
    cursor: pointer;
}

.homepage-camera-button-account-title {
    position: relative;
    top: 45%;
    left: 28%;
    transform: translateY(-50%);
    color: white;
    font-size: clamp(0.01em, 4cqmin, 2rem);
}

.homepage-camera-button-groups {
    position: absolute;
    top: 15%;
    right: 0;
    height: 42.5%;
    width: 50%;
    background-color: black;
    border-left:  2px solid white;
    border-bottom: 2px solid white;
    border-radius: 0 20% 0 0;
    cursor: pointer;
}

.homepage-camera-button-groups-title {
    position: relative;
    top: 45%;
    left: 38%;
    transform: translateY(-50%);
    color: white;
    font-size: clamp(0.01em, 4cqmin, 2rem);
}

.homepage-camera-button-groups-red-button {
    border-radius: 100%;
    width: 12%;
    height: 19%;
    position: absolute;
    top: 20%;
    left: 85%;
    transform: translate(-50%, -50%);
    background-color: red;
    border: outset 1px white !important;
    z-index: 10;
    cursor: pointer;
}

#homepageAnnouncements {
    outline: 4px double white;
    background-color: black;
    color:  white;
    margin: 5px;
    width: 80%;
    height: 180%;
    display: none;
    position: absolute;
    top: 5%;
    right: 1%;
    z-index: 19;
    border-radius: 40px;
    overflow: auto; 
}

#homepageAnnouncements h2 {
    position: relative;
    left: 28%;
    top: 2%;
    font-size: clamp(0.01em, 3.5cqmin, 1.8rem);
    text-align: center;
    width: 60%;
}

.homepageAnnouncements-close {
    position: absolute;
    left: 8%;
    top: 12%;
    border-radius: 100%;
    width: 14%;
    height: 10%;
    transform: translate(-50%, -50%);
    background-color: red;
    border: outset 1px white !important;
    color: white;
    font-size: clamp(0.01em, 2.5cqmin, 2.65rem);
    rotate: 45deg;
    cursor:  pointer;
    text-align: center;
}

.homepage-camera-button-settings {
    position: absolute;
    bottom: 0;
    height: 42.5%;
    width: 50%;
    background-color: black;
    border-right:  2px solid white;
    border-top: 2px solid white;
    border-radius: 0 0 0 20%;
    cursor: pointer;
}

.homepage-camera-button-settings-title {
    position: relative;
    top: 45%;
    left: 28%;
    transform: translateY(-50%);
    color: white;
     font-size: clamp(0.01em, 4cqmin, 2rem);
}

.homepage-camera-button-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 42.5%;
    width: 50%;
    background-color: black;
    border-left:  2px solid white;
    border-top: 2px solid white;
    cursor: pointer;
    border-radius: 0 0 20% 0;
}

.homepage-camera-button-upload-title {
    position: relative;
    top: 45%;
    left: 38%;
    transform: translateY(-50%);
    color: white;
    font-size: clamp(0.01em, 4cqmin, 2rem);
}

.homepage-camera-outer-lense {
    border-radius: 100%;
    width: 35%;
    height: 45%;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
}

.homepage-camera-inner-lense {
    border-radius: 100%;
    width: 78%;
    height: 78%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
}

.homepage-lense-h1 {
    color:  white;
    position: relative;
    top: 38%;
    text-align: center;
    font-size: clamp(0.01em, 6cqmin, 2.8rem);
}

.black-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: black;
    overflow: hidden;
}

.camera-static {
    position: absolute;
    top: -10vh;
    left: -10vw;
    width: 120vw;
    height: 120vh;
    mix-blend-mode: screen; 
    opacity: 0.15; 
    animation: static-shift 0.1s steps(4) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes static-shift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-10px, -15px); }
    50% { transform: translate(-15px, 5px); }
    75% { transform: translate(10px, -10px); }
    100% { transform: translate(0, 0); }
}

.title {
  position: absolute;
    top: calc(50% - (100vh - 80px) / 2 + 0.5cqmin);
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-family: sans-serif;
    font-size: clamp(0.1em, 5cqmin, 2rem);
    white-space: nowrap;
    z-index: 24;
}


.border-container {
    position: relative;
    border: 4px solid white;
    width: calc(100vw - 80px);
    height: calc(100vh - 80px);

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    --corner-width: 25%;
    --corner-height: 25%;
    -webkit-mask-image: linear-gradient(to right, white var(--corner-width), transparent var(--corner-width) calc(100% - var(--corner-width)), white calc(100% - var(--corner-width))), linear-gradient(to bottom, white var(--corner-height), transparent var(--corner-height) calc(100% - var(--corner-height)), white calc(100% - var(--corner-height)));
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    z-index: 23;
}

.REC-container {
    position: fixed;
    top: 6cqmin;    
    left: 12cqmin;   
    aspect-ratio: 16 / 9;
    background-color: black;
    color: white;
}

.REC-indicator {
    position: absolute;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5em; 
    color: white;
    font-weight: bold;
    font-family: sans-serif;
    font-size: clamp(0.01em, 4cqmin, 1.6rem);
}

.REC-indicator::before {
    content: "";
    display: inline-block;
    width: 1.2em; 
    height: 1.2em;
    border-radius: 50%;
    background-color: red;
    flex-shrink: 0;
}

.battery-container {
    position: absolute;
    top: 6cqmin;    
    right: 8cqmin;   
    transform: translate(50%, -50%);
    font-size: clamp(0.01em, 5cqmin, 1.9rem); 
    display: inline-block;
}

.battery-shell {
    position: relative;
    width: 2.2em;
    height: 1.1em;
    border: 0.12em solid white;
    border-radius: 0.2em;
    padding: 0.08em;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    gap: 0.06em;
}

.battery-shell::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -0.18em;
    transform: translateY(-50%);
    width: 0.12em;
    height: 0.4em;
    background-color: white;
    border-radius: 0.08em 0 0 0.08em;
}

.battery-bar {
    flex: 1;
    height: 100%;
    background-color: #39b54a;
    border-radius: 0.08em;
}


.account-container {
    color: white;
    box-sizing: border-box;
    position: absolute; 
    top: var(--corner-height, 20%);
    left: var(--corner-width, 8.33%);
    width: calc(100% - (var(--corner-width, 25%) * 0.67));
    height: calc(100% - (var(--corner-height, 25%) * 1.4));
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: clamp(8px, 2.5vmin, 30px);
    gap: clamp(8px, 2.5vmin, 25px);
    overflow: hidden;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2.5vmin, 20px);
}

.account-form-row {
    display: flex;
    gap: clamp(8px, 2.5vmin, 20px);
    flex-wrap: wrap;
}

.account-box, .account-button-row {
    flex: 1;
    min-width: 200px;
}

.account-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-sizing: border-box;
    padding: clamp(8px, 1.8vmin, 16px);
    background-color: white;
    border-radius: 2px;
}

.account-box label {
    font-family: sans-serif;
    font-size: clamp(0.7em, 2.2vmin, 1.2rem);
    color: black;
    white-space: nowrap;
    flex-shrink: 0;
}

.account-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: sans-serif;
    font-size: clamp(0.7em, 2.2vmin, 1.2rem);
    color: black;
    padding: 0;
}

.account-box input[type="password"] {
    padding-right: 1.6em;
}

.account-toggle-password {
    position: absolute;
    right: 0.8em;
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.account-toggle-password svg {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.account-button-row {
    display: flex;
    gap: clamp(8px, 2.5vmin, 20px);
}

.account-button {
    flex: 1;
    box-sizing: border-box;
    padding: clamp(8px, 1.8vmin, 16px);
    font-family: sans-serif;
    font-size: clamp(0.7em, 2.2vmin, 1.2rem);
    background-color: white;
    color: black;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
}

.account-button-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
