* {
    box-sizing: border-box;
}

h1{
    font-size: 3rem;
    margin: 0.5em 0 0.2em 0;
    letter-spacing: 0.05em;
    color: #d72660;
    text-shadow: 2px 2px 8px #fff7;
    z-index: 1;
}
h2 {
    font-size: 2rem;
    margin: 0 0 1em 0;
    color: #1b998b;
    letter-spacing: 0.03em;
    text-shadow: 1px 1px 6px #fff5;
    z-index: 1;
}
h3 {

    font-size: 1.5rem;
    margin: 0.5em 0 0.2em 0;
    color: black;
    letter-spacing: 0.04em;
    text-shadow: 1px 1px 4px #fff5;
    z-index: 1;
}
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.2rem; }
}
.sf-app {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* <-- was center */
    font-family: 'Montserrat', 'Arial', sans-serif;
    min-height: 100vh;
}

body {
    background: #fcb69f;
    color: #222;
}


.sf-logo {
    position: absolute;
    top: 60px;         /* adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 420px;      /* make it big */
    max-width: 80vw;
    z-index: 0;        /* behind all other content */
    pointer-events: none; /* allow clicks through the logo */
    user-select: none;
}
.sf-logo-inline {
    display: block;
    margin: 2em auto 0 auto;
    width: 80%;
}
.sf-map {
    display: block;
    margin: 1em auto 0 auto;
    width: 90%;
    z-index: 1;
    position: relative;
    border-radius: 1.5em;
    box-shadow: 0 4px 24px #0001;
}

/* Remove the .sf-logo styles and <img> from your HTML */
.sf-nav {
    margin: 2em 0 1em 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.sf-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5em;
    background: rgba(255,255,255,0.7);
    border-radius: 2em;
    box-shadow: 0 2px 12px #0001;
}
@media screen and (min-width: 700px) {
    .sf-nav ul {
        flex-direction: row;
        gap: 0.5em;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
}
.sf-nav li {
    display: flex;
}
.sf-nav a {
    display: block;
    padding: 0.7em 1.3em;
    font-size: 1.1em;
    font-weight: 600;
    color: #d72660;
    text-decoration: none;
    border-radius: 1.5em;
    transition: background 0.2s, color 0.2s;
}
.sf-nav a:hover,
.sf-nav a:focus {
    background: #d72660;
    color: #fff;
    outline: none;
}
.sf-nav .sf-active,
.sf-nav a:focus {
    background: #d72660;
    color: #fff;
    outline: none;
    box-shadow: 0 2px 12px #d7266040;
    transform: scale(1.08);
    transition: 
        background 0.2s, 
        color 0.2s, 
        box-shadow 0.2s, 
        transform 0.2s;
}
@media (max-width: 700px) {
    .sf-nav ul {
        flex-direction: column;
        gap: 0.5em;
        padding: 0.5em 0;
    }
    .sf-nav a {
        font-size: 1em;
        padding: 0.7em 1em;
    }
}
.sf-subnav {
    margin: 0 0 0 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.sf-subnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.1em;
    border-radius: 2em;
    flex-direction: column;
}
.sf-subnav li {
    display: flex;
}
.sf-subnav a {
    display: block;
    padding: 0.7em 1.3em;
    font-size: 0.8em;
    font-weight: 600;
    color: #d72660;
    text-decoration: none;
    border-radius: 1.5em;
    transition: background 0.2s, color 0.2s;
}
.sf-subnav a:hover,
.sf-subnav a:focus {
    background: #d72660;
    color: #fff;
    outline: none;
}
@media (max-width: 700px) {
    .sf-subnav ul {
        gap: 0.5em;
        padding: 0.5em 0;
    }
    .sf-subnav a {
        font-size: 1em;
        padding: 0.7em 1em;
    }
}
.sf-content h4:target {
    background: #fff0f7;
    color: #d72660;
    border-radius: 0.7em;
    box-shadow: 0 4px 24px #d7266040, 0 0 0 4px #d7266022;
    border: 2px solid #d72660;
    transition: 
        background 0.2s, 
        color 0.2s, 
        box-shadow 0.2s, 
        border 0.2s;
    padding: 0.4em 0.8em;
    position: relative;
    z-index: 2;
    animation: highlight-pop 0.4s cubic-bezier(.4,2,.6,1) 1;
}

@keyframes highlight-pop {
    0% {
        transform: scale(1.08);
        box-shadow: 0 0 0 0 #d7266040;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 24px #d7266040, 0 0 0 4px #d7266022;
    }
}
.sf-music-program {
    font-size: 20px;
    z-index: 1;
    position: relative;
    width: 100%; /* Add this */
}

.sf-scene {
    display: contents;
    font-weight: bold;
}
.sf-activity {
    color: #fff;
    background: linear-gradient(90deg, #d72660 40%, #fcb69f 100%);
    padding: 0.1em 0.5em;
    border-radius: 0.4em;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px #d7266033;
    text-shadow: 0 1px 4px #d7266044;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Merriweather', 'Times New Roman', Times, serif;
}

.sf-search-hit {
    font-weight: bold;
}

.sf-content {
    margin-top: 2em;
    padding: 2em 1.5em;
    background: rgba(255,255,255,0.85);
    border-radius: 1.5em;
    box-shadow: 0 4px 24px #0001;
    max-width: 600px;
    min-height: 200px;
    font-size: 1.15em;
    color: #222;
    transition: box-shadow 0.2s;
    z-index: 1;
    position: relative;
    animation: fadein 0.5s;
}

sf-program, sf-merch, sf-map, sf-tjanser {
    display: contents;
}

.sf-content-special {
    margin-top: 2em;
    min-height: 200px;
    font-size: 1.15em;
    transition: box-shadow 0.2s;
    z-index: 1;
    position: relative;
    animation: fadein 0.5s;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(20px);}
    to   { opacity: 1; transform: translateY(0);}
}
.sf-content h3 {
    margin-top: 0;
    color: #d72660;
    font-size: 1.5em;
    letter-spacing: 0.02em;
}
.sf-content p {
    margin-bottom: 0;
    line-height: 1.6;
}
html, body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
    position: relative;
}
.sf-program-table {
    width: 90%;
    width: 700px;
    margin: 2em auto 0 auto;
    border-collapse: collapse;
    background: #fff;
    font-size: 1em;
    border: 3px solid #d72660; /* Stylish, sharp border */
    border-radius: 0;           /* No rounded corners */
    box-shadow: 0 4px 24px #d7266015;
}
.sf-program-table th, .sf-program-table td {
    border: 1px solid #e0e0e0;
    padding: 0.5em 1em;
    text-align: left;
}
.sf-program-table th {
    background: #fcb69f;
    color: #d72660;
    border: 1px solid #d72660 !important;
}

