/*
Theme Name: Villanyautósok
Theme URI: https://villanyautosok.hu
Description: Villanyautósok Theme 
Author: Tibor Antalóczy & Assembly
Author URI: https://villanyautosok.hu
Version: 2023.01
*/

/* Alapbeállítások */

body, input, button, select, textarea {
    font-family: 'Lexend', sans-serif;
}

body{
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    opacity:0;
}

body.noscroll {
    overflow: hidden;
}

.hide {
display:none !important;
}

.center {
position:absolute;
left:50%;
top:50%;
transform:translateX(-50%) translateY(-50%);
}

.hcenter {
position:absolute;
left:50%;
transform:translateX(-50%);
}

.vcenter {
position:absolute;
top:50%;
transform:translateY(-50%);
}

#reword {
    display: none;
}

.reword-icon-active {
    display: block !important;
}

.word {
    font-weight: normal;
    font-style: italic;
}

.tablecont {
    overflow-x: auto;
    margin: 20px 0;
    padding: 10px 1px;
    width: 100%;
    box-sizing: border-box;
}

table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #709c40cc;
}

tr:nth-child(even) {background: #f8f8f8}
tr:nth-child(odd) {background: #FFF}

th {
    background-color: #709c40;
    color:white;
    padding: 15px 10px;
    text-align: center;
    font-weight: normal;
    font-size: 15px;
    line-height: 1.5em;
}

td {
    padding: 10px;
    font-size: 13px;
    text-align: center;
    line-height: 1.5em;
    box-shadow: 0 0 0 0.5px #709c4055 inset;
}

th:nth-child(even) {box-shadow: 0 0 0 200px #00000011 inset;}
td:nth-child(odd) {background: #00000005;}
.dark td:nth-child(odd) {background: #ffffff05;}

/* Animációk */

.fast {
  transition: all 150ms ease;
}

.anim {
  transition: all 300ms ease;
}

.slow {
  transition: all 600ms ease;
}


/* Hírek */

.hir {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.hirkep {
    width: 30%;
    height: 100%;
    position: absolute;
    font-size: 0;
    line-height: 0;
}

.hir img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#kategoria {
    position: relative;
    font-size: 11px;
    bottom: 0;
    z-index: 100;
    left: 0;
    padding: 7px 15px;
    background: linear-gradient(90deg, #49a939, #76d41c);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 1px;
    line-height: 1.5em;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.kategoria {
    position: absolute;
    font-size: 11px;
    bottom: 0;
    z-index: 100;
    left: 0;
    padding: 7px 15px;
    background: linear-gradient(90deg, #49a939, #76d41c);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 1px;
    line-height: 1.5em;
}

.hirtext {
    padding: 15px 15px;
    margin-left: 30%;
    line-height: 1.5em;
    font-size: 16px;
    position: relative;
    color:#666;
}

.hirinfo {
    color: #999;
    font-size: 14px;
    font-weight: 300;
}

.hirinfo a {
    color: #888;
}

#comments {
    position: relative;
    display:inline-block;
    background-color: #f4f4f4;
    border-radius: 3px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    padding: 0px 8px;
}

.comments {
    position: absolute;
    right: 20px;
    background-color: #f4f4f4;
    border-radius: 3px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    padding: 0px 8px;
}

.comments span {
    display: inline-block;
    vertical-align: middle;
}

.bubble {
    background-image: url(images/bubble.svg);
    margin-left: 5px;
    font-size: 0;
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;    
}

.hir h2 {
    font-size: 18px;
    color: #333;
    margin: 2% 0;
}

.lead {
    font-weight: 300;
    font-size: 15px;
    line-height: 150%;
}

.hir a, .hirinfo a {
text-decoration:none;
}

#hirek .hir:first-child {
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

#hirek .hir:first-child .hirkep {
    width: 100%;
    height: auto;
    position: relative;
}

#hirek .hir:first-child .hirtext {
    padding: 20px;
    font-size: 18px;
    margin-left:0;
}

#hirek .hir:first-child h2 {
    font-size: 22px;
}



main {
    box-sizing: border-box;
    width: 100%;
    padding: 40px 2.5% 40px calc(320px + 2.5%);
}

#maintop {
    margin: 0px 0px 30px;
    box-sizing: border-box;
    position: relative;
}

#darkmodebutton {
    width: 30px;
    height: 30px;
    background-color: #eee;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
    border-radius: 5px;
    position:relative;
}

#darkmode {    
  background-image: url(images/nap.svg);
}

#lightmode {    
  background-image: url(images/hold.svg);
}

