/* #menu-paavalikko {
    background-color: white;
    display: flex;
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

#menu-paavalikko a {
    padding: 32px 16px;
    font-size: 1.35em;
    position: relative;
    color: #350122;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    text-decoration: none;
}

#menu-paavalikko a:hover {
    text-decoration: none;
        position: static;
    color: white;
}

#menu-paavalikko .menu-item a:hover:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
    transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}

#menu-paavalikko a:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #a70e13;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}
 */

 #menu-paavalikko {
    display: flex;
    gap: 20px;
    position: relative;
    margin-right: 50px;
}

#menu-paavalikko a {
    text-decoration: none;
    color: white;
}

.nav-header {
    display: flex;
}

.nav-header .menu-item {
  position: relative;
  display: block;
}

.nav-header .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  display: none;
  min-width: 220px;
  background-color: #1A1A1A;
  width: max-content;
  min-width: 100%;
  padding: 0px;
  padding-top: 10px;
}

.nav-header .menu-item:last-child > .sub-menu,
.nav-header .menu-item:nth-last-child(1) > .sub-menu {
  left: auto;
  right: 0;
}

.nav-header .sub-menu a {
    color: white;
    display: block;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.nav-header .sub-menu a:hover {
    background-color: #303030;
    color: lightblue;
}

.nav-header .menu-item:hover > .sub-menu {
  display: block;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media screen and (max-width: 1200px) {
	
	.nav-header {
		justify-content: center;
        background-color: #528CFF;
        position: relative;
	}
	
	.nav-header:has(>#menu-paavalikko):before {
		font-family: dashicons;
		content: '\f333';
		cursor: pointer;
		position: relative;
		/* margin-left: 50%; */
		display: flex;
		font-size: 1.5em;
		/* padding-top: 10px; */
		/* padding-bottom: 10px; */
		justify-content: center;
        background-color: #528CFF;
        color: white;
        height: 40px;
        padding: 0px;
        margin: 0px;
        line-height: 40px;
        border: 0px;
        width: 100%;
	}
	
    #menu-paavalikko {
        flex-direction: column;
		position: relative;
		display: none;
		background-color: white;
		width: 100%;
		/*left: 50%;
		transform: translate(-50%);*/
    }
	
	.nav-header #menu-paavalikko span,
	.nav-header #menu-paavalikko .sub-menu,
	.nav-header #menu-paavalikko .sub-menu li,
	.nav-header #menu-paavalikko ul.sub-menu .sub-menu	{
		width: 100%;
	}

    /* .nav-header {
        padding: 0px;
        display: flex;
        justify-content: center;
        background-color: #528CFF;
        min-width: 40px;
        position: relative;
        height: 0px;
        top: -20px;
        overflow: hidden;
    } */

    .nav-header {
        display: grid;
        justify-content: center;
        position: relative;
        width: 100%;
        background-color: transparent;
        top: 0px;
        height: auto;
        min-width: 40px;
        background-color: #528CFF;
        width: 100%;
        overflow: visible;
        row-gap: 20px;
    }

    #menu-paavalikko {
        background-color: #528CFF;
        font-family: Roboto, serif;
        position: relative;
        z-index: 5000;
        width: 100%;
        margin-top: 0px;
        margin-bottom: 0px;
        top: -20px;
        padding-left: 0px;
        margin-right: 0px;
    }
    
    #menu-paavalikko li {
        border-bottom: 1px solid #528CFA;
    }
    
    #menu-paavalikko li a {
        padding: 0px;
        text-decoration: none;
        color: white;
        text-transform: none;
        font-size: 16px;
        padding: 16px;
    }

    #menu-paavalikko > li {
        margin-top: 10px;
        margin-left: 0px;
    }
    
    #menu-paavalikko .sub-menu {
        position: absolute;
        z-index: 2000;
        left: 0px;
        background-color: rgb(250,250,250);
    }
    
    #menu-paavalikko .sub-menu a {
        color: black;
    }
}

@media screen and (max-width: 800px) {

    .site-header .nav-header {
        display: grid;
        row-gap: 20px;
        grid-template-columns: 100%;
    }
    
    .title-area {
        left: 0px;
    }
    
    .header-nav-row {
        grid-row: 2;
        flex-direction: column-reverse;
        margin-right: auto;
        margin-left: auto;
        height: auto;
        width: 90%;
    }
    
    .nav-header {
        width: 100%;
        background-color: transparent;
        top: 0px;
        height: auto;
        background-color: #528CFF;
        width: 100%;
        overflow: visible;
    }

    
    .header-contact-info {
        width: 100%;
        justify-content: center;
        display: flex;
        margin-bottom: 20px;
        font-size: 21px;
    }
    
    .header-contact-info a {
        margin-left: 0px;
        display: block;
        text-align: center;
        width: 100%;
        color: #350122;
    }

  
}