:root{
    color-scheme: light dark;

    --main-color: light-dark(green, #33cc66);
    --header-background-color: var(--main-color);
    --header-text-color: white;
}
body{
    background-color: light-dark(#ffffff, #1f1f1f);
    color: light-dark(#000000, #ffffff);
}
*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
.display-none{
    display: none !important;
}
a{
    color: var(--main-color);
    text-decoration: none;
    text-align: center;
    &:hover{
        text-decoration: underline;
    }
}
header{
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width: 100%;
    padding: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-background-color);
    div{
        display: flex;
        flex-direction: row;
        gap: 3rem;
        justify-content: space-between;
        align-items: center;
    }
    a, p{
        font-size: 1.5rem;
        color: var(--header-text-color);
    }
    h1{
        color: var(--header-text-color);
        margin-right: 1rem;
    }
}
.landing{
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    max-width: 100svw;
    width: 100%;
    justify-content: center;
    padding: 5rem;
    gap: 5rem;
    a{
        font-size: 1.5rem;
    }
    h2{
        font-size: 2rem;
    }
    #cat{
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: fit-content;
        gap: 3rem;
        #cat-head{
            display: flex;
            flex-direction: row;
            gap: 3rem;
            align-items: center;
            h1{
                margin-right: 2rem;
            }
        }
    }
}
#categories{
    box-sizing: border-box;
    gap: 2rem;
    display: flex;
    flex-direction: row;
}
.vert-sec{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: fit-content;
    padding: 1rem;
    gap: 1.5rem;
    align-items: center;
    h2{
        text-decoration: underline;
        text-align: center;
        box-sizing: border-box;
        width: 100%;
    }
    div{
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: fit-content;
        margin: 0.5rem 0;
        gap: 1rem;
        a{
            padding: 0.5rem 1rem;
            border: 3px solid light-dark(#a4a4a4, #777777);
            border-radius: 1rem;
            text-align: center;
            &:hover{
                background-color: rgba(164, 164, 164, 0.25);
                text-decoration: none;
            }
        }
    }
}
.skapa-page{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    padding-top: 6rem;
    h2{
        font-size: 2rem;
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    textarea:focus, input:focus, select:focus{
        outline: none;
    }
    form{
        display: flex;
        flex-direction: column;
        align-items: center;
        label{
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        .form-input{
            box-sizing: border-box;
            width: 15rem;
            font-size: 1rem;
            margin-bottom: 1.5rem;
            padding: 0.5rem;
            border: 2px solid var(--main-color);
            border-radius: 0.7rem;
        }
        button{
            box-sizing: border-box;
            margin-top: 0.5rem;
            padding: 0.5rem;
            width: 10rem;
            font-size: 1.5rem;
            border: 2px solid var(--main-color);
            border-radius: 1rem;
            background-color: var(--main-color);
            color: light-dark(white, black);
            &:hover{
                background-color: color-mix(in oklab, var(--main-color), light-dark(white, black) 30%);
            }
        }
    }
}
#mainprojectversions {
    box-sizing: border-box;
    width: 100%;
    max-width: 100svw;
    padding: 2rem 20svw;
    display: flex;
    flex-direction: column;
    .projectheader{
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        align-items: flex-end;  
        justify-content: space-between;
        gap: 1.25rem;
        padding: 10px 1rem 5px 1rem;
        border-bottom: 5px solid light-dark(#000, #fff);
        h2{
            font-size: 3rem;
        }
        div{
            display: flex;
            flex-direction: row;
            gap: 0.6rem;
            font-size: 1.5rem;
            span{
                color: var(--main-color);
                &:hover{
                    text-decoration: underline;
                }
            }
            ul{
                gap: 0.4rem;
                list-style: none;
                display: flex;
                flex-direction: row;
                li{
                    display: flex;
                    flex-direction: row;
                }
                > :last-child{
                    display: none;
                }
                > :nth-last-child(2) p{
                    display: none;
                }
                > :first-child{
                    display: flex !important;
                }
            }
        }
    }
    .projektoptions{
        position: relative;
        box-sizing: border-box;
        margin: 1.5rem 0;
        div{
            display: flex;
            flex-direction: row;
            gap: 1rem;
        }
        .project-management{
            box-sizing: border-box;
            align-content: center;
            text-align: center;
            text-decoration: none;
            padding: 0.5rem;
            width: fit-content;
            font-size: 1.25rem;
            border: 2px solid var(--main-color);
            border-radius: 1rem;
            background-color: var(--main-color);
            color: light-dark(white, black);
            &:hover{
                background-color: color-mix(in oklab, var(--main-color), light-dark(white, black) 30%);
                cursor: pointer;
            }
        }
        form{
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 4rem;
            padding: 1.5rem;
            gap: 0.5rem;
            border: 3px solid var(--main-color);
            border-radius: 2rem;
            background-color: light-dark(#ffffff, #1f1f1f);
            p{
                margin-bottom: 1rem;
            }
            div{
                box-sizing: border-box;
                display: flex;
                flex-direction: row;
                align-items: center;
                width: 100%;
                justify-content: space-between;
            }
            button{
                margin-top: 1rem;
            }
        }
    }
    section{
        box-sizing: border-box;
        width: 100%;
        gap: 3rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        h2{
            font-size: 2.5rem;
            color: light-dark(black, white);
            margin-bottom: 1rem;
        }
        ul{
            box-sizing: border-box;
            width: fit-content;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
    }
    .version {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 1.5rem;
        gap: 2.5rem;
        border: 3px solid light-dark(#a4a4a4, #777777);
        border-radius: 1.5rem;
        div{
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            width: fit-content;
            justify-content: space-between;
            gap: 0.5rem;
            form{
                width: 100%;
                height: fit-content;
                outline: none;
            }
            &:first-child{
                h3{
                    font-size: 1.5rem;
                    width: fit-content;
                    text-wrap: nowrap;
                }
                p{
                    font-size: 1rem;
                    width: fit-content;
                    text-wrap: nowrap;
                }
            }
        }
        > p{
            padding-top: 0.25rem;
            width: 100%;
        }
        .version-button{
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            width: 8rem;
            padding: 0.5rem 1rem;
            font-size: 1rem;
            border: none;
            border-radius: 1rem;
            outline: none;
            &:hover{
                text-decoration: underline;
                cursor: pointer;
            }
        }
        #download{
            background-color: #33cc66;
            color: black;
        }
        #delete{
            background-color: red;
            color: white;
        }
        span{
            color: red !important;
        }
    }
    #form-input{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: fit-content;
        h2{
            font-size: 2.5rem;
            color: light-dark(black, white);
            margin-bottom: 1rem;
        }
        div{
            display: flex;
            flex-direction: column;
            align-items: center;
            label{
                font-size: 1.5rem;
                margin-bottom: 0.25rem;
            }
            .form-input{
                box-sizing: border-box;
                width: 15rem;
                font-size: 1rem;
                margin-bottom: 0.5rem;
                padding: 0.5rem;
                border: 2px solid var(--main-color);
                border-radius: 0.7rem;
            }
            #fileInput{
                display: none;
            }
        }
        .butt0n{
            box-sizing: border-box;
            text-align: center;
            padding: 0.5rem;
            margin: 0.5rem 0;
            width: 10rem;
            font-size: 1.25rem;
            border: 2px solid var(--main-color);
            border-radius: 1rem;
            background-color: var(--main-color);
            color: light-dark(white, black);
            &:hover{
                background-color: color-mix(in oklab, var(--main-color), light-dark(white, black) 30%);
            }
        }
    }
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.column{
    flex-direction: column;
}

.sizing{
    height: 100vh;
}

/*bytte färg mitt i slutet*/
.br-rad-15-dark-grey{
    border: 5px, solid var(--main-color);
    border-radius: 15px;
}

.br-rad-25-dark-grey{
    border: 5px, solid var(--main-color);
    border-radius: 155px;
}

.height-60{
height: 60px;
}

.height-40{
    height: 40px;
}

.width-360{
    width: 360px;
}

.width-180{
    width: 180px;
}

.vw-70{
    width: 70vw;
}

.vw-60{
    width: 60vw;
}

.margin5vh{
    margin-top: 10vh;
    margin-bottom: 10vh;
}

.flex{
    display: flex;
}

.flexrow{
    flex-direction: row;
}

.flexevenly{
justify-content: space-evenly;
}

.pad20{
    padding:20px;
}

.pad10{
    padding:10px;
}

.padtop{
    padding-top:2vh
}

.sidepadSmall{
    margin-left: 25px;
    margin-right: 25px;
}

.delete{
    border:5px solid red;
    background-color: red;
    color: var(--header-text-color);
}

.margin-10{
    margin-top: 15px;
}

.list-detail{
    list-style: none;
    text-align: center;
    font-size:16px;  
    text-decoration: underline;
}

.border-small{
    border: var(--header-background-color) 2px solid
}

.save{
    padding:2px;
    color: var(--header-text-color);
    background-color: var(--header-background-color);
    
}