#pano {
    width: 1200px;
    height: 400px;
}
body {
    background:
        linear-gradient(135deg, #dbdbdb 0%, #202225 100%),
        #eeeeee;
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: #222;
    margin: 0;
    min-height: 100vh;
}
html {
    scroll-behavior: smooth;
}
/* Add a black background color to the top navigation */

.topnav {
    background: #222;
    box-shadow: 0 2px 8px rgba(36, 120, 37, 0.15);
    border-radius: 0 0 16px 16px;
    padding: 0 clamp(10px, 3vw, 20px);
    display: flex;
    -webkit-box-shadow: 20px 20px 30px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 20px 20px 30px 0px rgba(0,0,0,0.75);
    box-shadow: 20px 20px 30px 0px rgba(0,0,0,0.75);
    min-height: clamp(42px, 6.5vh, 56px);
    align-items: center;
}

/* Style the links inside the navigation bar */

.topnav a {
    color: #fff;
    padding: clamp(6px, 1.2vh, 12px) clamp(10px, 2.5vw, 24px);
    text-decoration: none;
    font-size: clamp(0.75rem, 1.9vw, 1.05rem);
    font-family: inherit;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    margin: 0 clamp(2px, 0.6vw, 4px);
    line-height: 1.1;
}

/* Change the color of links on hover */

.topnav a:hover {
    background: #fff;
    color: #247825;
}

/* Add a color to the active/current link */

.topnav a.active {
    background: #fff;
    color: #247825;
    font-weight: 700;
}
/*background-color: #283966;*/

/* Centered text */
.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:white;
    font-size: 30px;
    font-family:  serif;
    font-weight: bolder;
 }


.head {
    width: 100%;
    background: linear-gradient(90deg, #247825 0%, #164b16 100%);
    color: #fff;
    text-align: center;
    font-weight: 700;
    /* Responsive font size: scales down on small screens, capped at 2.5rem */
    font-size: clamp(1.0rem, 3.2vw + 0.2rem, 2.3rem);
    font-family: 'Montserrat', 'Verdana', 'Geneva', sans-serif;
    letter-spacing: 2px;
    /* Responsive vertical padding */
    padding: clamp(6px, 2vh, 28px) 0 clamp(3px, 1.0vh, 14px) 0;
    box-shadow: 0 4px 24px rgba(36, 120, 37, 0.12);
    font-variant: small-caps;
    flex-shrink: 0;
    flex-grow: 0;

    /* Keep on one line and avoid wrapping */
    white-space: nowrap;
    overflow: hidden;          /* prevent multi-line wrap overflow */
    text-overflow: ellipsis;   /* fallback if it still doesn't fit */
    
    /* Add positioning context for absolute children */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.head img {
    height: clamp(22px, 1.5em, 44px) !important; /* scale with text size */
    width: auto;
    vertical-align: middle;
    position: absolute;  /* Change from float to absolute */
    left: clamp(6px, 2vw, 16px);
    top: 50%;
    transform: translateY(-50%);
}

/* Fine-tune spacing on narrower screens */
@media (max-width: 768px) {
    .head {
        letter-spacing: 1px;
    }
}
@media (max-width: 480px) {
    .head {
        letter-spacing: 0.5px;
    }
}

caption, header,.caption{
    text-align: center;
    font-weight: bolder;
    font-size: larger;
    font-variant: small-caps ;
    font-family:  serif;
    color: #555555;
}
caption{
    caption-side: top;
    flex:0 0 auto;
}

.div_line{
    display:flex;
    flex-wrap: wrap ;
    justify-content: space-around;
    width:100%;
}

.widget, .graph, .all_sky, .graph_group, .roof_cam {
    border-radius: 18px;
    border: none;
    background: #fff;
    margin: 18px;
    padding: 24px 18px;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);
    transition: box-shadow 0.2s, transform 0.2s;
}

.widget {
    display: flex;
    flex-direction: column;
    margin: 32px auto;
    max-width: 600px;
    padding: 32px 40px;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);
}

.all_sky{
    width: 300px;
    margin: 0 auto;
}
.graph{
    width: calc(100% - 20px);
    width:-webkit-calc(100% - 20px);
    box-sizing: border-box;
    height: 300px;

}

.roof_cam:hover {
    box-shadow: 0 8px 32px rgba(36, 120, 37, 0.18);
    transform: translateY(-4px) scale(1.03);
}


.roof_cam_img {
    display: flex;
    height: 300px;
    width: 300px;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(36, 120, 37, 0.10);
}


.roof_cam_img img {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(36, 120, 37, 0.08);
}


.button {
    padding: 12px 32px;
    margin: 12px;
    background: linear-gradient(90deg, #43cea2 0%, #247825 100%);
    border-radius: 8px;
    border: none;
    display: inline-block;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(36, 120, 37, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
}
.button:hover {
    background: linear-gradient(90deg, #247825 0%, #43cea2 100%);
    box-shadow: 0 4px 16px rgba(36, 120, 37, 0.18);
}
.button:active {
    position: relative;
    top: 1px;
}

.login-container {
    position: absolute;
    right: clamp(6px, 2vw, 16px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-email {
    color: #fff;
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    font-weight: 400;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: clamp(6px, 1vh, 8px) clamp(12px, 2vw, 16px);
    border-radius: 4px;
    text-decoration: none;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    transition: background 0.3s;
    white-space: nowrap;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .user-email {
        display: none; /* Hide email on small screens */
    }
}