html {
  scroll-behavior: smooth;
}

body {
    background-color: black;
    padding: 0px;
    margin: auto;
    overflow: scroll;
    color: white;
    background-color: #F7F3E9;
    background-size: cover;
    transition: all 0.3s ease-in-out;
    color: #2F2F2F;
}

@font-face {
    font-family: greatvibes;
    src: url(greatvibes.ttf);
}

@font-face {
    font-family: quatrol;
    src: url(quattrocentobold.ttf);
}

@font-face {
    font-family: quatro;
    src: url(alegreya.ttf);
}


#top_Space {
  
    text-align: left;
    padding-left:20%;
    padding-top:1%;
    padding-bottom:1%;
    font-size: large;
    background-color: rgb(212, 164, 60);
    vertical-align: center;
    font-family: greatvibes;
     background-image: url("https://mahrferenc.hu/src/profilkep2.jpg");
        background-position: left;
        background-size: contain;
        background-repeat: no-repeat;
}

#welcome_box {
    width: 99vw;
    height: 100vh;
    text-align: center;
    font-size: 8vh;
    background-color: rgb(212, 164, 60);
    vertical-align: center;
    font-family: greatvibes;
    user-select: none;
    display: none;
}

#main_image {
    width: 100%;

}

#main {
    padding-left: 10vw;
    padding-right: 10vw;

}

h1{
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: medium;
}
#about_me_short {
    padding: 3vw;
    text-align: center;
    background-color: rgb(212, 164, 60);
    vertical-align: center;
    user-select: none;
    gap: 1em;
}

.titleish {
    padding-left: 1vw;
    padding-right: 1vw;
    text-align: center;
    background-color: #F7F3E9;
    vertical-align: center;
    color: #2F2F2F;
    font-family: quatro;
    user-select: none;
    position: relative;
    top: -2em;
}

.small {
    font-size: 6vh;
}

.mini {
    font-size: 2vh;
}

.grayish {
    background-color: #7C7C7A;
    color: black;
}

.medium {
    font-size: 8vh;
}

.readable {
    font-family: 'Courier New', Courier, monospace;
}

#menu_box {
    width: 100%;
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
   
    align-items: center;
    gap: 1em;
    margin: auto;
    position: sticky;
    top: 0px;
    left: 0px;
    background-color: #F7F3E9;
    z-index: 99;
}

.shifted_box {
    width: 80%;
    display: flex;
    flex-flow: row;
    align-items: center;
    gap: 0px;
    margin: auto;
    margin-top:2em;
       margin-bottom:1em;
}

.shifted_box_column {
    width: 80%;
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 2em;
    margin: auto;
    margin-top: 2em;
    padding-left: 10%;
    padding-right: 10%;
}

#about_life {
    border: 1em solid #7C7C7A;
}


#about_exam {
    border: 1em solid #7C7C7A;
    text-align: center;
}

#about_paintings {
    border: 1em solid #7C7C7A;
}

#about_paintings_tj {
    border: 1em solid #7C7C7A;
}

#about_paintings_el {
    border: 1em solid #7C7C7A;
}

#about_paintings_ll {
    border: 1em solid #7C7C7A;
}

#about_paintings_cs {
    border: 1em solid #7C7C7A;
}

#about_paintings_pr {
    border: 1em solid #7C7C7A;
}

#about_paintings_st {
    border: 1em solid #7C7C7A;
}

#about_paintings_wd {
    border: 1em solid #7C7C7A;
}


#about_local {
    border: 1em solid #7C7C7A;
}

.bold{
    font-weight: bold;
}
#about_sculptures {
    margin-top: 3em;
    ;
    border: 1em solid #7C7C7A;
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#about_press {
    margin-top: 3em;
    ;
    border: 1em solid #7C7C7A;
}

.shifted_left {
    width: 50%;
    min-width: 50%;
}

a:link {
    text-decoration: none;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: large;
}

a:visited {
    text-decoration: none;
    color: yellow;
    font-family: 'Courier New', Courier, monospace;
    font-size: large;
}

a:active {
    text-decoration: none;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: large;
}

a:hover {
    text-decoration: none;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: large;
}

.shifted_right {
    flex-grow: 1;
    max-height: 80%;
}