.darkmodebtn {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    top: 0;
    position: absolute;
    opacity: 0;
    transition: all 300ms ease;
}

.dark #lightmode {
    opacity: 1;
}

.light #darkmode {
    opacity: 1;
}

#automode {
    font-size: 9px;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 1px;
    opacity:0;
    transition: all 300ms ease;
}

#autotext {
    position: absolute;
    width: 100%;
    bottom: -10px;
}  

.automode #automode {
    opacity:1;
}   

#currentdate {
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
    margin-right: 20px;
    background-color: #fafafa;
    padding-right: 20px;
    position: relative;
    z-index: 10;
}

.dark #currentdate {
    background-color: #242731;
}

#topline {
    display: inline-block;
    background-color: #e2e2e2;
    width: calc(100% - 190px);
    height: 2px;
    vertical-align: middle;
    left: 60px;
}

#topbuttons {
    width: auto;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    right: 0;
}

#topbuttons a {
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
    background-repeat: no-repeat;
    background-position: center;
}

#spotifybutton {
    background-image: url(images/spotify.svg);
        width: 22px;
}

#youtubebutton {
    background-image: url(images/youtube.svg);
       width: 26px;
}

#facebookbutton {
    background-image: url(images/facebook.svg);
        width: 22px;
}

#mainleft {
    display: inline-block;
    vertical-align: top;
    padding: 0px 1.5% 0px 0px;
    box-sizing: border-box;
    width: 67%;
    margin-bottom: 20px;
}

#hirhead {
    margin-bottom: 20px;
    position: relative;
}

.wrapper{
    max-width: 1600px;
    position: relative;
    padding: 0;
}

/* Button */

.button {
    padding: 18px 28px;
    text-transform: uppercase;
    font-size: 14px;
    background-color: #709c40;
    color: #FFF !important;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    font-weight: bold;
    -webkit-appearance: none;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
}

.button:hover {
    background-color: #9c5440;
}

.cancel {
background-color:#DE716E;
}

.editbutton {
    background-image: url(images/edit.svg);
    width: 20px;
    height: 20px;
    display: block;
    background-size: contain;
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 100;
    font-size: 0;
    border: none;
    background-color: transparent;
    cursor:pointer;
}

.layout {
padding:5% 0;
position: relative;
overflow: hidden;
}

.layoutimage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.formline {
margin-bottom: 10px;
}

label {
    display: block;
    vertical-align: top;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#fieldboxes {
font-size:0;
}

.fieldbox {
width: 33%;
    display: inline-block;
    margin-bottom: 20px;
}

.field {
    padding: 10px 15px;
    font-size: 16px;
    display: inline-block;
    border: none;
    width: 100%;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.fieldbox .field {
       width: calc(100% - 42px);
}

.dropdown {
width: calc(100% - 110px);
  padding: 5px;
  border-radius: 0px;
  border: 1px solid #BBB;
}

textarea {
    max-width: 100%;
    height:240px;
}

.infotext {
  font-size: 12px;
  text-align: right;
  opacity: 0.7;
}

#fixheader{
    z-index: 300;
    position: fixed;
    width: 320px;
    opacity: 1;
    left: 0;
    height: 100%;
}

#fixheader a {
text-decoration:none;
}

header {
position:relative;
height:100%;
}

#rightline {
    position: absolute;
    right: -2px;
    height: calc(100% - 60px);
    background-color: #e2e2e2;
    width: 2px;
    top: 0;
    margin: 30px 0;
}
    
.xpadding {
    margin-left: 12.5%;
    margin-right: 12.5%;
}

#logo {
    position: relative;
    line-height: 0;
    display: block;
    font-size: 0;
    width: 240px;
    padding: 40px 0 30px;
    margin: 0 auto;
}

#logo img {
    height: auto;
    width: 100%;
}

#mobilmenu {
    height: calc(100% - 170px);
    overflow-y: auto;
    position:relative;
    z-index:5;
}

#topmenu {
    position: relative;
    width: 100%;
}

