body {
    background: rgb(39, 70, 132);
    background: linear-gradient(162deg, rgba(39, 70, 132, 1) 0%, rgba(112, 159, 220, 1) 54%, rgba(185, 213, 253, 1) 100%);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    color: 071739;
    margin: 0;

}

logo {

    font-size: 3vw;
    color: white;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-right: auto;

}

logo a {
    color: white;
}

h1 {
    font-size: 1rem;
    text-align: center;
}

.hourly {
    font-size: 1rem;
    color: white;
    margin-left: 8px;
    text-align: center;
}

.terkepek {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4em;
}


.holnapi,
.pollutionwrapper, .alert, .uvindex {

    background: rgb(112, 159, 220);
    background: linear-gradient(343deg, rgba(112, 159, 220, 1) 0%, rgba(112, 159, 220, 1) 45%, rgba(185, 213, 253, 1) 100%);
    box-shadow: 20px -2px 20px 2px rgb(0, 0, 0, 30%);
    border-radius: 2%;
}

.pollution {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
}

.pollutionwrapper, .alert, .uvindex {
    padding: .4em 1.5em;
    
   
}

#uvindex {

    text-align: center;
    font-size: 3rem;
    color: white;
}

.alert {

    flex-basis: 20%;
}

.pollutionwrapper p {
    text-align: center;
    margin: 0 auto;
}

#alertcolor {
    
    width: 2em;
    height: 2em;
    text-align: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
} 

.hamburger-menu .hovermenu {
    display: none;
}

.hovermenu {
    display: none;
}



@media (min-width: 1181px) {
    .wrapper {

        min-width: 250px;
        flex-basis: 30%;
        background: rgb(112, 159, 220);
        background: linear-gradient(343deg, rgba(112, 159, 220, 1) 0%, rgba(112, 159, 220, 1) 45%, rgba(185, 213, 253, 1) 100%);
        box-shadow: 20px -2px 20px 2px rgb(0, 0, 0, 30%);
        border-radius: 2%;
        color: black;
        padding: 0px 20px;


    }


    .top,
    .bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.city {
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    margin: 0;
    letter-spacing: 1px;
}


.uppernav {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    padding: 1em;


}

.uppernav p {
    margin: 0;

}



.uppernav ul {
    display: flex;
    color: white;
    list-style: none;
    z-index: 1;
}

.uppernav ul li:hover {
    cursor: pointer;
    color: rgb(255, 255, 255, 75%)
}

.weather-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    margin: 0;
    margin-top: 5px;
}

.weather-icon {
    width: 100px;
}

.temperature {

    font-weight: 600px;
    font-size: 70px;
    width: auto;
    letter-spacing: -5px;
    margin: 10px 0;

}

footer {
    background-color: rgba(39, 70, 132, 1);
    display: flex;
    gap: 2em;
    padding: 1em;

}


.varosok {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:.3em
}

footer a {
    color: white;
}

.flex {
    display: flex;

    align-items: center;
}

.marginleft {
    margin-left: auto;
}

.flex img {
    width: 2em;
    display: block;
    flex-basis: 2em;
    margin-right: .5em;

}

.details {
    width: 100%;
    padding-left: 20px;
}


.parameter-row {
    display: flex;
    justify-content: space-between;

}



.parameter-label {
    text-align: left;
    font-weight: 400;
    font-size: 12px;
}

.parameter-value {
    text-align: right;
    font-weight: 600;
    font-size: 12px;

}


.uppernav li:hover .hovermenu {
    display: flex;
    position: absolute;
    background-color: var(--header);
    border-radius: 2px;
    padding: .5em;
    right: 20px;
    line-height: 1.5em;
}

.uppernav div:nth-of-type(2) {
    margin-left: auto;
}

.hovermenu ul {
    display: block;
    padding: 0;
    background-color: rgb(39, 70, 132);
    padding: .5em;


}





.search {

    width: 225px;
    position: relative;
    display: flex;

}

#prognosis {
    color: white;
    max-width: 25em;
    margin: 0 auto;
}

.autocomplete-input {

    padding: 15px 15px;
    width: 195px;
    height: 7px;
    border-radius: 2%;
    border: none;
    outline: none;
    background: rgb(169, 202, 246);
    box-shadow: 20px -2px 20px 2px rgb(0, 0, 0, 30%);

}

