/*

Theme Name: Custom Picea Theme

 */

html{
    --picea-green: #99A301;
    --picea-red: #C11F28;
    --menu-width: 5rem;
    --menu-height: 3.5rem;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    background-color: var(--picea-green)
}

.menu-button{
    width: var(--menu-width);
    height: var(--menu-width);
    overflow-y: clip;
    position: fixed;
    top: 4rem;
    right: 2rem;
    display: inline-block;
}

.menu-button.active{
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    background-color: #00000033;
    svg{
        display: none;
    }
    .menu{
        height: 100%;
        display: flex;
        align-items: flex-start;
        width: 20rem;
        align-self: end;
        position: absolute;
        background-color: white;
        top: 0;
        right: 0;
        padding-top: 0;
        padding-right: 0;
        ul{
            padding-top: 0;
            padding-right: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
    }
    .menu-item{
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

section {
    /*scroll-margin-top: 2rem;*/
    height: 100vh;
    overflow: clip;
}

svg {
    width: var(--menu-width);
    height:  var(--menu-height);
    rect {
        fill: white;
        rx: 10px;
        width: var(--menu-width);
        height: var(--menu-height);
        filter: drop-shadow(-0.2rem 0.3rem 0.1rem rgba(0,0,0,0.3));
    }
    overflow: visible;
    svg{
        padding:1rem;
    }
}

.bar{
    fill: var(--picea-green);
    width: 4.4rem;
    height: 0.6rem;
    rx: 0;
}
.top{
    transform: translateY(0.4rem) translateX(calc(0.3*100/5*1%));
}
.mid{
    transform: translateY(1.5rem) translateX(calc(0.3*100/5*1%));
}
.bot{
    transform: translateY(2.5rem) translateX(calc(0.3*100/5*1%));
}

a{
    all: unset;
    padding: 1rem;
}

nav:hover{
    rect {
        fill: var(--picea-red);
    }
    .bar{
        fill: var(--picea-green);
    }
}



.menu-item {
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-overflow: ellipsis;
    text-align: right;
    color: var(--picea-green);
    padding: 1rem;
    pointer-events: none;
}

.menu-item:hover{
    color: var(--picea-red);
    cursor: pointer;
}


ul {
    list-style-type: none;
    margin-top: 0;
    padding: 1rem 1rem;
    border-radius: 5px;
}

p {
    font-family: sans-serif;
    color: white;
}

.title{
    font-family: sans-serif;
    color: white;

}

#main-content{
    padding: 4rem;
    padding-top: 10rem;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    justify-items: center;
}


#contact-content{
    padding-top: 4rem;
    background-color: white;
    overflow: clip;
}

#contact-content img{
    width: 100%;
    height: calc(100vh - 4rem);
    object-fit: contain;
}

#contact{
    display: flex;
    justify-content: center;
}

.background-image{
    display: none;
}

ul.carousel{
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0vw;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    li{
        flex: 100% 0 0;
        width: 100%;
        scroll-snap-align: center;
        img{
            max-height: 100%;
            width: auto;
        }
    }
}




