:root {
    --primary-color: #F58B00;
    --secondary-color: #E03C00;
    --light-color: #FFFFFF;
    --dark-color: #0D1F22;
    --details-color: #00CEE0;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    max-width: 100vw;
    background-color: #ffd1a6;
}


header {
    background-color: var(--primary-color);
    display: grid;
    grid-template-columns: repeat(2, auto);
    align-items: center;
    gap: 20px;
}

h1 {
    color: var(--light-color);
    font-size: 1.6rem;
    justify-self: center;
    padding: 10px;
    line-height: 1.5rem;
}

.nav {
    display: flex;
    justify-content: center;
    flex: 1 1 0;
}

.nav ul {
    display: flex;
}

.nav ul li{
    list-style-type: none;
}
.nav ul li a{
    display: inline-block;
    text-decoration: none;
    color: var(--light-color);
    font-size: 1.5rem;
    padding: 20px;
    transition: background-color 0.1s ease;
    position: relative;
}

.nav ul li a::after{
    position: absolute;
    content: "";
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    height: 4px;
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
    transform: translateX(-50%);
}
.nav ul li a:hover::after{
    width: 40%;
}

#sidebar_button {
    display: none;
    color: var(--light-color);
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 11;
}

.sidebar_nav {
    display: none;
    position: fixed;
    width: 300px;
    height: 100vh;
    top: 0px;
    left: 0px;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: var(--secondary-color) 5px solid;
    z-index: 10;
}

.sidebar_nav_active {
    transform: translateX(0%);
}

.sidebar_button_active {
    transform: rotate(90deg);
}

.sidebar_nav ul li a{
    display: inline-block;
    text-decoration: none;
    color: var(--light-color);
    font-size: 1.5rem;
    padding: 30px 20px 30px 20px;
    width: 100%;
    position: relative;
}

.sidebar_nav ul li a::after{
    position: absolute;
    content: "";
    background-color: var(--secondary-color);
    bottom: 20px;
    left: 5%;
    height: 5px;
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.sidebar_nav ul li a:hover::after{
    width: 40%;
}

.sidebar_nav ul {
    width: 100%;
}

footer {
    display: flex;
    background-color: var(--primary-color);
    width: 100%;
    height: 150px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}
footer p{
    color: var(--light-color);
    margin: 20px;
    font-size: 1.2em;
    text-align: center;
}


/*Gör om nav till en toggle sidebar*/
@media (max-width: 600px) {
    .nav{
        display: none;
    }
    .sidebar_nav {
        display: grid;
    }
    #sidebar_button {
        display: inline-block;
    }
    .sidebar_nav {
        display: grid;
    }
    h1 {
        padding: 20px;
    }
}