.autocomplete-list {
    position: absolute;
    top: 35px;
    left: 0;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 192px;
    max-height: 200px;
    overflow-y: auto;
    background: rgb(169, 202, 246);
    line-height: 1em;

}


.autocomplete-list li {
    padding: 8px;
    width: calc(100% - 30px);
    cursor: pointer;
    display: none;
}



.graph {
    width: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph:hover {
    cursor: pointer;
}

.graph h3 {

    color: rgb(152, 174, 210)
}

#graphContainer {
    margin: 0 auto;
    width: 70%;
}


.graph img {
    width: 25px;
}


.search:hover .autocomplete-list li {
    display: block;
}

.autocomplete-list:hover .autocomplete-list li {
    display: block;
}




ul {
    gap: 1em;
    flex-wrap: wrap;
    padding: 0;

}

.li {
    flex-basis: 25%;
    margin-left: 5px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 5px;
    background: rgb(169, 202, 246);
    border-radius: 5%;
    transition: background-color .2s,
        color 0.5s;
    box-shadow: 20px -2px 20px 2px rgb(0, 0, 0, 10%);
    font-weight: 600;

}

.li:hover {
    cursor: pointer;
    background-color: rgb(135, 176, 230);
}

.links p {
    margin-top: .5em;
}

.limap {

    list-style-type: none;
    border-radius: 12px;
    border: none;
    background-color: rgba(39, 70, 132, 1);
    color: white;
    font-weight: 500;
    text-align: center;
    padding: .3em 1em;
    margin-top: 1em;

}

.weight {
    font-weight: 700;
}

.limap a {
    color: white;
}

.limap:hover {
    cursor: pointer;
}

nav {
    display: flex;
    gap: 1em;
    justify-content: center;
}

.banner {
    flex-basis: 20%;
}

.balatonwrapper {
    justify-content: space-between;
    text-align: center;
    padding: 1em 2em;
    display: flex;
    width: 18em;
    flex-direction: column;
    max-width: 70%;
    margin-bottom: 2em;
    background-color: rgb(169, 201, 246);
    box-shadow: 20px -2px 20px 2px rgb(0, 0, 0, 30%);
    border-radius: 2px;
    margin: 0 auto;
    margin-bottom: 5em;
}

#tempChart {
    display: none;
}

.balatonwrapper .flex {
    align-items: start;

    gap: 1em;
}

.flextavak {
    display: flex;
    gap: 0.3em;
    align-items: center;
}

.balatonwrapper h5,
.balatonwrapper h4 {
    margin: 0;
}

.balatonwrapper h4 {
    width: 40%;
    text-align: left;

}


#map {

    height: 500px;
    position: relative;
    width: 100%;
    margin: 0px auto;
    outline: none;

}

.container {

    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}



.lis {

    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-bottom: 1em;

}

iframe {
    width: 100%;
    display: block;
    height: 500px;
}

.mobileheader {
    display: none;
}

.hamburger-menu {
    display: none;
}

@media (max-width: 1180px) {
    .wrapper {

        min-width: 250px;
        flex-basis: 30%;
        background: rgb(112, 159, 220);
        background: linear-gradient(343deg, rgba(112, 159, 220, 1) 0%, rgba(112, 159, 220, 1) 45%, rgba(185, 213, 253, 1) 100%);
        box-shadow: 20px -2px 20px 2px rgb(0, 0, 0, 30%);
        border-radius: 2%;
        padding: 0px 20px;



    }

    .forecastdaydetails {
        display: none;
    }

    .top,
    .bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;

    }

    .parameter-row {
        display: flex;

    }

    .temperature {

        font-weight: 600px;
        font-size: 40px;
        width: auto;
        letter-spacing: -5px;
        margin: 10px 0;
    }
}


@media (min-width: 1181px) {

    .forecasthours,
    .forecastdaydetails {
        display: flex;
        flex-wrap: nowrap;
        height: auto;
        width: auto;
        margin-top: 20px;

    }

    .forecastdaydetails {
        display: none;
    }

    .hours {
        flex-basis: 14%;
        height: auto;
        margin: 5px;
        background-color: rgb(169, 201, 246);
        border-radius: 2%;


    }

    .forecastdays {
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
        justify-content: center;
    }

    .days {
        flex-basis: 14%;
        height: auto;
        margin: 5px;
        background-color: rgb(169, 201, 246);
        border-radius: 2%;


    }
}


