@import url(arc.css);
@import url(colors.css);

@font-face {
    font-family: Unageo;
    font-display: swap;
    src: local("Unageo Regular"),
    url("static/Unageo-Regular.woff2") format("woff2")
}

.air-quality {
    font-family: Unageo, ui-rounded;
}

/*Flexbox i procenty to jakas ########## pomylka*/
* {
    box-sizing: border-box;
    font-family: Unageo, ui-rounded;
}

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100%;
    /*Tak*/
    min-width: 1280px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f5f5f5;
}

header {
    height: 64px;
    width: 100%;

    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 10px;
    /*font-size: larger;*/
}

.ts-wrapper {
    min-width: 300px;
    width: fit-content;

    .ts-control {
        margin-right: 10px;
    }

    .option .title {
        display: block;
    }

    .option .label {
        font-size: 12px;
        display: block;
        color: #a0a0a0;
    }
}

main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;

    width: 100%;
    height: calc(100% - 64px);

    .next {
        justify-content: center;
        .navigation-arrow {
            transform: translateX(-30px);
        }
    }

    .previous {
        justify-content: center;
        .navigation-arrow {
            transform: translateX(30px);
        }
    }

    .next, .previous {
        display: flex;
        cursor: pointer;
        align-items: center;
        filter: drop-shadow(0px 0px 10px #757575);

        user-select: none;
        width: 25%;
        height: 100%;

        padding-top: 150px;

        .navigation-arrow {
            width: 30px;
        }

        sub {
            vertical-align: super;
            font-size: medium;
            line-height: normal;
        }

        .temperature-group {
            text-align: center;
            background-repeat: no-repeat;
            background-size: 50%;
            background-position: 10px -10px;

            .apparent-temperature {
                font-size: smaller;
            }

            .temperature, .apparent-temperature, .day {
                padding: 0;
                margin: 0;
            }

            .day {
                padding-top: 10px;
            }
        }
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;

    min-height: 100%;
    height: fit-content;
    width: 50%;
    padding-bottom: 10px;

    filter: drop-shadow(0px 0px 10px #757575);
    background-color: #ffffff;
    border-radius: 20px;

    .weather-header, .location-group {
        text-align: center;
        padding: 24px;

        .title, .label, .temperature, .cloud-cover, .date {
            margin: 0;
            padding: 0;
        }

        .date {
            padding-top: 5px;
            font-size: medium;
            font-weight: bold;
        }

        sub {
            vertical-align: super;
            font-size: medium;
            line-height: normal;
        }

        .cloud-cover > sub {
            font-size: small;
        }

        .temperature {
            font-size: xx-large;
        }
    }

    .weather-header {
        /*background-image: url('static/weather_cloudy.png');*/

        background-repeat: no-repeat;
        background-size: 40%;
        background-position: 10px -7px;
        /*background-position: left center;*/
        /*padding: 50px;*/
    }

    .parameters {
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;

        figure {
            display: flex;
            text-align: left;
            font-size: small;

            justify-content: space-between;
            min-width: 150px;
            max-width: 169px;
            figcaption {
                display: flex;
                flex-direction: column;
            }

            span {
                font-size: large;
            }

            sub {
                vertical-align: super;
                font-size: small;
                line-height: normal;
            }

            img {
                width: 40px;
                margin-left: 5px;
            }

            .wind {
                position: relative;
                overflow: visible;
            }
        }
    }

    .weather-information-extra {
        display: flex;
        /*grid-template-rows: repeat(1, 1fr);*/
        /*grid-template-columns: repeat(2, 1fr);*/
        justify-content: center;
        align-items: start;
        gap: 60px;
    }

    .air {
        display: flex;
        align-items: center;
        justify-content: start;
        flex-direction: column;
        gap: 20px;

        .weather-title {
            padding: 0;
            margin: 0;
        }

        .air-content {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 60px;

            .arc {
                transform: translateY(-25px);
            }
        }

        .air-table-entry {
            display: flex;
            flex-direction: column;
            font-size: small;

            .pollution {
                text-align: right;
            }

            .pollution-progress, .pollution-progress::-webkit-progress-bar, .pollution-progress::-webkit-progress-value {
                height: 5px;
                border-radius: 100px;
                -moz-appearance: none;
                -webkit-appearance: none;
                appearance: none;
            }
        }
    }

    .precipitation {
        display: none;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        text-align: center;

        h3 {
            padding: 0;
            margin: 0;
        }

        tr, th, td {
            text-align: left;
            padding: 1px 10px;
        }

        th, td:empty {
            display: none;
        }
    }

    nav {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 10px;

        .day {
            transform: translateY(-2.5px);
        }

        .button {
            width: 26px;
            aspect-ratio: 1;
            cursor: pointer;
            transition: transform 0.2s ease-in-out;
        }

        /*czarna magia macyka*/

        .button:hover {
            filter: contrast(0);
        }

        .button:first-of-type:hover {
            transform: translateX(-5px);
        }

        .button:last-of-type:hover {
            transform: translateX(5px);
        }
    }
}

.daily-weather {
    row-gap: 0;

    .weather-header {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .parameters {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
    }

    .icon {
        width: 0;
        aspect-ratio: 1;
        overflow: visible;
        background-repeat: no-repeat;
        background-size: 100%;
        background-position: 0 0;
    }

    .precipitation {
        padding-top: 20px;
    }
}