/* --bxyz-sektion: tablet styles (768-1024px) */
@import url('https://rsms.me/inter/inter.css');

a { 
    color: inherit; 
    text-decoration: none;
}

body {
    margin: 0;
    font-family: 'Helvetica', sans-serif;
    color: #353535;
    background: linear-gradient(45deg, #fef8e6, #e6fefb, #d7fbf0, #ece4fb, #fbe4f9);
    animation: backgroundShift 15s infinite;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    position: fixed;
    width: 100%;
    max-width: calc(100% - 20px);
    top: 0;
    z-index: 3000;
    transition: color 0.5s;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #353535;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul li a.white-text {
    color: white !important;
}

.nav-text {
    display: inline-block;
    width: 120px;
    text-align: left;
}

main {
    scroll-behavior: smooth;
}

#feature-text {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    position: relative;
    font-size: clamp(2.5rem, 4.5vw, 40pt);
    line-height: 1.1em;
    font-family: 'Inter', sans-serif;
}

#feature-text .text-container {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

#feature-text p {
    margin: 0;
}

.scroll-arrow {
    width: clamp(35px, 4vw, 50px);
    cursor: pointer;
    position: relative;
    margin-top: 3rem;
    align-self: center;
    transform: rotate(90deg);
    opacity: 1;
}

#video-player {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.video-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.video-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 80vw;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-slide {
    flex: 0 0 auto;
    width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    scroll-snap-align: start;
}

.video {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    cursor: pointer;
}

figcaption {
    font-size: 1.5rem;
    margin: 1rem;
    text-align: center;
}

#info-overlay, #archive-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    color: white;
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.5s;
}

#info-overlay.show, #archive-overlay.show {
    display: block;
    opacity: 1;
}

.overlay-content {
    padding: 2rem;
    font-size: 18pt;
}

.overlay-content article {
    margin-bottom: 2rem;
}

.two-columns {
    display: flex;
    flex-direction: column; /* Adjust for tablet */
}

.two-columns .column {
    flex: 1;
    padding: 1rem;
}

.image-text {
    display: flex;
    flex-direction: column; /* Adjust for tablet */
}

.image-text .column {
    flex: 1;
    padding: 1rem;
}

.image-text img {
    max-width: 100%;
    height: auto;
}

.archive-list {
    list-style: none;
    padding: 0;
    font-size: 20pt;
}

.archive-list li {
    padding: 1rem;
    border-bottom: 1px solid #ffffff;
    cursor: pointer;
    transition: all 0.5s ease;
    flex-direction: column;
    overflow: hidden;
}

.archive-list .video-container {
    display: none;
    width: 100%;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.archive-list .video-container video {
    width: 100%;
    height: auto;
}

.portrait-warning {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    z-index: 9999;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 10px;
}

/* Welcome Screen Styles for Tablet */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #fef8e6, #e6fefb, #d7fbf0, #ece4fb, #fbe4f9);
    background-size: 400% 400%;
    animation: backgroundShift 15s infinite;
    z-index: 9999;
    display: none; /* Hide by default */
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
    cursor: pointer;
    opacity: 0; /* Start with opacity 0 */
}

#welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    color: #353535;
    padding: 2rem;
    max-width: 90%;
}

.welcome-logo-container {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.letter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.letter {
    display: inline-block;
    font-size: 8rem; /* Larger for tablet */
    font-weight: 200; /* Thinner font weight */
    margin: 0 0.05em;
    opacity: 0;
    transform-origin: center;
    font-family: 'ABC Maxi Round Variable Edu', sans-serif; /* Use ABC Maxi font */
}

.welcome-text {
    font-size: 1.8rem;
    font-weight: 200; /* Thinner font weight */
    opacity: 0;
    margin-top: 2rem;
    font-family: 'ABC Maxi Round Variable Edu', sans-serif; /* Use ABC Maxi font */
}

/* Media queries for different tablet sizes */
@media (max-width: 900px) {
    .letter {
        font-size: 7rem;
    }
}

@media (max-width: 800px) {
    .letter {
        font-size: 6rem;
    }
    
    .welcome-text {
        font-size: 1.5rem;
    }
}

/* --bxyz-notis: video controls synliga på tablet */
video {
    cursor: pointer;
}

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

@media only screen and (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
    .portrait-warning {
        display: block;
    }

    #video-player, #mobile-video-grid {
        display: none !important;
    }
}