@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;700&family=Tangerine:wght@400;700&family=Cormorant+Garamond:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

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

body {
    background-color: #683B35;
    font-family: 'Cormorant Garamond', serif;
    color: #FFFFFF;
    font-size: 1.125rem;
}

h1 {
    font-family: 'Tangerine', cursive;
    font-weight: 700;
}

h2, h3 {
    font-family: 'Newsreader', serif;
    font-weight: 700;
    font-size: 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 1.875rem 3.75rem;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
}

.nav-links.left {
    display: flex;
    gap: 5rem;
    font-family: 'Newsreader', serif;
    font-size: 1rem;
    text-transform: lowercase;
    align-items: center;
}

.nav-links.left li:hover {
    text-decoration: underline;
}

.site-name {
    position: absolute;
    top: 1.875rem; 
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Newsreader', serif;
    font-weight: 700;
    font-size: 2rem;
}

.nav-links.right {
    display: flex;
}

.submit-button {
    font-family: 'Newsreader', serif;
    font-size: 1rem;
    background-color: #FFFFFF;
    color: #356268;
    padding: 0.625rem 2.5rem;
    border-radius: 2.5rem;
    text-transform: lowercase;
    text-align: center;
}

.submit-button:hover {
    background-color: transparent;
    color: #FFFFFF;
    border: 0.0625rem solid #FFFFFF;
}

.hero {
    position: relative;
    height: 80vh;
    background: url(/static/images/hero-image.webp);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
    clip-path: inset(0);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: urL(/static/images/grain-overlay.svg) no-repeat center center;
    background-size: cover;
    pointer-events: none;
}

.cta-button {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    border: 0.0625rem solid #FFFFFF;
    border-radius: 2.5rem;
    text-align: center;
    padding: 1.25rem 5rem;
    z-index: 10;
    position: relative;
}

.home-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3.75rem;
    position: relative;
    background-image: url(/static/images/clouds.svg);
}

.home-page-img {
    max-width: none;
    width: 100%;
}

.home-page-description {
    flex: 1;
    max-width: 25vw;
    text-align: left;
    margin-right: 10%;
}

.home-page-description h2 {
    padding: 1.25rem 0rem;
    font-size: 1.75rem;
}

.try-now-button {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    border: 0.0625rem solid #FFFFFF;
    border-radius: 2.5rem;
    text-align: center;
    padding: 0.625rem 3.75rem;
    position: relative;
    margin-top: 3.75rem;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.menu-icon {
    width: 1.875rem;
    height: 1.875rem;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #356268;
    color: #FFFFFF;
    z-index: 20;
    flex-direction: column;
}

.menu-overlay.active {
    display: flex;
}

.menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    cursor: pointer;
}

.close-icon {
    width: 1.875rem;
    height: 1.875rem;
}

.menu-links {
    list-style: none;
    text-align: left;
    padding-left: 1.875rem;
}

.menu-links li {
    margin: 3.125rem 0;
}

.menu-links li a {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    text-transform: lowercase;
    text-decoration: none;
}

/* App Page */
.site-name-app {
    position: absolute;
    top: 1.875rem; 
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Newsreader', serif;
    font-weight: 700;
    font-size: 2rem;
    z-index: 10; 
}

/* Wrapper for Full-Screen Effect */
#tv-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: -3;
    pointer-events: none;
    animation: flicker 0.15s infinite;
    background-image: url('/static/images/retro-tv.svg');
    background-position: center;
    background-size: cover;
}

@keyframes flicker {
    0%, 20%, 40%, 60%, 80%, 100% {
        opacity: 1;
    }
    10%, 30%, 50%, 70%, 90% {
        opacity: 0.8;
    }
}

#page-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden; 
}

/* Background Video Styling */
#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2; 
}

/* Grain Overlay */
#page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/grain-overlay.svg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Weather Container */
#weather-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    height: 100vh;
    flex-wrap: wrap;
}

/* Error Message */
#error-message {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: red;
    margin-top: 10px;
}