#footer {
position: relative;
    bottom: 0;
    padding-bottom: 30px;
    font-size: 14px;
    line-height: 1.5em;
    width: auto;
    box-sizing: border-box;
    padding-top: 20px;
}

#footer a {
    color: #444;
    padding: 2px 0;
    display: block;
}

#copyright {
padding-top: 20px;
    color: #aaa;
}

#copyright span {
    display: block;
}

#kereses {
    position: relative;
    box-sizing: border-box;
    margin-bottom: 30px;
    transition: all 300ms ease;
}

#searchsubmit {
cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    height: 100%;
    background-image: url(images/kereses.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    aspect-ratio: 1 / 1;
    z-index: 10;    
}

#kereses input::placeholder {
  color: #ccc;
  opacity: 1;
}

/* Menü */

.nav {
	list-style:none;
  padding:0;
  margin:0;
}

.nav li{
    display: block;
    position: relative;
    transition: all 300ms ease;
    overflow: hidden;
    height: 40px;
}

.nav li a{
    display: block;
    text-decoration: none;
    color: #333;
    padding: 10px 0 10px 12.5%;
    font-size: 16px;
    line-height: normal;
    width: 100%;
    box-sizing: border-box;
    transition: all 300ms ease;
}

.nav li a::before {
    content: '';
    width: 30px;
    height: 20px;
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: bottom;
    margin-right: 5px;
}

#menu-item-144447 a::before {background-image: url(images/fooldal.svg);}
#menu-item-144450 a::before {background-image: url(images/villanyautos-leszek.svg);}
#menu-item-144452 a::before {background-image: url(images/hirek.svg);}
#menu-item-144455 a::before {background-image: url(images/cikkek.svg);}
#menu-item-144459 a::before {background-image: url(images/tesztek.svg);}
#menu-item-144462 a::before {background-image: url(images/adatlapok.svg);}
#menu-item-144465 a::before {background-image: url(images/podcast.svg);}
#menu-item-144468 a::before {background-image: url(images/videok.svg);}
#menu-item-144472 a::before {background-image: url(images/hirlevel.svg);}
#menu-item-144475 a::before {background-image: url(images/hirdetes.svg);}
#menu-item-144479 a::before {background-image: url(images/archivum.svg);}


.nav li a i {
    display: inline-block;
    margin-right: 20px;
    color: #a0a0a0;
    width:20px;
}

.nav ul {
    position: absolute;
    left: 100%;
    float: left;
    z-index: 99999;
    padding: 0;
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s,opacity 0.3s linear;
    top: 0;
}

.nav li:hover > ul{
  visibility:visible;
  opacity:1;
  transition-delay:0s;
}

.nav ul ul{
	top: 0;
	left:100%;
}

.nav ul li {
width: 100%;
}

.nav ul a{
height: auto;
line-height: 1em;
padding: 15px 20px;
border-left: none;
border-right: none;
width: initial;
white-space: nowrap;
}

.nav li::before {
    background-color: #709c40;
    position: absolute;
    content: '';
    width: 0px;
    height: 100%;
    transition: all 300ms ease;
-webkit-transition: all 300ms ease;
-moz-transition: all 300ms ease;
-o-transition: all 300ms ease;
}

.nav li:hover:before {
    background-color: #709c40;
    position: absolute;
    content: '';
    width: 5px;
    height: 100%;
}

.nav li:active, .nav li:focus, .clicked{
background-color: #00000022;
}

.current-menu-item {
    background-color: #f4f4f4;
}

.current-menu-item:before {
    width: 5px !important;    
}

#menutogglecont {
    position: relative;
    background-color: #eee;
    cursor:pointer;
    color:#88888888;
}

.dark #menutogglecont {
background-color:#1D1E23;
}

#menutoggle {
    padding: 15px 15px 15px 50px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    box-sizing: border-box;   
}

.arrow-down {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    height: 100%;
    background-image: url(images/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    z-index: 10;
    width: 15px;
  transition: all 600ms ease;    
}

.rotated {
  transform: rotate(180deg);
}

.dark .arrow-down {
    background-image: url(images/arrow-down-white.svg);
}

#menuburger {
    display: inline-block;
    position: absolute;
    left: 0;
    width: 22px;
    bottom: 0;
    cursor: pointer;
    z-index: 1000;
    padding: 13px 5px;
    line-height: 0;
    font-size: 0;
}

