body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#clock-container {
    position: absolute;
    bottom: -10px;
    right: 10px;
    padding: 10px;
    z-index: 20;
    font-family: 'Roboto Mono', monospace;
    color: #fff;
    text-align: right;
}

#clock {
    font-size: 3em;
}

#date {
    font-size: 1em;
    margin-top: 5px;
}

#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    background: #b2fdb2;
    width: 100%;
    transition: width 1s linear;
    z-index: 25;
}

.container {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
}

.left, .right {
    flex: 1;
    overflow: hidden;
}

.left {
    position: relative;
    background-color: #000;
    height: calc(100vh - 20px);
    overflow: visible;
}

.right {
    padding: 20px;
}



/* 1) Container for miniatyren */
#thumbnail-container {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: auto;
    z-index: 1000;
}

/* 2) Selve miniatyrbildet */
#thumbnail-container img {
    display: none; /* skjult som standard */
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
    transform: scale(1);
    opacity: 1;
}


#thumbnail {
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
    transform: scale(1);
    opacity: 1;
}






.weather-container {
    position: absolute;
    bottom: -10px;
    left: 10px;
    width: 350px; /* Adjusted width to accommodate one widget */
    height: 100px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 0;
    box-sizing: border-box;
    z-index: 10;
    overflow: hidden;
}

.weather-content {
    position: relative;
    width: 350px;
    height: 100px;
    overflow: hidden;
    display: inline-block; /* Display widget */
}

.weather-card {
    width: 350px;
    height: 400px;
    border: none;
    transform: translateY(-97px);
    transform-origin: 0 0;
}

.weather-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 20;
}

.weather-details {
    font-size: 1.5em;
}

#image-container {
    position: relative;
    width: calc(100% - 20px);
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#image-container img {
    max-width: 100%;
    max-height: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

#image-container img.visible {
    opacity: 1;
}

.calendar-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.calendar-iframe {
    width: 100%;
    height: 100%;
    filter: invert(1) hue-rotate(180deg);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calendar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 46px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Calendar frame styles */
.calendar-frame {
    position: relative;
    width: 100%;
    margin: 20px auto;
    text-align: center;
    transition: height 0.5s ease;
}

/* StandardstÃ¸rrelser for kalenderen */

/* Ekstra stor kalenderramme */
.calendar-frame.calendar-xlarge {
    height: 1500px;   /* juster om du vil */
    min-height: 300px;
}

.calendar-frame.calendar-large {
    height: 800px;
    min-height: 300px;
}

.calendar-frame.calendar-medium {
    height: 600px;
    min-height: 300px;
}

.calendar-frame.calendar-small {
    height: 400px;
    min-height: 300px;
}

/* SÃ¸rger for at kalender-containeren alltid fyller rammen og er midtstilt */
.calendar-frame .calendar-container {
    height: calc(100% - 40px); /* Trekker fra knappomrÃ¥det */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* SÃ¸rger for at kalender-iframe tilpasser seg rammens hÃ¸yde */
.calendar-frame .calendar-container .calendar-iframe {
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

/* legges i static/css/styles.css eller popup_styles.css */
/* static/css/styles.css eller popup_styles.css */
#clothing-advice-container{
    position:absolute;
    top:2px;                       /* rett under øverste kant */
    left:20px;                     /* helt til høyre */
    font-size:.8em;
    max-width:none;                /* ingen begrensning som default */
    white-space:normal;
  }
  @media (max-width:600px){        /* kun på små skjermer */
    #clothing-advice-container{ max-width:260px; }
  }
  

