/* General Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2 {
    font-size: 1.2em;
    margin: 0.3em 0;
}

.time {
    font-size:  6.8em;
    margin: .1em 0;
}

/* Top Section Layout */
.top-section {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    height: 50vh;
}

.left-side {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.right-side {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-side video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Weather Icon */
#weatherIcon {
    width: 150px;
    height: 150px;
    max-width: 100%;
    max-height: 100%;
    
}

/* Bottom Section: Full Width 3-Day Forecast */
.bottom-section {
    width: 100%;
    padding: 20px;
}

.forecast-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.forecast-item {
    width: 30%;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.forecast-item img {
    width: 60px;
    height: 60px;
    margin: 10px 0;
}

.forecast-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.forecast-temp {
    font-size: 1.4em;
    color: #333;
}

.forecast-temp span {
    display: block;
}

/* Dark Mode Styling */
body.dark-mode {
    background-color: #121212;
    color: #d3d3d3;
}

body.dark-mode .forecast-item {
    background-color: #333;
    color: #d3d3d3;
    border-color: #444;
}

body.dark-mode .forecast-date {
    color: #fff;
}

body.dark-mode .forecast-temp {
    color: #d3d3d3;
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    bottom: 20px; /* Move it to the bottom of the page */
    right: 20px;  /* Keep it aligned to the right side */
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 9999;
}


.hamburger div {
    width: 100%;
    height: 4px;
    background-color: #580a0a;
    margin: 6px 0;
    transition: background-color 0.5s ease;
}

/* Sidebar Menu */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9998;
}

.menu.active {
    transform: translateX(0);
}

.menu-header {
    padding: 20px;
    background-color: #333;
    color: #fff;
}

.menu-body {
    padding: 20px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .left-side, .right-side {
        width: 100%;
        margin-bottom: 20px;
    }

    .right-side video {
        width: 90%;
    }

    .forecast-grid {
        flex-direction: column;
    }

    .forecast-item {
        width: 90%;
        margin-bottom: 20px;
    }

    #weatherIcon {
        width: 100px;
        height: 100px;
    }
}
/* Wrap & clip the embed */
#iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;  /* preserve corner radius on container */
  }
  
  /* Iframe base styling */
  #webPageEmbed {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    /* width/height/border-radius remain inline as per your markup */
  }
  
  /* Zoomed state */
  #webPageEmbed.deals-zoom {
    transform-origin: top left;
    transform: scale(0.5);
    width: 125%;
    height: 125%;
  }
  