#topmenu.closed li {
height:0;
}

#hamburger {
display:none;
}

.hambi div {
  background-color: #333;
  height: 2px;
  margin: 4px auto;
  border-radius: 1px;
	transition: all 300ms ease;
}

.dark .hambi div {
  background-color: #fff;
}

.hambitox .x1 {
  transform: rotateZ(45deg) translateY(4px) translateX(4px);
  -webkit-transform: rotateZ(45deg) translateY(4px) translateX(4px);
  -moz-transform: rotateZ(45deg) translateY(4px) translateX(4px);
  -ms-transform: rotateZ(45deg) translateY(4px) translateX(4px);
  -o-transform: rotateZ(45deg) translateY(4px) translateX(4px);
}

.hambitox .x2 {
  transform: rotateY(90deg);
  -webkit-transform: rotateY(90deg);
  -moz-transform: rotateY(90deg);
  -ms-transform: rotateY(90deg);
  -o-transform: rotateY(90deg);
}

.hambitox .x3 {
  transform:rotateZ(-45deg) translateY(-4.5px) translateX(4.5px);
  -webkit-transform:rotateZ(-45deg) translateY(-4.5px) translateX(4.5px);
  -moz-transform:rotateZ(-45deg) translateY(-4.5px) translateX(4.5px);
  -ms-transform:rotateZ(-45deg) translateY(-4.5px) translateX(4.5px);
  -o-transform:rotateZ(-45deg) translateY(-4.5px) translateX(4.5px);
}

.editpostlink {
    position: relative;
    display: inline-block;
    margin-left: 35px;
    vertical-align: top;
    width: 0;
    height: 0;
    margin-top: 5px;
}

.ad {
    background-color: #f0f0f0;
    position: relative;
    text-align: center;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.1) inset;
    border-radius: 2px;
    min-height: 30px;
}

.closedad {
height:30px !important;
}

#master-banner {
    width: 100%;
    height: 250px;
    margin-bottom: 30px;
}

#lead-banner {
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
}

#cutout-banner {
    width: 100%;
    height: 100vh;
    margin-bottom: 30px;
    overflow: hidden;
}

#cutout-banner .adbox {
    clip: rect(0, auto, auto, 0);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align:left;
}

#cutout-banner img {
    width: 90%;
    height: 100%;
    position: fixed;
    top: 0;
    max-width: 785px;
    object-fit: contain;
}

.post {
    padding: 0px 0;
    position: relative;
    margin: 20px 0 20px;
}

.entry {
position:relative;
z-index:100;
line-height:1.5em;
}

.entry a {
	color: #709c40;
}

.entry a:hover{
	color: #709c40;
}

.entry img {
max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.entry iframe {
    max-width: calc(100% - 1px);
}

iframe[src*="youtube.com"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1.15;
}

.wpps_container {
    width: 100% !important;
    height:400px !important;
}

.gallery .gallery-item {
    margin-top: 0 !important;
    line-height: 0 !important;
    margin-bottom: 0 !important;
}

.gallery-columns-4 .gallery-item {
    width: 50% !important;
}

.gallery img {
    border: none !important;
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 8px;
}

iframe[src*="datawrapper.dwcdn.net"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1.2;
    margin: 30px 0px;
}

.dark iframe[src*="datawrapper.dwcdn.net"] {
filter: invert(1);
}

blockquote {
    background-color: #709c40;
    padding: 20px 40px 20px 110px;
    border-radius: 20px;
    margin: 30px 0;
    color: white;
    background-image: url(images/quote.svg);
    background-repeat: no-repeat;
    background-size: 80px;
    background-position: center left 40px;
    font-style: italic;
}

.alignright {
  float: right;
  margin: 0 0 2% 3%;
}

.alignleft {
  float: left;
margin: 0 3% 2% 0;
}

.alignleft, .alignright {
width:40%;
  font-size: 0;
    line-height: 0;
}

.alignleft img, .alignright img {
width:100%;
height:100%;
}

.aligncenter {
    clear: both;
    width: 100% !important;
}
    
.wp-caption-text {
    font-size: 13px !important;
    margin: 0;
    padding: 5px 10px;
    line-height: 1.4em;
}

.torles {
  position: absolute;
  right: -5px;
  top: -5px;
  background-color: #FFF;
  border: 3px solid #D64642;
  color: #D64642;
  text-decoration: none;
  width: 15px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.plus {
cursor:pointer;
}

#adform {
display:block;
}

.half {
    display: inline-block;
    width: 50%;
    padding: 20px 0;
    box-sizing: border-box;
}

.firsthalf {
  padding-right:20px;
}

aside {
}

aside#main-sidebar {
    display: inline-block;
    list-style: none;
    padding: 20px 20px;
    box-sizing: border-box;
    width: 32%;
    border-radius: 5px;
    float: right;
}