button {
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
}

button:hover {
    background-color: rgba(255, 255, 255, 0.67);
}

button::after {
    background-color: rgba(255, 255, 255, 0.37);
}

.menuItem {
    background-color: #6F8D5D;
    flex: 0 1 auto;
    font-size: 3vh;
}

.menuItem:hover {
    background-color: #A37C27;
}


.menuItemDark {
    background-color: #000000;
    flex: 0 1 auto;
    font-size: 3vh;
    color:white;
}

.menuItemDark:hover {
    background-color: #A37C27;
    flex: 0 1 auto;
    font-size: 3vh;
    
}

a {
    color: orangered;
    text-decoration: none;
    font-family: teszt3;
    font-size: medium;
}

a:hover {
    color: orangered;
    text-decoration: underline;

}

p {
    text-align: center;
}



.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    margin-top: 4rem;
    text-align: center;

}

.gallery-item {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.gallery-item-long {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
   
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.kek {
    background-color: aqua;
}

img {
    width: 100%;
}

#footer {
    width: 100%;
    background-color: #dda835;
    font-family: monospace;
    text-align: center;
    margin-top:2em;
}

#townlogo{
    background-image: url("https://mahrferenc.hu/src/csakberenycimer.png");
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    padding-left:2em
}

#facelogo{
    background-image: url("https://mahrferenc.hu/src/face.png");
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    padding-left:2em
}
#map {
    width: 80%;
    display: block;
    clear: both;
    margin: auto;

}


#flags{
 width:min-content;
 display: flex;
 flex-wrap: nowrap;
 flex-direction: row;
 align-content: center;
 align-items: center;
 text-align: center;
 margin:auto;
 margin-bottom:0.3em;
 float:right;
 background-color: rgba(255, 255, 255, 0.2);
 flex-basis: 2em 1em;
}

#uk_lang{
    background-image: url('https://mahrferenc.hu/src/united-kingdom.svg');
    background-repeat: no-repeat;
    background-position: center;
     background-size: contain;
    width:2em;
    height:1em;
}

#hun_lang{
    background-image: url('https://mahrferenc.hu/src/hungary.svg');
    background-repeat: no-repeat;
    background-position: center;
     background-size: contain;
    width:2em;
    height:1em;
}
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
@media only screen and (orientation: portrait) {

    #main {

        padding-left: 1vw;
        padding-right: 1vw;
        
    }

    #top_Space {
        padding-left:35%;
        text-align: left;
        font-size: medium;
        background-color: rgb(212, 164, 60);
        vertical-align: center;
        font-family: greatvibes;
          background-size: 30%;
    }

    #menu_box {
        width: 100%;
        display: flex;
        flex-flow: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.3em;
        margin: auto;
        position: sticky;
        top: 0px;
        left: 0px;
        background-color: #F7F3E9;
        z-index: 99;
        justify-content:flex-start;
    }

    .shifted_box {
        width: 100%;
        display: flex;
        flex-flow: column;
        align-items: center;
        gap: 0px;
        margin: auto;
        margin-top:2em;
        margin-bottom:1em;
        box-sizing: border-box;
    }

    .shifted_box_column {
        width: 100%;
        display: flex;
        flex-flow: column;
        align-items: center;
        gap: 3em;
        margin: auto;
        margin-top: 2em;
        padding-left: 5%;
        padding-right: 5%;
         box-sizing: border-box;
    }


    .shifted_left {
        width: 95%;
        min-width: 50%;
    }

    .medium {
        font-size: medium;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 1px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        background-color: white;
      
    }



    #map {
        width: 90%;
        display: block;
        clear: both;
        margin: auto;

    }


    
#about_life {
    border: 0.5em solid #7C7C7A;
}


#about_exam {
    border: 0.5em  solid #7C7C7A;
}

#about_paintings {
    border: 0.5em  solid #7C7C7A;
}

#about_local {
    border: 0.5em  solid #7C7C7A;
}

#about_sculptures {
    margin-top: 3em;
    ;
    border: 0.5em  solid #7C7C7A;
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#about_press {
    margin-top: 3em;
    border: 0.5em  solid #7C7C7A;
}


.gallery-item-long {
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
   
}
}