/* Weather Block Styling */
.weather-block {
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.weather-time {
    margin-bottom: 5px; 
    text-align: center;
    font-family: 'Newsreader', serif;
    font-size: 1rem;
    text-transform: lowercase;
}

.weather-row {
    padding: 40px 30px;
    border: 1px solid #FFFFFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    align-items: center;
    font-size: 2rem;
    font-family: 'Newsreader', serif;
    font-weight: 400;
}

.weather-icon {
    width: 50px;
    height: 50px;
}

/* Video Container Styling */
#video-container {
    position: absolute;
    top: 1.875rem; 
    left: 30px;    
    z-index: 10;
    font-family: 'Cormorant Garamond', serif;
}

.video-episode {
    font-family: 'Cormorant Garamond', serif;
}

.video-show {
    font-size: 25px;
}

/* Search Box Styling */
#search-box {
    position: absolute;
    top: 1.875rem; 
    right: 30px;   
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 30vw; 
    cursor: text;
}

#location {
    cursor: pointer;
    display: inline-block;
    font-size: 25px;
    padding: 5px 0px;
    text-align: right;
}

#location:hover {
    border: 1px solid #ccc; 
}

#location[contenteditable="true"] {
    border: 1px solid #ccc; 
    outline: none;
}

/* Suggestions */
#suggestions {
    display: none; 
    background: #356268;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 1000;
}

.suggestion-item {
    padding: 5px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #eee;
}

/* Sneak Peek */
#sneak-peek {
    font-family: 'Newsreader', serif; 
    font-size: 24px; 
    text-align: center;
    line-height: 1.5;
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px;
}

#sneak-peek img {
    margin-right: 10px;
    margin-bottom: -10px;
    height: 40px; 
    width: auto;
}

#unmute-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

#unmute-button img {
    width: 60px;
    height: 60px;
    transition: transform 0.2s ease-in-out;
}

#unmute-button:hover img {
    transform: scale(1.1);
}

/* Content Overlay */
#content {
    position: relative;
    z-index: 1;
}


/* Contact Page Specific Styles */
.contact-page {
    margin: 0;
    padding: 0;
    background-color: #356268;
    background-image: url('/static/images/clouds-blue.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 65%;
    color: #333;
    font-family: 'Cormorant Garamond', serif; 
}

.contact-page header {
    width: 100%;
    text-align: center;
    background-color: transparent;
    padding: 20px 0;
}

.contact-page .site-name {
    font-family: 'Newsreader', serif;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    margin: 0;
}

.contact-page .thank-you-message {
    max-width: 600px;
    margin: 60px auto 20px; 
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-page .thank-you-message a {
    text-decoration: none;
    color: #356268;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-page .thank-you-message a:hover {
    text-decoration: none;
    color: #683B35;
    font-weight: bold;
    transition: color 0.3s ease;
}


/* Submit Page Specific Styles */
.submit-page {
    margin: 0;
    padding: 0;
    background-color: #356268;
    background-image: url('/static/images/clouds-blue.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 65%;
    color: #333;
    font-family: 'Cormorant Garamond', serif;
}

.submit-page header {
    width: 100%;
    text-align: center;
    background-color: transparent;
    padding: 20px 0;
}

.submit-page .site-name {
    font-family: 'Newsreader', serif;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    margin: 0;
}

.submit-page .thank-you-message {
    max-width: 600px;
    margin: 60px auto 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.submit-page form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submit-page form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.submit-page form input {
    font-family: 'Cormorant Garamond', serif;
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.submit-page form input:focus {
    outline: none;
    border-color: #683B35;
}

.submit-page form button {
    width: 100%;
    padding: 15px;
    background-color: #683B35;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
}

.submit-page form button:hover {
    background-color: #356268;
}

.submit-page .footer {
    color: white;
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    font-size: 18px;
    max-width: 600px;
}

.submit-page .footer a {
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.submit-page .footer a:hover {
    text-decoration: underline;
}


/* Responsive Media Queries */
@media screen and (min-width: 768px) {
    .home-page {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.875rem;
    }

    .home-page-img {
        max-width: 60vw;
    }

    .home-page-description {
        max-width: 30vw;
        margin-right: 0.3125rem;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        align-items: center;
        padding: 0.9375rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links.left,
    .nav-links.right {
        display: none;
    }

    .site-name {
        font-size: 1.75rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero {
        padding: 0.625rem;
    }

    .cta-button {
        font-size: 1.25rem;
        padding: 0.625rem 2.5rem;
    }

    .home-page {
        flex-direction: column;
        padding: 1.875rem;
        background-position: center;
    }

    .home-page-img {
        max-width: 100%;
        margin: 0 auto 1.25rem;
    }

    .home-page-description {
        max-width: 100%;
        text-align: left;
    }

    .home-page-description h2 {
        font-size: 1.75rem;
    }

    .try-now-button {
        font-size: 1rem;
        padding: 0.625rem 2.5rem;
    }
    
    #video {
        object-fit: contain; 
        height: auto; 
        max-height: 100%; 
        width: 100%;
        position: absolute;
        top: 50%;
        transform: translateY(-50%); 
        background-color: black;
    }

    #page-wrapper {
        overflow: hidden; 
        position: relative;
    }

    #tv-background {
        background-image: none;
        background-size: cover;
        animation: none;
    }

    .video-show {
        font-size: 24px;
        text-align: left;
    }

    .video-episode {
        font-size: 18px;
        text-align: left;
    }

    .weather-row {
        padding: 20px 15px;
        font-size: 1.5rem;
    }
  
    .weather-icon {
        width: 40px;
        height: 40px;
    }

    #unmute-button img {
        width: 50px;
        height: 50px;
    }

    #search-box {
        position: absolute;
        right: auto;
        left: 30px;
        top: 90px;
        width: 50vw; 
    }
    
    #location {
        text-align: left;
        font-size: 24px;
    }

    .suggestion-item {
        font-size: 24px;
    }

    #video-container {
        position: absolute;
        left: 30px;
        right: auto;
        top: 30px;
        font-family: 'Cormorant Garamond', serif;
    }

    .site-name-app {
        position: absolute;
        right: 0px; 
        left: auto; 
        transform: none; 
        padding: 0px 30px;
        font-size: 1.75rem;
    }

    #unmute-button {
        position: absolute;
        bottom: calc(20px + env(safe-area-inset-bottom));      
    }
}