.sf-program-table tr:first-child th {
    border-top: none;
}
.sf-program-table tr:nth-child(even) td:not(.sf-program-day):not(.sf-activity-td):not(.sf-task-td) {
    background: #ededed;
}
.sf-program-table .sf-program-time {
    text-align: center;
}
.sf-program-table .sf-title {
    text-align: center;
}
.sf-program-table tr > .sf-program-day:first-child {
    border-top: 4px solid #d72660;
    border-right: 2px solid #d72660;
}
.sf-program-table tr > .sf-program-day:first-child ~ td {
    border-top: 4px solid #d72660;
}

.sf-program-table tr > .sf-activity-td:first-child {
    border-top: 2px solid #d72660;

}
.sf-program-table tr > .sf-activity-td:first-child ~ td {
    border-top: 2px solid #d72660;
}
@media (max-width: 700px) {
    .sf-program-table {
        width: 100vw;
        max-width: 100vw;
        overflow-x: auto;
        font-size: 0.95em;
        /*margin: 1em 0 0 0;*/
        /* Optional: for better scrolling on iOS */
        -webkit-overflow-scrolling: touch;
    }
    .sf-program-table th, .sf-program-table td {
        padding: 0.4em 0.5em;
        font-size: 0.95em;
        word-break: break-word;
    }
    .sf-program-table .sf-program-day {
        writing-mode: vertical-rl;
        text-align: center;
        white-space: nowrap;
        min-width: 32px;
        max-width: 32px;
        padding: 0.2em 0.1em;
        font-size: 0.9em;
    }
}



