:root {
    --primary: #5480AE;
    --secondary: #3E0101;
    --bg-color: #EDE6DC;
    --bs-primary: #5480AE;
    --bs-primary-rgb: 84, 128, 174;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family);
}

.card {
    border-radius: 1.25rem;
    overflow: hidden;
}

.btn {
    border-radius: 50rem;
}

.btn-lg {
    border-radius: 50rem;
}

.btn-sm {
    border-radius: 50rem;
}

.form-control {
    border-radius: 50rem;
}

.form-select {
    border-radius: 50rem;
}

.input-group > .form-control {
    border-radius: 50rem;
}

.navbar {
    background-color: #fff !important;
}

.navbar-brand {
    font-size: 1.6rem;
}

.navbar-nav .nav-link {
    transition: color 0.2s;
    font-size: 1.15rem;
}

.bg-cream {
    background-color: var(--bg-color) !important;
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    font-family: var(--font-family);
}

footer p {
    font-size: 1.15rem;
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.badge {
    border-radius: 50rem;
}



section.rounded-section {
    border-radius: 2rem;
}

img.rounded {
    border-radius: 1.25rem !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

.btn-outline-secondary {
    --bs-btn-color: var(--secondary);
    --bs-btn-border-color: var(--secondary);
    --bs-btn-hover-bg: var(--secondary);
    --bs-btn-hover-border-color: var(--secondary);
    --bs-btn-active-bg: var(--secondary);
    --bs-btn-active-border-color: var(--secondary);
    --bs-btn-hover-color: #fff;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: #4070a0;
    --bs-btn-hover-border-color: #4070a0;
    --bs-btn-active-bg: #4070a0;
    --bs-btn-active-border-color: #4070a0;
}

.camera-viewfinder {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-viewfinder video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
}

.capture-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 4px solid #fff;
    transition: transform 0.15s;
}

.capture-btn:active {
    transform: scale(0.9);
}

.capture-btn:disabled {
    opacity: 0.5;
    transform: none;
}

.remaining-count .badge {
    border-radius: 50rem;
}

.nav-tabs .nav-link {
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--secondary);
    border-color: var(--secondary) var(--secondary) #fff;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: transparent;
}

.nav-pills .nav-link.active {
    background-color: var(--secondary);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--secondary) !important;
}

.page-item.active .page-link {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.page-link {
    color: var(--primary);
}

.page-link:hover {
    color: var(--secondary);
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 400px;
    overflow: hidden;
}

.gallery-slideshow-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-slideshow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: 3;
}

.gallery-slideshow-wave {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 4;
    pointer-events: none;
}

.gallery-slideshow-wave svg {
    display: block;
    width: 100%;
    height: 80px;
    transform: scaleY(-1);
    transform-origin: center;
}

.gallery-slideshow-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    color: white;
    text-align: center;
    padding: 2rem;
}


