/* Fonts */
@font-face {
    font-family: BasicFontBold;
    src: url("../fonts/Inter-Bold.woff2");
    /* removes font-based render blocking by rendering fallback font first */
    font-display: swap;
}

@font-face {
    font-family: BasicFont;
    src: url("../fonts/Inter-Regular.woff2");
    /* removes font-based render blocking by rendering fallback font first */
    font-display: swap;
}

@font-face {
    font-family: BasicFontMedium;
    src: url("../fonts/Inter-Medium.woff2");
    /* removes font-based render blocking by rendering fallback font first */
    font-display: swap;
}

/* Element Styles */
#navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    display: flex;
    justify-content: center;

    border: var(--border-width) solid black;
    background: white;
    z-index: 1000;
}

section{
    display: flex;
    justify-content: center;
}

h1 {
    padding: 0;
    margin: 0;
}

/* Class Styles */
.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: var(--border-width) solid green;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

.feature-container{
    display: flex;
    justify-content: space-between;
    border: var(--border-width) solid orange;
    width: 100%;
    max-width: 1200px;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 100px;
    padding-bottom: 100px;
    align-items: center;
}

.panel-left{
    border: var(--border-width) solid green;
    display: flex;
    width: 50%;
}

.panel-right{
    border: var(--border-width) solid green;
    width: 50%;
    display: flex;
    justify-content: flex-end; /* pushes content to the right */
}

.text-container{
    max-width: 350px;
}

.picture-container {
    display: flex;
    position: relative;
    border: var(--border-width) solid cyan;
}

.image-back {
    width: 100%;
    border-radius: 25px;
    z-index: 1;
}

.image-front {
    width: 100%;
    border-radius: 25px;
    z-index: 2; /* ensures it sits on top */
    position: absolute;
}

#deep-work-img{
    transform: translate(-30%, 30%);
}

#flowmodoro-img{
    transform: translate(40%, 10%);
}

#stats-img{
    transform: translate(12%, 15%);
}

#section-features{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Specific styles for first feature */
#text-container-time-tracking{
    padding-top: 100px;
}

#time-tracking-feature-picture-container{
    max-width: 350px;
}

/* Specific styles for second feature */
#text-container-notifications{
    padding-top: 50px;
}

#notifications-feature-picture-container{
    max-width: 350px;
}

/* Specific styles for third feature */
#target-hours-feature-picture-container{
    max-width: 500px;
}

/* Specific styles for fourth feature */
#labels-feature-picture-container{
    max-width: 500px;
}

/* Specific styles for fifth feature */
#notes-feature-picture-container{
    max-width: 500px;
}

/* Specific styles for sixth feature */
#stats-feature-picture-container{
    max-width: 600px;
}

#text-container-stats{
    padding-top: 100px;
}

/* Specific styles for seventh feature */
#summary-feature-picture-container{
    max-width: 350px;
}

.container-long{
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* border: 2px solid blue; */
    width: 100%;
    align-items: center;
    background-color: rgb(240, 240, 240);
}

.bold-text-50 {
    font-family: BasicFontBold;
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Feature Titles */
.bold-text-40{
    font-family: BasicFontBold;
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.bold-text-25 {
    font-family: BasicFontBold;
    font-size: 25px;
}

.bold-text-small{
    font-family: BasicFontBold;
}

.light-text-20{
    font-family: BasicFont;
    /* letter-spacing: 0.05em; */
    font-size: 20px;
}

.medium-text-24{
    font-family: BasicFontMedium;
}

.overlap-word {
  display: inline-block;
  transform: translateY(-0.5em);
}

.browser-btn{
    padding: 15px;
    border-radius: 25px;
    color: white;
    background-color: var(--primary-dark);
    cursor: pointer;
    text-decoration: none;
}

/* ID Styles */

#nav-content{
    display: flex;
    justify-content: space-between;
    width: 1200px;
    align-items: center;
    /* left & right margin at 25px */
    margin: 0 25px; 
    border: var(--border-width) solid green;
}

#nav-logo{
    font-family: BasicFontBold;
    font-size: 34px;
    height: 100%;
    display: flex;
    align-items: center;
    border: var(--border-width) solid brown;
}