.search-input {
    flex: 1;
    font-size: 1.5em;
    border: 2px solid #d72660;
    border-radius: 0.5em;
    outline: none;
    box-shadow: 0 2px 12px #d7266040;
    transition: border 0.2s, box-shadow 0.2s;
    width: 80%;
}

.search-input:focus {
    border-color: #fcb69f;
    box-shadow: 0 4px 24px #d7266040;
}

.sf-shrink-td {
    white-space: nowrap;
}



input[type="search"]::-webkit-search-cancel-button {

  /* Remove default */
  -webkit-appearance: none;

  /* Now your own custom styles */
   height: 14px;
   width: 14px;
   display: block;
   background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC);
  /* setup all the background tweaks for our custom icon */
  background-repeat: no-repeat;

  /* icon size */
  background-size: 14px;

}

@keyframes popup-in {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
.sf_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
    max-width: 90vw;
    max-height: 90vh;           /* Prevent popup from exceeding viewport height */
    overflow-y: auto;           /* Enable vertical scrolling if content is too tall */
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 32px #d7266040, 0 0 0 4px #d7266022;
    border: 3px solid #d72660;
    z-index: 1000;
    border-radius: 1em;
    padding: 2em 1.5em 1.5em 1.5em;
    text-align: left;
    animation: fadein 0.3s;
    animation: popup-in 0.35s cubic-bezier(.4,2,.6,1);
}
.close-btn {
    position: absolute;
    top: 0.7em;
    right: 1em;
    background: none;
    border: none;
    font-size: 2em;
    color: #d72660;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 1001;
    transition: color 0.2s;
}
.close-btn:hover,
.close-btn:focus {
    color: #1b998b;
    outline: none;
}


/* Add to your CSS file */
.sf-content button {
    background: linear-gradient(90deg, #d72660 0%, #1b998b 100%);
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 0.5em;
    padding: 0.6em 2em;
    margin-top: 1em;
    cursor: pointer;
    box-shadow: 0 2px 8px #d7266040;
    transition: background 0.2s, transform 0.1s;
}
.sf-content button:hover,
.sf-content button:focus {
    background: linear-gradient(90deg, #1b998b 0%, #d72660 100%);
    transform: scale(1.04);
    outline: none;
}

.sf-content input[type="file"] {
    width: 100%;
    max-width: 350px;
    min-width: 0;
    box-sizing: border-box;
    margin: 1em 0 2em 0;
    padding: 0.5em;
    font-size: 1.1em;
    border: 2px solid #d72660;
    border-radius: 0.5em;
    background: #fff;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px #d7266020;
    transition: border-color 0.2s;
    display: block;
}

@media (max-width: 500px) {
    .sf-content input[type="file"] {
        max-width: 98vw;
        font-size: 1em;
    }
}
.sf-content input[type="file"]:hover,
.sf-content input[type="file"]:focus {
    border-color: #1b998b;
    outline: none;
}

.sf-feedback-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
}

.sf-feedback-list li {
    background: #fff;
    border: 2px solid #d72660;
    border-radius: 0.7em;
    margin: 1em 0;
    padding: 1em 1.2em;
    box-shadow: 0 2px 8px #d7266020;
    font-size: 1.1em;
    color: #222;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.sf-feedback-list li strong {
    color: #d72660;
    font-weight: bold;
}

.sf-feedback-list li:hover {
    border-color: #1b998b;
    box-shadow: 0 4px 16px #1b998b20;
}
.sf-content textarea {
    width: 98%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0.5em 0 1.5em 0;
    padding: 1em;
    font-size: 1.1em;
    border: 2px solid #d72660;
    border-radius: 0.5em;
    background: #fff;
    color: #222;
    resize: vertical;
    box-shadow: 0 2px 8px #d7266020;
    transition: border-color 0.2s;
}

.sf-content textarea:focus {
    border-color: #1b998b;
    outline: none;
}

.sf-content input[type="text"] {
    width: 98%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0.5em 0 1em 0;
    padding: 0.8em 1em;
    font-size: 1.1em;
    border: 2px solid #d72660;
    border-radius: 0.5em;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px #d7266020;
    transition: border-color 0.2s;
}

.sf-content input[type="text"]:focus {
    border-color: #1b998b;
    outline: none;
}

.sf-content label,
.sf-content .checkbox-label {
    display: inline-flex;
    align-items: center;
    font-size: 1.1em;
    margin: 0.5em 0 1em 0;
    gap: 0.5em;
}

.sf-content input[type="checkbox"] {
    accent-color: #d72660;
    width: 1.3em;
    height: 1.3em;
    border-radius: 0.3em;
    margin-right: 0.4em;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid #d72660;
    transition: border-color 0.2s;
}
.sf-content input[type="checkbox"]:focus {
    outline: 2px solid #1b998b;
    outline-offset: 2px;
}

.sf-spinner {
    display: inline-block;
    width: 2.5em;
    border: 4px solid #d72660;
    border-top: 4px solid #1b998b;
    border-radius: 50%;
    animation: sf-spin 0.8s linear infinite;
    vertical-align: middle;
    margin: 0.5em 0;
}
@keyframes sf-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.sf-landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    font-family: 'Montserrat', 'Arial', sans-serif;
    text-align: center;
    background: rgba(0,0,0,0.01);
    overflow-y: scroll;
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
}

