﻿:root {
    --seawayborder: #fff;
}

.flex-end {
    align-items: flex-end !important;
}

.seaway-value-style {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    width: fit-content;
}
/*  .seaway-value-style span {
        font-size: clamp(14px, 3vw, 20px);
    }*/
#seaWay {
}

#lower-wind-values {
    grid-column-start: 1;
    grid-column-end: 4;
    display: grid;
    grid-template-columns: 50% 50%;
    justify-items: center;
    align-items: center;
}

.half-width {
    width: 50%;
}

.big-digit {
    font-size: clamp(1em, 3.5vw, 2em);
    font-weight: 800;
}

#temperature {
    grid-row-start: 1;
    grid-row-end: 3;
    grid-column: 1;
    border-bottom: 0;
    border-right: 0;
    font-size: 1.5em;
}

#wind-direction .value {
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}



.weather-container .value, #latest-weather-time, .station-container span {
    font-weight: 900;
}

#lowest-temp {
    grid-row: 1;
    grid-column: 2;
    border-bottom: 0;
}

#highest-temp {
    grid-row: 1;
    grid-column: 3;
    border-bottom: 0;
    border-left: 0;
}

.stretch-in-row {
    grid-column-start: 1;
    grid-column-end: 4;
}

#rainfall {
    grid-row: 2;
    grid-column-start: 2;
    grid-column-end: 4;
    border-bottom: 0;
}

#latest-weather-time {
    grid-row: 3;
    padding: 10px;
    border-bottom: 0;
}

.weather-container {
    grid-row: 4;
    display: grid !important;
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: 50% 50%;
    justify-items: center;
}

.station-container {
    grid-row: 4;
    grid-column: 3;
    border-left: 0;
}

.seaWaydataContainer {
    display: grid;
    justify-content: center;
    width: 100%;
    min-width: 260px;
    min-height: 400px;
    grid-template-columns: 33% 33% 33%;
    font-size: clamp(14px, 3vw, 18px);
    grid-template-rows: 20% 15% 15% 50%;
}

.seaway-bgcolor {
    background-color: #ddeded;
}

.seaway-border {
    border-width: 3px;
    border-style: solid;
    border-color: var(--seawayborder);
}

#station-name {
    text-decoration: underline
}

.seaway-line {
    width: 80%;
    text-align: center;
}

.windarrow {
    font-size: 1em;
}

.weather-container .label, .windarrow {
    color: #4D4D4D;
    font-weight: 700;
}

.temp-label {
    font-size: 0.85em;
}

.temp-value {
    font-size: 1.5em;
}

.rain-label {
    font-size: 0.85em;
}

.rain-value {
    font-size: 1.35em;
}

.wind-speed-knots, .gust-speed-knots {
    font-style: italic;
}

#humidity {
    grid-row: 1;
    grid-column: 1;
}

#wind-direction {
    grid-row: 1;
    grid-column: 3;
}

#pressure {
    grid-row: 1;
    grid-column: 2;
}

#wind-speed {
    grid-row: 2;
    grid-column: 1;
}

    #wind-speed .value, #highest-gust .value {
        font-size: 16px;
    }

#highest-gust {
    grid-row: 2;
    grid-column: 2;
}

.weather-obs-bottom {
    /* display: grid; */
    /*    grid-template-columns: 24% 74%;*/
    padding: 0 10px 0 10px;
    align-items: center;
    margin-bottom: 20px;
}


@media(max-width:767px) {
    .weather-container {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: unset !important;
    }

    .seaWaydataContainer {
        min-height: unset;
    }

    #wind-speed .flex-row {
        flex-direction: row !important;
    }

    #highest-gust .flex-row {
        flex-direction: row !important;
    }

    #lower-wind-values {
        display: block !important;
    }

    .seaWaydataContainer {
        grid-template-rows: 15% 15% 15% 55%;
    }
}

@media(max-width:350px) {
    .seaWaydataContainer {
        grid-template-rows: 13% 10% 10% 67%;
    }

    .weather-container {
        flex-wrap: unset !important;
    }
}
@media(max-width:290px){
    .seaWaydataContainer {
        grid-template-rows: 8% 9% 9% 6% 10% 57%;
    }
    #temperature {
        grid-row: 1;
        grid-column-start: 1;
        grid-column-end: 4;
    }
    #lowest-temp {
        grid-row: 2;
        grid-column-start: 1;
        grid-column-end: 4;
    }
    #highest-temp {
        grid-row: 3;
        grid-column-start: 1;
        grid-column-end: 4;
    }
    #rainfall {
        grid-row: 4;
        grid-column-start: 1;
        grid-column-end: 4;
    }
    #latest-weather-time{
        grid-row: 5;
    }
    .weather-container {
        grid-row: 6;
    }
}
