:root {
    --cherry: #7E0505; 
    --bg-color: #ffffff;
}

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif; 
}

.logo {
    font-family: 'Pinyon Script', cursive; 
    font-size: clamp(3rem, 8vw, 5rem); 
    color: var(--cherry);
    margin: 0;
    line-height: 1;
}

h4 {
    text-align: center;
    max-width: 600px;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

/* Mobile-friendly flexbox */
.photobooth-container-1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 30px;
    max-width: 100%;
}

.live-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    position: relative;
}

#liveVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid var(--cherry);
    border-radius: 20px;
    box-sizing: border-box;
    transform: scaleX(-1);
}

.capture-container {
    border: 5px solid var(--cherry);
    border-radius: 20px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

#finalCanvas {
    max-height: 450px;
    width: auto;
    max-width: 100%;
    transition: filter 0.3s ease;
}

/* --- Frame Selection Layouts --- */
.container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch; 
    margin-top: 40px;
    height: 350px; 
}

.frame {
    background-color:  var(--cherry); /* Default frame gap color */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    display: flex; 
    box-sizing: border-box;
}

.frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(126, 5, 5, 0.3); 
    background-color: black; 
}

.photo-slot {
    background-color: #fff; 
    width: 100%;
    height: 100%;
    flex: 1; 
}

/* Strip 1 */
.frame.strip-1 {
    width: 120px;
    padding: 10px 10px 50px 10px; 
    flex-direction: column;
    gap: 10px; 
}

/* Strip 2 */
.frame.strip-2 {
    width: 120px;
    padding: 0; 
    flex-direction: column;
    gap: 12px; 
}

/* 2x2 Strip*/
.frame.grid {
    width: 240px;
    padding: 10px 10px 50px 10px; 
    display: grid; 
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px; 
}

/* --- Controls & Buttons --- */
.button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ready-btn {
    background-color: white;
    color: var(--cherry);            
    border: 3px solid var(--cherry); 
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px; 
    cursor: pointer;            
    transition: all 0.3s ease;
    text-align: center;
}

.ready-btn:hover {
    background-color: var(--cherry); 
    color: white;    
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(126, 5, 5, 0.2);
}

.return-btn {
    text-decoration: none;
    color: var(--cherry);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.return-btn:hover {
    color: #000;
    transform: translateX(-5px); 
}

/* Dots and Options */
.countdown-timer { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 5rem; font-weight: 800; color: white; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); z-index: 10; display: none; }
.options { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; }
.option-item { display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; }

.dot { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    border: 2px solid #ccc; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.dot.black { background-color: #000; } 
.dot.white { background-color: #fff; } 
.dot.red { background-color: var(--cherry); }

.dot:hover { 
    transform: scale(1.15); 
    box-shadow: 0 0 10px rgba(0,0,0,0.2); 
    border-color: var(--cherry);
}

.action-btn { 
    padding: 10px 20px; 
    border: 2px solid var(--cherry); 
    background: white; 
    color: var(--cherry); 
    border-radius: 10px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.action-btn:hover { 
    background: var(--cherry); 
    color: white; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(126, 5, 5, 0.2);
}