/*
Theme Name: Trummis
Author: Jonas Lesser
Description: WordPress-tema för föräldrakooperativet Trumslagaren
Version: 0.86
License: MIT
*/

@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@800&family=Comfortaa:wght@700&family=Sniglet:wght@400&display=swap');

:root {
    --primary-green: #6fa653;
    --dark-green: #435c36;
    --light-green: #d6e6c0;
    --light-background: #f0f3e9;
    --dark-orange: #907020;
    --link-color: #599043;
    --mustard: #d0963f;
    --light-mustard: #f0cc96;
    --lilac: #b380c3;
    --light-lilac: #e6c0f6;
}

html {
    font-size: 16px;
}

@media screen and (max-width: 1199px) {
    html {
        font-size: 13px;
    }
}

@media screen and (max-width: 939px) {
    html {
        font-size: 10px;
    }
}

body {
    margin: 0;
    font-family: 'Sniglet', cursive;
    font-weight: 400;
    font-style: normal;
    color: #000000;
    background-color: var(--light-background);
}

body.home {
    background-color: var(--light-green);
}

h1 {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    margin: 0;
    color: var(--dark-green);
}

h2 {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    margin: 0;
    color: var(--dark-green);
}

h3 {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 0;
    color: var(--dark-orange);
}

p {
    margin-block-start: 0.5em;
}

li {
    margin-bottom: 1em;
}

.wp-block-image img {
    border-radius: 5em;
    margin-top: 0.5em;
}

header {
    position: relative;
    text-align: left;
    padding-top: 1em;
    padding-bottom: 0;
    background-color: var(--primary-green);
    z-index: 1;
}

.mustard header {
    background-color: var(--mustard);
}    

.lilac header {
    background-color: var(--lilac);
}    

.home header {
    text-align: center;
    background-color: #ffffff;
}

.mobile-browser header {
    font-size: 0.6rem;
}

.logga {
    width: 25em;
    margin-left: 10em;
}

.mobile-browser .logga {
    margin-left: 5em;
}

.home .logga {
    width: 45em;
    margin: 0;
}

.hamburger {
    position: absolute;
    right: 5em;
    top: 1.4em;
}

.hamburger div {
    width: 3.6em;
    height: 0.6em;
    background-color: #ffffff;
    border-radius: 0.3em;
    margin-bottom: 0.6em;
}

.menu-navigation-menu-container {
    position: absolute;
    right: 2em;
    top: 1.8em;
    font-size: 1.2em;
}

.desktop-menu {
    list-style: none;
    display: flex;
    gap: 2em;
}

.desktop-menu li {
    position: relative;
}

.desktop-menu a {
    text-decoration: none;
}

.desktop-menu li > a {
    color: var(--light-green);
}

.mustard .desktop-menu li > a {
    color: var(--light-mustard);
}

.lilac .desktop-menu li > a {
    color: var(--light-lilac);
}

.desktop-menu li:hover > a {
    color: #ffffff;
}

.desktop-menu li ul {
    position: absolute;
    width: max-content;
    min-width: 8em;
    top: 100%;
    left: -1em;
    list-style: none;
    background: var(--primary-green);
    padding: 0 1em;
    border-radius: 0 0 0.5em 0.5em;
    box-shadow: 1px 3px 3px rgba(0,0,0,0.5);
    opacity: 0;
    line-height: 0;
    transition: opacity 0.2s, line-height 0.3s;
}

.mustard .desktop-menu li ul {
    background: var(--mustard);
}

.lilac .desktop-menu li ul {
    background: var(--lilac);
}

.desktop-menu li ul li {
    margin: 0.5em 0;
}

.desktop-menu li:hover > ul {
    opacity: 1;
    line-height: 1;
}

.mobile-menu {
    height: 0;
    width: max-content;
    list-style: none;
    text-align: left;
    font-size: 2em;
    overflow: hidden;
    margin-top: 1em;
    padding: 0 1em 0.1em;
    background: var(--primary-green);
    border-radius: 0 0 1em 1em;
    interpolate-size: allow-keywords;
    transition: height 0.3s;
}

.mustard .mobile-menu {
    background: var(--mustard);
}

.lilac .mobile-menu {
    background: var(--lilac);
}

.mobile-menu.active {
    height: auto;
}

.mobile-menu a {
    color: #ffffff;
}

.mobile-menu > li > a {
    display: inline-block;
    margin-bottom: 0.5em;
}

.mobile-menu li ul {
    list-style: none;
    padding-left: 1em
}

.mobile-menu li ul li {
    margin-bottom: 0.5em;
}   

.wave {
    position: absolute;
    width: 100%;
    height: 2em;
}

.mustard .wave .dark {
    fill: var(--mustard);
}

.mustard .wave .light {
    fill: var(--light-mustard);
}

.lilac .wave .dark {
    fill: var(--lilac);
}

.lilac .wave .light {
    fill: var(--light-lilac);
}

.content {
    font-size: 1.2em;
    height: calc(100vh - 12em);
    overflow: auto;
    padding: 4em 15% 1em 15%;
    margin-bottom: 2em;
}

.mobile-browser .content {
    height: calc(100vh - 9em);
    padding: 3em 5% 1em 5%;
}

.home .content {
    padding-top: 2em;
    height: calc(100vh - 12.5em);
}    

.home .page-links {
    display: flex;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2em;
}

.content a {
    color: var(--link-color);
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 1em;
    border: 0.15em solid var(--link-color);
    padding: 0.2em 0.6em;
}

.home.mobile-browser .page-links {
    font-size: 0.7rem;
}

.home .button {
    width: 12em;
    background-color: #ffffff;
    border: 0.15em solid var(--primary-green);
    border-radius: 2em;
    box-shadow: 0.4em 0.3em 0.7em -0.2em var(--dark-green);
    text-align: center;
    text-decoration: none;
    padding: 0.5em;
    margin: 0 1em;
}

.home .button img {
    width: 6em;
}

.wp-block-quote {
    padding: 0.1em 1em;
    background-color: var(--light-green);
    border-radius: 1em;
}

.content iframe {
    margin-top: 1em;
    width: 100%;
    aspect-ratio: 1.6;
    border: 0.15em solid var(--primary-green);
    border-radius: 2em;
}

footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 0.5em 0;
    display: flex;
    justify-content: center;
    background-color: var(--primary-green);
}

.mustard footer {
    background-color: var(--mustard);
}    

.lilac footer {
    background-color: var(--lilac);
}    

footer span {
    color: #ffffff;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    line-height: 2;
}

.small-emblem {
    height: 1.5em;
    margin: 0.1em 0.4em 0;
}
