body {
    position: relative;
    background-color: #e6b1c7;
}

.homepage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    margin-bottom: -3rem;
}

#background {
    position: absolute;
    top: 0;
    z-index: -1;
    /* background-image: url('./public/Sparkle.jpg'); */
    height: 100vh;
    width: 100vw;
}

#take-photo {
    border: 0.25rem solid black;
    padding: 1.5rem;
    border-radius: 2rem;
    font-size: larger;
}

/* Webcam styles */

.camera-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 20px;
    border: 1rem solid black;
    border-radius: 8px;
    overflow: hidden;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
}

#face-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

#face-outline {
    transform: scaleY(-1);
    width: 240px; 
    height: 240px; 
    border: 4px dashed rgba(255, 255, 255, 0.8); 
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; 
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.3); 
    overflow: hidden;
}

/* Button styles */
#capture-btn {
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    margin-bottom: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#warning {
    margin-bottom: 1.5rem;
    text-align: center;
}

#capture-btn:hover {
    background-color: #45a049;
}

#capture-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#result-container {
    display: none;
    height: auto;
    width: auto;
    max-width: 95vw;
}

#captured-image {
    width: 320px;
    height: 320px;
    margin-bottom: 20px;
    border: 1rem solid black;
    border-radius: 8px;
    overflow: hidden;
    transform: scaleX(-1);
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#retry-btn {
    background-color: #f44336;
    color: white;
}

#send-btn {
    background-color: #2196F3;
    color: white;
}

#no-results-btn {
    background-color: #f44336;
    color: white;
}

.status-message {
    margin-top: 15px;
    color: #333;
    font-weight: bold;
}

#no-results {
    background-color: #e6b1c7;
    z-index: 999;
    height: 30%;
    width: 30%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    align-items: center;
    display: none;
    flex-direction: column;
    text-align: center;
}

#blur {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 998;
}

/* Responsive styles */

@media screen and (width <= 640px) {
    #webcam {
        height: 40vh;
        width: 80vw;
        background-color: white;
        border: 1rem solid black;
    }

    #no-results-btn {
        width: 80%;
    }
}

@media screen and (width <= 768px) {
    #webcam {
        height: 60vh;
        width: 30vw;
        background-color: white;
        border: 1rem solid black;
    }

    #no-results > h1 {
        font-size: 20px;
    }
}

@media screen and (width <= 1024px) {
    #webcam {
        height: 60vh;
        width: 50vw;
        background-color: white;
        border: 1rem solid black;
    }
}