#left-sidebar {
    margin-top: 20px;
    text-align: center;
}

aside a {
color:#709c40;
}

.clear {
clear:both;
}

/* Darkmode */

/* scrollbar dark mode */

/* Firefox - a body és a #mobilmenu elemekre */
body.dark, body.dark #mobilmenu {
  scrollbar-width: thin;
  scrollbar-color: #343847 #1D1E23;
}

/* Webkit böngészők (Chrome, Safari, új Edge) - a body elemre */
body.dark::-webkit-scrollbar {
  width: 12px;
}

body.dark::-webkit-scrollbar-track {
  background: #1D1E23;
}

body.dark::-webkit-scrollbar-thumb {
  background-color: #343847;
  border-radius: 10px;
  border: 3px solid #1D1E23;
}

/* Webkit böngészők - a #mobilmenu elemre */
body.dark #mobilmenu::-webkit-scrollbar {
  width: 12px;
}

body.dark #mobilmenu::-webkit-scrollbar-track {
  background: #1D1E23;
}

body.dark #mobilmenu::-webkit-scrollbar-thumb {
  background-color: #343847;
  border-radius: 10px;
  border: 3px solid #1D1E23;
}

/* scrollbar dark mode vége*/

body.dark {
    background-color: #242731;
    color:#C5C5C5;
}

body.light {
    background-color:#fafafa;
    color: #333;
}

.dark input, .dark textarea, .dark select {
  color-scheme: dark;
}

.dark .current-menu-item, .dark .field, .dark textarea, .dark select, .dark .ad {
background-color:#1D1E23;
    color: white;
}

.dark .nav li a, .dark .hir h2, .dark #footer a {
color:#ECECEC;
}

.dark #rightline, .dark #topline {
background-color:#1D1E23;
}

.dark .hirinfo, .dark .hirtext {
color:#C5C5C5;
}

.dark article.hir {
    background-color: #1D1E23;
}    

.dark .comments, .dark #comments {
    background-color: #1d1e23;
    color: #C5C5C5;
}

.dark .kategoria {
color:#1D1E23;
}

.dark tr:nth-child(even) {background: #242731}
.dark tr:nth-child(odd) {background: #1D1E23}

@media screen and (max-width: 1400px) {
.xpadding {
margin-left:7%;
margin-right:7%;
}

.nav li a {
padding-left:7%;
padding-right:7%;
}

#fixheader {
    width: 280px;
}

main {
    padding: 40px 2.5% 40px calc(280px + 2.5%);
}
}

@media screen and (max-width: 1200px) {
.xpadding {
margin-left:12.5%;
margin-right:12.5%;
}

.nav li a {
padding-left:12.5%;
padding-right:12.5%;
}

#fixheader {
    width: 320px;
}

main {
    padding: 40px 2.5% 40px calc(320px + 2.5%);
}

#mainleft {
    width: 100%;
    padding: 0;
}

aside#main-sidebar {
    width: 100%;
    float: none;
}
}

@media screen and (max-width: 1000px) {
.xpadding {
margin-left:7%;
margin-right:7%;
}

.nav li a {
padding-left:7%;
padding-right:7%;
}

#fixheader {
    width: 280px;
}

main {
    padding: 40px 2.5% 40px calc(280px + 2.5%);
}
}

@media screen and (max-width: 800px) {
.gallery-columns-5 .gallery-item {
    width: 50% !important;
}

.gallery-columns-5 .gallery-item:nth-child(3), .gallery-columns-5 .gallery-item:nth-child(4), .gallery-columns-5 .gallery-item:nth-child(5) {
    width: 33.33% !important;
}

.xpadding {
margin-left:7%;
margin-right:7%;
}

.nav li {
    height: 50px;
}

.nav li a {
padding: 15px 7% 15px 7%;
}

#fixheader {
    width: 100%;
    height: 60px;
    bottom: 0;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

.dark #fixheader {
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}

