/* WEATHER FORECAST */

#weather {
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto 4fr 3fr;
    grid-gap: var(--HD30px);
    position: relative;
    padding: var(--HD90px);
    padding-bottom: var(--HD180px);
}

#weather.landscapemode {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto 1fr;
}

#weather .themetitle {
    grid-column-start: 1;
    grid-column-end: -1;
    font-size: var(--HD45px);
    margin-bottom: 0.2em;
    font-weight: bold;
    color: var(--background-text-color);
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.logo-on-left #weather .themetitle {
    margin-top: 1em;
}

.weather-credit {
    position: absolute;
    font-weight: normal;
    font-size: var(--HD18px);
    right: var(--HD15px);
    bottom: var(--HD15px);
    color: rgba(255,255,255,.4)
}

#weather .daybox {
    position: relative;
    color: #000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "weekday weekday" "icon info";
}

#weather .daybox.portraitmode {
    grid-template-columns: 1fr;
    grid-template-rows: auto 4fr 3fr;
    grid-template-areas: "weekday" "icon" "info";
}

#weather .daybox.day0, #weather .daybox.day1 {
    grid-column: auto / span 3;
    font-size: var(--HD36px);
}

#weather .daybox.day2, #weather .daybox.day3, #weather .daybox.day4 {
    grid-column: auto / span 2;
    font-size: var(--HD24px);
}

#weather.landscapemode .daybox {
    grid-column: auto / span 1;
    font-size: var(--HD36px);
}

#weather .daybox .weekday {
    grid-area: weekday;
    font-size: var(--HD30px);
    /* font-weight: bold; */
    text-transform: uppercase;
    padding: 0.3em 0;
    color: var(--background-text-color);
}

#weather .daybox .weekday span {
    /* evt. line break mellem dagnavn og dato */
    display: inline-block;
}

#weather .daybox .weekday .date {
    /* dato altid på ny linje i portraitmode */
    font-size: 0.6em;
    margin-left:0.2em;
    font-weight: bold;
}

#weather .daybox.portraitmode .weekday .date {
    /* dato altid på ny linje i portraitmode */
    font-size: var(--HD24px);
    width: 100%;
    font-weight: bold;
}

#weather .daybox .icon {
    /* background: rgba(0, 0, 0, 0.75); */
    grid-area: icon;
    position: relative;
}

#weather .daybox .icon-content {
    top: 1em;
    bottom: 1em;
    left: 1em;
    right: 0em;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

#weather .daybox.portraitmode .icon-content {
    top: 1em;
    bottom: 0em;
    left: 1em;
    right: 1em;
}

#weather .daybox .icon .no-data {
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: var(--HD24px);
    color: #999;
    padding: 0 var(--HD30px);
    text-align: center;
}

#weather .daybox .info {
    grid-area: info;
    /* background: rgba(0, 0, 0, 0.75); */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* color: #fff; */
}

#weather .daybox .infocontent {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

#weather .daybox .temp, #weather .daybox .wind, #weather .daybox .downfall {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: .3em 0;
}

#weather .daybox .info span {
    width: 1em;
    height: 1em;
    margin-right: .7em;
}

#weather .daybox .temp span {
    -webkit-mask: url(../../images/thermometer.svg) no-repeat 50% 50%;
    mask: url(../../images/thermometer.svg) no-repeat 50% 50%;
}

#weather .daybox .wind span {
    -webkit-mask: url(../../images/windsock.svg) no-repeat 50% 50%;
    mask: url(../../images/windsock.svg) no-repeat 50% 50%;
}

#weather .daybox .downfall span {
    /* -webkit-mask: url(../images/drop.svg) no-repeat 50% 50%;
    mask: url(../images/drop.svg) no-repeat 50% 50%; */
    -webkit-mask: url(../../images/rain-and-snow.svg) no-repeat 50% 50%;
    mask: url(../../images/rain-and-snow.svg) no-repeat 50% 50%;
}