/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

/*
    2. Remove default margin
  */
* {
    margin: 0;
}

/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: #4e6ed0;
    color: #F9F6EE;
    font-family: 'Open Sans', sans-serif;

}


html,
body {

    overflow-x: hidden;

}

/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
    font: inherit;
}

input {
    max-height: 1em;
    padding: .9em;
    border-radius: 12px;
    border: none;
    background-image: url(/pics/kereses.png);

    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 25px;
    min-width: 250px;

}

::placeholder {
    color: rgb(30, 55, 146)
}

header img {
    width: 70px;
}

nav img {
    width: 30px;
}

/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/*
    8. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}


#root {

    --infoBackground: rgb(0, 0, 0, .1)
}


.tomorrow,
#hetnapos,
#additional-data-container {

    display: flex;
    gap: 1em;
    overflow-x: auto;

    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */

    cursor: grab;

    margin-top: 1em;


}

#hetnapos {

    margin-bottom: 1em;

}

h1 {
    margin-top: .7em;
}

.tomorrow::-webkit-scrollbar,
#hetnapos::-webkit-scrollbar,
#additional-data-container::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.infobox img,
.additional-data img {

    margin: 0 auto;
}

#hamburger:hover {
    cursor: pointer;
}

main,
.left,
.right {
    display: flex;
}

.left,
.right {
    gap: 1em;
    text-align: center;
}

.left {

    border-right: 1px solid white;
}

.maintemp {
    font-size: 4em;
}

main {
    justify-content: center;
    gap: 1em;
    align-items: center;
}


.infobit:first-child {
    margin-bottom: 1.5em;
}

.left>div {
    margin-right: 1em;
}

a {

    text-decoration: none;
    color: #F9F6EE;
}

ul {

    list-style: none;
}



.hidden {

    display: none;
}

header {

    padding: 1em 0;
    background-color: rgb(30, 55, 146);
}


.flex {
    display: flex
}

.desktopnav {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    top: 100px;
    margin: auto;
    background-color: #F9F6EE;
    color: rgb(30, 55, 146);
    z-index: 999;
    text-align: center;
    border-radius: 12px;
    padding: 1em;
    justify-content: center;

}

.desktopnav a {
    color: rgb(30, 55, 146);

}

.desktopnav ul {
    padding: 0;
}

.desktopnav>div {

    min-width: 125px;
}

.desktopnav ul {
    gap: 1em;
}


.opaque {

    opacity: .7;
}

main img {

    max-width: 128px;
    max-height: 128px;
    margin: 0 auto;
}

.infobox,
.additional-data {
    background-color: rgb(0, 0, 0, .2);
    border-radius: 12px;
    padding: .5em;
    text-align: center;
    flex: 0 0 200px;

}


.smallfont {

    font-size: .7em;
}

.center {
    text-align: center;
}


.additionalinfo {

    display: flex;
    gap: 1em;
    margin-top: 1em;

}


.additionalinfo h2,
.UVfigure>div,
.visibility {
    text-align: center;
}


.UVfigure,
.visibility {

    flex-grow: 1;
}

.additionalinfo>div {

    background-color: rgb(0, 0, 0, .1);
    border-radius: 12px;
    padding: 1em;
    text-align: center;

}

.moonstuff {
    min-width: 10.5em;
}

.moonstuff img {
    margin: 0 auto;
}



.main,
section,
.h1AndP,
h2 {

    width: 90%;
    margin: 0 auto;
}

#map {

    border-radius: 12px;
    margin-top: 1em;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
}

.buttons button {
    background-color: #F9F6EE;
    border-radius: 12px;
    border: none;
    padding: .1em 1em;
}

.buttons button:hover {
    cursor: pointer;
    opacity: .75;
}

h2 {
    margin-top: 1em;
}

.headerflex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

#searchResults {

    position: absolute;
    background-color: #F9F6EE;
    display: none;

    position: absolute;
    background-color: white;
    color: rgb(30, 55, 146);
    padding-top: 1em;
    top: 70px;
    border-radius: 12px;
    min-width: 250px;
    padding-left: 1em;
    padding-bottom: 1em;
    max-height: 300px;
    overflow-y: scroll;

}

.searchResultItem:hover {
    cursor: pointer;
}


footer {

    background-color: rgb(30, 55, 146);
    margin-top: 1em;
    padding: 1em;
}

footer div {
    width: 90%;
    margin: 0 auto;
    display: flex;
    gap: 1em;
}

.articles {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: 1.3em;

}

.article {
    border-radius: 12px;
    width: 300px;
    padding: 1em;
    background-color: rgb(0, 0, 0, .1);
}

.article h3 {
    text-align: center;
}

.article img {

    border-radius: 12px;
}

.oldalrol {
    background-color: rgb(0, 0, 0, .1);
    border-radius: 12px;
    padding: 1em;
    width: 90%;
    margin: 0 auto;
    margin-top: 1em;


}

.budapest {
    font-size: 18px;
}


#mobilnav {
    display: none;
}

@media only screen and (max-width: 700px) {



    main {
        flex-direction: column;
    }


    .left {
        border-right: none;
        border-bottom: 1px solid white;
    }


    input {
        min-width: 0px;
    }

    .infobox,
    .additional-data {
        flex: 0 0 150px;
    }

    .buttons {
        flex-wrap: wrap;
    }

    .additionalinfo {
        flex-direction: column;
    }

    .articles {
        flex-direction: column;
    }

    .article {
        width: auto;
    }

    #mobilnav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top:100px;
        margin: auto;
        background-color: #F9F6EE;
        color: rgb(30, 55, 146);
        z-index: 999;
        padding: 1em;

    }

    #mobilnav a {

        color: rgb(30, 55, 146);
    }

    .desktopnav {
        display: none;
    }

    #cities,
    #budapest,
    #mountain,
    #kulfoldi {

        display: flex;
        gap: 1em;
        align-items: center;
       
    }

    #varosok,
    #budapesti,
    #hegyek,
    #abroad {

        display: none;
    }

    .budapest {
        font-size: 24px;
    }

    #mobilnav h2 {
      

        margin: 0;

    }

}