header {
    position: absolute;
    width: 100%;
    height: 100%;
}

#logo {
    margin: 15px auto 15px;
}

#mobilmenu {
    position: fixed;
    z-index: 1;
    bottom: 60px;
    width: 100%;
    background-color: white;
    height: calc(100% - 59px);
    top: 100%;
    box-shadow: 5px 0 5px -5px rgba(0,0,0,0.1), 0 200px 0 0 #fff;
    left: 0;
    overflow-y: auto;
}

#topmenu {
    position: relative;
    height: auto;
    width: 100%;
}
    
.dark #mobilmenu {
background-color:#242731;
box-shadow: 5px 0 5px -5px rgba(0,0,0,0.1), 0 200px 0 0 #242731;
}

#mobilmenu.menuon {
    top: 0px;
}

#footer {
    display: block;
    z-index: 10;
}

#copyright {
padding-top: 10px;
}

#copyright span {
    display: inline-block;
}

#logo {
width: 100%;
    z-index: 10;
    height: 100%;
    position: absolute;
    top: 0;
    margin: 0;
    padding: 18px 15%;
    box-sizing: border-box;
    text-align: center;
}

.light #logo {
    background-color: #f8f8f8;
}

.dark #logo {
    background-color: #242731;
}

#logo img {
    height: auto;
    max-width: 210px;
    width: 80%;
}

#searchon {
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    border: none;
    height: 100%;
    background-image: url(images/mobilsearch-black.svg);
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1 / 1;
    z-index: 100;
}

.dark #searchon {
    background-image: url(images/mobilsearch-white.svg);
}

#searchexit {
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    border: none;
    height: 100%;
    background-image: url(images/x-black.svg);
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1 / 1;
    z-index: 100;
    background-color: #f8f8f8;
}

.dark #searchexit {
    background-color: #242731;
    background-image: url(images/x-white.svg);    
}

#kereses {
position: absolute;
    height: 100%;
    width: 100%;
    margin: 0;
    bottom: -100%;
    z-index: 10000;
    transition: all 300ms ease;
    box-sizing: border-box;
    padding-left: 60px;
    padding-right: 60px;
}

#kereses.searchon {
bottom: 0;
}

input#search {
    position: absolute;
    z-index: 10;
    height: calc(100% - 10px);
    width: calc(100% - 124px);
    bottom: 0;
    box-sizing: border-box;
    margin-bottom: 5px;
    margin-left: 2px;
}    

#searchsubmit {
    background-color: #f8f8f8;
    background-image: url(images/mobilsearch-black.svg);
    width: 60px;
}

.dark #searchsubmit {
    background-color: #242731;
    background-image: url(images/mobilsearch-white.svg);
}

#hamburger {
    display: inline-block;
    position: absolute;
    right: 0;
    width: 22px;
    bottom: 0;
    cursor: pointer;
    z-index: 1000;
    padding: 19px;
    line-height: 0;
    font-size: 0;
}

#mobilmenu.menuon {
    left: 0;
    box-shadow: 5px 5px 50px rgba(0,0,0,0.2);
}

main {
padding: 5% 5% 120px 5%;
}
}

@media screen and (max-width: 600px) {

.hirkep {
    width: 100%;
    position: relative;
}

.hir .hirtext {
    margin-left: 0;
}
}

@media screen and (max-width: 500px) {
#darkmodebutton {
    margin-right: 10px;
}

#topbuttons a {
    margin-left: 10px;
}

#currentdate {
    margin-right: 10px;
}

#topline {
    width: calc(100% - 180px);
}

.half {
    padding: 20px 0;
    width: 100%;
    display: block;
}

.button {
    display: block;
    width: 100%;
}
}

@media screen and (max-width: 400px) {
#darkmodebutton {
    margin-right: 5px;
}

#topline {
width: calc(100% - 170px);
}

#topbuttons a {
margin-left: 7px;
}

#currentdate {
    margin-right: 5px;
    font-size: 14px;
}
}

@media screen and (max-height: 400px) {
#footer {
    position: relative;
    padding-top: 20px;
}

}

@media screen and (max-height: 620px) {
.nav li a {
    padding-top: 10px;
    padding-bottom: 10px;
}
}