#nav-selections{
    display: flex;
    align-items: center;
    height: 100%;
    border: var(--border-width) solid brown;
}

#nav-selection-list{
    display: flex;
    gap: 30px;
    list-style: none;
}

#section-hero {
    border: var(--border-width) solid red;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    margin-left: 15px;
    margin-right: 15px;
}

#hero-main{
    text-align: center;
    max-width: 600px;
    margin-top: 25px;
}

#go-to-hyperchill-btn{
    margin-top: 25px;
}

#hero-slideshow-container{
    margin-top: 25px;
    padding: 25px;
}

#hero-slideshow {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 25px;

    position: relative;
    overflow: hidden;

    border: var(--border-width) solid brown;
}

#hero-slideshow picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* object-fit: cover; */
    opacity: 0;
    border-radius: 25px;
    animation: fade 21s infinite;
}

#hero-slideshow picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

/* Make later images on top */
#hero-slideshow picture:nth-child(1) { animation-delay: 0s; z-index: 1; }
#hero-slideshow picture:nth-child(2) { animation-delay: 3s; z-index: 2; }
#hero-slideshow picture:nth-child(3) { animation-delay: 6s; z-index: 3; }
#hero-slideshow picture:nth-child(4) { animation-delay: 9s; z-index: 4; }
#hero-slideshow picture:nth-child(5) { animation-delay: 12s; z-index: 5; }
#hero-slideshow picture:nth-child(6) { animation-delay: 15s; z-index: 6; }
#hero-slideshow picture:nth-child(7) { animation-delay: 18s; z-index: 7; }

#section-quote {
    border: var(--border-width) solid red;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
}

#quote-container{
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1200px;
    padding: 25px;
    align-items: center;
    border: var(--border-width) solid brown;
}

/* Keyframes for crossfade */
@keyframes fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }   /* fade in */
  33%  { opacity: 1; }   /* fully visible while next image fades in */
  38%  { opacity: 0; }   /* instantly fade out after next image reached full opacity */
  100% { opacity: 0; }
}

@media (max-width: 930px) {
    #time-tracking-feature-picture-container{
        max-width: 300px;
    }
    #notifications-feature-picture-container{
        max-width: 260px;
    }
    #stats-feature-picture-container{
        max-width: 350px;
    }
}

@media (max-width: 830px) {
    #time-tracking-feature-picture-container{
        max-width: 250px;
    }
    #notifications-feature-picture-container{
        max-width: 200px;
    }
    #stats-feature-picture-container{
        max-width: 280px;
    }
}

@media (max-width: 730px) {
    .bold-text-40 {
        font-size: 35px;
    }
    #time-tracking-feature-picture-container{
        max-width: 200px;
    }
    #notifications-feature-picture-container{
        max-width: 150px;
    }
    #stats-feature-picture-container{
        max-width: 250px;
    }
}

/* Flex-direction column */
@media (max-width: 700px) {
    .bold-text-40 {
        font-size: 30px;
    }
    .feature-container{
        flex-direction: column;
    }
    #notifications-feature {
        flex-direction: column-reverse;
    }
    #labels-feature {
        flex-direction: column-reverse;
    }
    #stats-feature {
        flex-direction: column-reverse;
    }
    #window-feature {
        flex-direction: column-reverse;
    }
    .panel-left, .panel-right{
        width: 100%;
        justify-content: center;
    }
    #time-tracking-feature-picture-container{
        max-width: 60%;
        margin-left: 50px;
    }
    #text-container-time-tracking{
        padding-top: 0px;
    }
    #notifications-feature-picture-container{
        max-width: 60%;
        margin-right: 100px;
    }
    #text-container-notifications{
        padding-top: 0px;
    }
    #stats-feature-picture-container{
        max-width: 80%;
        margin-right: 50px;
    }
    #text-container-stats{
        padding-top: 0px;
    }
    .text-container{
        margin-bottom: 25px;
    }
}

@media (max-width: 436px) {
    #nav-selection-button{
        display: none;
    }
}

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

#navbar.scrolled {
    background-color: var(--primary-dark);
}

#nav-logo.scrolled{
    color: white;
}

.browser-btn.scrolled{
    background-color: white;
    color: var(--primary-dark);
}