@media (max-width: 1180px) {

    .forecasthours,
    .forecastdaydetails {
        height: auto;
        width: auto;
        margin-top: 20px;
        white-space: nowrap;
        position: relative;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .hours {
        width: 24.5%;
        float: none;
        height: 90%;
        margin: 0 0.25%;
        display: inline-block;
        zoom: 1;
        margin: 5px;
        background-color: rgb(169, 201, 246);
        border-radius: 2%;

    }

    .forecastdays {
        height: auto;
        width: auto;
        margin-top: 20px;
        white-space: nowrap;
        position: relative;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .days {
        width: 24.5%;

        float: none;
        height: 90%;
        margin: 0 0.25%;
        display: inline-block;
        zoom: 1;
        margin: 5px;
        background-color: rgb(169, 201, 246);
        border-radius: 2%;

    }

}


@media (max-width: 1095px) {

    .uppernav div:nth-of-type(2) {
        display: none;
    }

    .mobileheader {
        display: block;
        margin-left: auto;

    }

    .hamburger-menu {
        position: absolute;
        width: 100%;
        color: white;
        text-align: center;
        display: none;
        flex-direction: column;
        background-color: rgb(112, 159, 220);
        padding: 0;
        top: 48px;
        line-height: 2em;
        z-index: 1;
    }

    .hamburger-menu ul {
        padding: 0;
    }

    .hamburger-menu li {

        background-color: rgb(112, 159, 220);
    }

    .hamburger-menu li:last-of-type {
        margin-bottom: .5em;
    }
    .hamburger-menu p {
        margin: 0;
    }

    .hamburger-menu p,
    .maincat {
        font-weight: 700;

    }

    .hamburger-menu a {
        color: white;
    }

    .hamburger-menu img {

        width:17px;
    }

    .hovermenu {
        display: block;
    }
}

@media (max-width: 587px) {
    logo {
        display: none;
    }

    #graphContainer {
        width: 100%;
    }

    .midsection {
        flex-direction: column;
        gap: .5em !important;
        align-items: center;
    }

    .uvindex {
        width: 4em;
    }


}

.hours,
.days {
    text-align: center;
}

.days:hover {
    cursor: pointer;
    background-color:rgba(112, 159, 220);
}

.image {
    margin: 5px auto;

}


.temp,
.tempday {

    font-weight: 700;
}

.time,
.day,
.date,
.forecastdays>div,
.hours>div {

    font-weight: 700;

}

.time,
.date {

    margin-top: 5px;
}

div:nth-of-type(6) {
    margin-bottom: 5px;

}

.smallerfont {
    font-size: 12px;
}

.title {
    margin: auto;
    width: 60%;
    padding: 20px;
    text-align: center;
    color: white;
}

.text {
    margin: auto;

    font-weight: 700;
    padding: 20px;
    line-height: 30px;

    box-shadow: 20px -2px 20px 2px rgb(0, 0, 0, 30%);
    border-radius: 2px;
}

.text span {
    font-size: 18px;
    line-height: 24px;
}

a {

    text-decoration: none;
    color: rgb(39, 70, 132);
}

.uppernav ul li a {
    color: white;
}

.uppernav ul li a:hover {
    color: rgb(255, 255, 255, 75%);
}

.links {

    margin-top: 2em;

}

.midsection {
    display: flex;
    justify-content: center;
    gap:1%;
    margin-top:1em;
  

}

section {

    padding: 0 .5em;
}

/* Töltés */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(112, 159, 220, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background-color: rgba(39, 70, 132, 1);
    border: 3px solid #3c3c3c;
    border-radius: 50%;
    text-align: center;
    line-height: 150px;
    font-family: sans-serif;
    font-size: 20px;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px white;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);
}

.ring:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-right: 3px solid white;
    border-radius: 50%;
    animation: animateC 2s linear infinite;
}

.ring span {
    display: block;
    position: absolute;
    top: calc(50% - 2px);
    left: 50%;
    width: 50%;
    height: 4px;
    background: transparent;
    transform-origin: left;
    animation: animate 2s linear infinite;
}

.ring span:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: -6px;
    right: -8px;
    box-shadow: 0 0 20px white;
}

@keyframes animateC {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}