html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom styles for Elizabeth Musa's violin website */
.hero-section {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 50%, #3D566E 100%);
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 600 !important;
    font-size: 1.5rem;
}

.violin-illustration {
    text-align: center;
    padding: 2rem;
}

.violin-silhouette {
    font-size: 150px;
    color: #8b4513;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: gentle-sway 3s ease-in-out infinite;
}

@keyframes gentle-sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 600 !important;
    font-size: 1.5rem;
}

.card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: #6f4e37;
    border-color: #6f4e37;
}

.btn-primary:hover {
    background-color: #5a3d2b;
    border-color: #5a3d2b;
}

.btn-outline-primary {
    color: #6f4e37;
    border-color: #6f4e37;
}

.btn-outline-primary:hover {
    background-color: #6f4e37;
    border-color: #6f4e37;
}

.text-muted {
    color: #8b4513 !important;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #f8f9fa;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Musical note decorations */
.hero-section::before {
    content: '\1F3B5';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    animation: floatNote1 3s ease-in-out infinite;
    z-index: 10;
}

.hero-section::after {
    content: '🎶';
    position: absolute;
    top: 60px;
    right: 60px;
    font-size: 28px;
    animation: floatNote2 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes floatNote1 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-15px) rotate(10deg);
        opacity: 1;
    }
}

@keyframes floatNote2 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(-10deg);
        opacity: 1;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Repertoire section styling */
#repertoire .card-header {
    font-weight: 600;
}

#repertoire .card-body ul li {
    padding: 2px 0;
    font-size: 0.95rem;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

/* Media page styling */
.video-container {
    margin-bottom: 1rem;
    width: 100%;
}

.video-container iframe {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* Force equal video container sizes */
.video-container .ratio {
    width: 100%;
}

/* Clean CSS Grid Layout for video grid */
.video-grid-container,
.media-video-grid .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.video-item,
.media-video-grid .row > div {
    width: 100%;
    margin-bottom: 2rem;
    padding: 0 !important;
    max-width: none !important;
    flex: none !important;
    position: static !important;
}

/* Mobile layout - single column */
@media (max-width: 767.98px) {
    .video-grid-container,
    .media-video-grid .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Ensure video containers are consistent */
.video-item .video-container,
.media-video-grid .video-container {
    width: 100%;
    display: block;
}

.video-item .video-container .ratio,
.media-video-grid .video-container .ratio {
    width: 100%;
    height: auto;
}

.placeholder-video {
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    min-height: 200px;
    transition: border-color 0.3s ease;
}

.placeholder-video:hover {
    border-color: #adb5bd;
}

.video-info h5, .video-info h6 {
    color: #6f4e37;
    margin-bottom: 0.5rem;
}

.youtube-icon, .vimeo-icon {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.placeholder-video:hover .youtube-icon,
.placeholder-video:hover .vimeo-icon {
    opacity: 1;
}

/* Snowfall animation */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowfall;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    color: #e0f2ff;
    font-size: 1.5em;
    opacity: 0.9;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8), 
                 0 0 6px rgba(200, 230, 255, 0.6),
                 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes snowfall {
    0% {
        transform: translateY(0vh) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Create multiple snowflakes with different positions, speeds, and sizes */
.snowflake:nth-of-type(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-of-type(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; font-size: 1.8em; }
.snowflake:nth-of-type(3) { left: 15%; animation-duration: 9s; animation-delay: 2s; font-size: 1em; }
.snowflake:nth-of-type(4) { left: 20%; animation-duration: 11s; animation-delay: 0.5s; font-size: 1.6em; }
.snowflake:nth-of-type(5) { left: 25%; animation-duration: 10s; animation-delay: 1.5s; font-size: 1.3em; }
.snowflake:nth-of-type(6) { left: 30%; animation-duration: 13s; animation-delay: 2.5s; font-size: 2em; }
.snowflake:nth-of-type(7) { left: 35%; animation-duration: 8.5s; animation-delay: 0.8s; font-size: 0.9em; }
.snowflake:nth-of-type(8) { left: 40%; animation-duration: 11.5s; animation-delay: 1.8s; font-size: 1.4em; }
.snowflake:nth-of-type(9) { left: 45%; animation-duration: 9.5s; animation-delay: 2.2s; font-size: 1.1em; }
.snowflake:nth-of-type(10) { left: 50%; animation-duration: 10.5s; animation-delay: 0.3s; font-size: 1.7em; }
.snowflake:nth-of-type(11) { left: 55%; animation-duration: 12.5s; animation-delay: 1.3s; font-size: 1.5em; }
.snowflake:nth-of-type(12) { left: 60%; animation-duration: 8.8s; animation-delay: 2.8s; font-size: 0.8em; }
.snowflake:nth-of-type(13) { left: 65%; animation-duration: 11.2s; animation-delay: 0.6s; font-size: 1.3em; }
.snowflake:nth-of-type(14) { left: 70%; animation-duration: 9.8s; animation-delay: 1.6s; font-size: 1.9em; }
.snowflake:nth-of-type(15) { left: 75%; animation-duration: 13.5s; animation-delay: 2.6s; font-size: 1.6em; }
.snowflake:nth-of-type(16) { left: 80%; animation-duration: 10.2s; animation-delay: 0.9s; font-size: 1.2em; }
.snowflake:nth-of-type(17) { left: 85%; animation-duration: 11.8s; animation-delay: 1.9s; font-size: 1.4em; }
.snowflake:nth-of-type(18) { left: 90%; animation-duration: 9.2s; animation-delay: 2.9s; font-size: 1em; }
.snowflake:nth-of-type(19) { left: 95%; animation-duration: 12.2s; animation-delay: 0.4s; font-size: 1.8em; }
.snowflake:nth-of-type(20) { left: 3%; animation-duration: 10.8s; animation-delay: 1.4s; font-size: 1.5em; }

/* Animated music notes */
.music-notes-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}

.music-note {
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    animation: float-note 4s ease-in-out infinite;
}

.music-note:nth-child(1) {
    left: 20%;
    top: 10%;
    animation-delay: 0s;
}

.music-note:nth-child(2) {
    left: 60%;
    top: 20%;
    animation-delay: 0.8s;
    font-size: 2.5rem;
}

.music-note:nth-child(3) {
    left: 35%;
    top: 50%;
    animation-delay: 1.6s;
    font-size: 3.5rem;
}

.music-note:nth-child(4) {
    left: 70%;
    top: 60%;
    animation-delay: 2.4s;
}

.music-note:nth-child(5) {
    left: 15%;
    top: 75%;
    animation-delay: 3.2s;
    font-size: 2.8rem;
}

.music-note:nth-child(6) {
    left: 55%;
    top: 85%;
    animation-delay: 4s;
    font-size: 3.2rem;
}

@keyframes float-note {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.8);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) rotate(15deg) scale(1.2);
    }
}