.sf-landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 1em 3em 1em;
}

/* Titles hidden behind curtains - positioned absolutely so they don't affect layout */
.sf-landing-title,
.sf-landing-subtitle,
.sf-landing-date {
    position: absolute;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    z-index: 1000;
}

.sf-landing-title {
    top: 15%;
}

.sf-landing-subtitle {
    top: 25%;
    color: #fcb69f;
}

.sf-landing-date {
    top: 33%;
}

/* Curtains - start closed, behind landing content but above main site */
.sf-curtain {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100vh;
    background: linear-gradient(180deg, #8B0000 0%, #5C0000 50%, #3D0000 100%);
    z-index: 1001;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
    pointer-events: none;
}

.sf-curtain::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(0,0,0,0.1) 20px,
        rgba(0,0,0,0.1) 40px
    );
}

.sf-curtain-left {
    left: 0;
    transform: translateX(0);
    border-right: 4px solid #4a0000;
}

.sf-curtain-right {
    right: 0;
    transform: translateX(0);
    border-left: 4px solid #4a0000;
}

/* Curtains opening animation - curtains slide away to reveal site */
.sf-landing.curtains-opening .sf-curtain-left {
    animation: curtain-open-left 1s forwards;
}

.sf-landing.curtains-opening .sf-curtain-right {
    animation: curtain-open-right 1s forwards;
}

.sf-landing.curtains-opening .sf-landing-content {
    animation: fade-out 0.5s forwards;
}

@keyframes curtain-open-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes curtain-open-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Video and button go in front of curtains */
.sf-video-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 1em 0;
    cursor: pointer;
    z-index: 1002;
}

.sf-landing-video {
    width: 100%;
    border-radius: 1.5em;
    box-shadow: 0 4px 24px #d7266040;
    z-index: 1;
}

.sf-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(215, 38, 96, 0.95);
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    border: 4px solid #fff;
    border-radius: 2em;
    padding: 0.8em 1.8em;
    cursor: pointer;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    transition: transform 0.2s, background 0.2s;
    font-family: 'Montserrat', 'Arial', sans-serif;
    z-index: 10;
    animation: pulse-play 2s infinite;
}

.sf-play-btn:hover,
.sf-play-btn:focus {
    transform: translate(-50%, -50%) scale(1.1);
    background: #1b998b;
    outline: none;
}

@keyframes pulse-play {
    0%, 100% { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 4px 40px rgba(215, 38, 96, 0.9), 0 0 0 12px rgba(215, 38, 96, 0.3); }
}

.sf-enter-btn {
    background: linear-gradient(90deg, #d72660 0%, #1b998b 100%);
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    border-radius: 2em;
    padding: 0.8em 2.5em;
    margin-top: 1em;
    cursor: pointer;
    box-shadow: 0 4px 24px #d7266040;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', 'Arial', sans-serif;
    position: relative;
    z-index: 1002;
}

.sf-enter-btn:hover,
.sf-enter-btn:focus {
    transform: scale(1.05);
    box-shadow: 0 6px 32px #d7266060;
    outline: none;
}