@media (max-width: 480px) {
    
    .navbar {
        align-items: center;
        padding: 0.9375rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links.left,
    .nav-links.right {
        display: none;
    }

    .site-name {
        font-size: 1.25rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.5rem 1.875rem;
    }

    .home-page {
        padding: 1.25rem;
    }

    .home-page-description h2 {
        font-size: 1.25rem;
    }

    .home-page-description p {
        font-size: 0.875rem;
    }

    .try-now-button {
        padding: 0.5rem 1.875rem;
        font-size: 0.875rem;
    }

    .site-name-app {
        font-size: 1.25rem
    }

    .video-show {
        font-size: 1.1rem;
    }

    .video-episode {
        font-size: 1rem;
    }

    #location {
        font-size: 1.1rem;
    }

    .suggestion-item {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 425px) {
    #location {
        font-size: 16px;
        padding: 3px 0px;
    }

    #suggestions {
        padding: 3px 0px;
    }

    .suggestion-item {
        font-size: 16px;
    }

    .video-show {
        font-size: 16px;
    }

    .video-episode {
        font-size: 14px;
    }

    .weather-row {
        padding: 10px 8px;
        font-size: 1rem;  /* Smaller text */
        gap: 15px;
    }
    .weather-icon {
        width: 28px;
        height: 28px;
    }
    .weather-time {
        font-size: 0.875rem;
        margin-bottom: 3px;
    }

    .site-name-app {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 375px) {
    .video-show {
        font-size: 14px;
    }

    .video-episode {
        font-size: 12px;
    }

    .suggestion-item {
        font-size: 14px;
    }

    #location {
        font-size: 14px;
    }

    .weather-row {
        padding: 15px 15px;
    }

    #sneak-peek {
        font-size: 16px;
    }

    #sneak-peek img {
        height: 30px;
    }

    #unmute-button img {
        width: 40px;
        height: 40px;
    }

    .weather-row {
        padding: 6px 4px;
        font-size: 0.8rem;  /* Smaller text */
        gap: 10px;
    }
    .weather-icon {
        width: 28px;
        height: 28px;
    }
    .weather-time {
        font-size: 0.875rem;
        margin-bottom: 3px;
    }
        
}

@media screen and (max-width: 1000px) {
    .nav-links.left {
        gap: 2.5rem;
    }
}

