/* SET */

* {
    margin: 0;
    padding: 0;
}

.theme-light {
    --color-background: #ffffff;
    --color-font: #000000;
    --color-primary: #9887F8;
    --color-secondary: #9887F8;
}

.theme-dark {
    --color-background: #FFEA00;
    /* #FFDA0A // FFEA00 //FFFF00 */
    --color-font: #9887F8;
    --color-primary: #ffffff;
    --color-secondary: #ffffff;
}

@font-face {
    font-family: Melange;
    src: url('typo/Melange-Regular.woff2') format('woff2');
    font-weight: lighter;
}

@font-face {
    font-family: Melange;
    src: url('typo/Melange-Bold.woff2') format('woff2');
    font-weight: bold;
}

html {
    min-height: 100vh;
    font-family: 'Melange';
}

#BGcolor {
    background-color: var(--color-background);
}

a {
    color: var(--color-font);
}


/* PROJEKTE */

.projects_menu {
    position: relative;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10%;
}

ul#projects {
    list-style-type: none;
    font-size: 4.25vw;
    font-weight: bold;
}

ul#projects li {
    display: inline;
}

ul#projects li a:after {
    content: "+";
    font-weight: bold;
    color: var(--color-primary);
}

ul#projects li a:link,
ul#projects li a:visited {
    text-decoration: none;
}

ul#projects li a:hover,
ul#projects li a:active {
    color: var(--color-primary);
    transition: color linear 0.15s;
}


/* PROJECT PREVIEW */

ul#projects li img {
    display: none;
    width: 100%;
    height: 0;
    position: absolute;
    z-index: -1;
}

ul#projects li img#preimg {
    width: 20%;
}

ul#projects li a:hover~img,
ul#projects li a:active~img {
    position: absolute;
    display: inline-block;
    width: auto;
    height: auto;
}


/* FOOTER */

.footer_menu {
    z-index: 100;
    position: absolute;
    bottom: 0;
    padding-bottom: 10px;
    width: 100%;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome and Opera */
}

ul#footer li {
    display: inline-block;
    font-size: 1.5vw;
}

ul#footer li a {
    text-decoration: none;
    font-weight: lighter;
}

ul#footer li a:hover {
    color: var(--color-primary);
}

.footer_element1 {
    margin-left: 10px;
    margin-right: 40px;
}

#active a {
    color: var(--color-primary);
}

.footer_element2 {
    margin-left: 5px;
}

#kerning {
    letter-spacing: 0.25vw;
}

#kerning1 {
    letter-spacing: 0.025vw;
}


/* KONTAKT UND IMPRINT */

.info_link {
    transform-origin: 80% 0%;
    transform: rotate(270deg);
}

.info_link a {
    text-decoration: none;
    font-size: 1.5vw;
    font-weight: lighter;
    /* color: #000000; */
}

.info_link a:hover {
    color: var(--color-primary);
}

.vertical {
    position: absolute;
    bottom: 0;
    right: 20px;
    padding-bottom: 130px;
}

.vertical2 {
    position: absolute;
    bottom: 0;
    right: 13px;
    padding-bottom: 280px;
}


/* INFO TEXT */

#info {
    z-index: 90;
    display: none;
    margin-left: 50%;
    position: absolute;
    padding-bottom: 50px;
    padding-right: 100px;
    bottom: 0px;
    font-size: 1.5vw;
    font-weight: lighter;
    text-align: right;
    color: var(--color-font);
}

#info_button {
    position: absolute;
    bottom: 10px;
    right: 100px;
    color: var(--color-font);
    z-index: 3;
}

#info_button:hover {
    cursor: pointer;
}


/* SWITCH */

#toggle_switch {
    z-index: 120;
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #000000;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-secondary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--color-secondary);
}

input:checked+.slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.slider.round {
    border-radius: 30px;
}

.slider.round:before {
    border-radius: 50%;
}

@media screen and (max-width:770px) {
    ul#projects li img#preimg {
        width: 30%;
    }
    ul#projects {
        list-style-type: none;
        font-size: 7vw;
        font-weight: b2old;
    }
    .footer_menu {
        position: absolute;
        bottom: 0;
        padding-bottom: 10px;
        width: 100%;
    }
    ul#footer li {
        font-size: 3.5vw;
    }
    #kerning {
        letter-spacing: 0.25vw;
    }
    #kerning1 {
        letter-spacing: 0.025vw;
    }
    .info_link {
        transform-origin: 80% 0%;
        transform: rotate(270deg);
    }
    .info_link a {
        font-size: 3.5vw;
    }
    .vertical {
        position: absolute;
        bottom: 0;
        right: 20px;
        padding-bottom: 130px;
    }
    .vertical2 {
        position: absolute;
        bottom: 0;
        right: 13px;
        padding-bottom: 280px;
    }
    #info {
        margin-left: 10px;
        padding-bottom: 70px;
        padding-right: 100px;
        bottom: 0px;
        font-size: 3.5vw;
    }
    .switch {
        width: 52px;
        height: 30px;
    }
    .slider:before {
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
    }
    input:checked+.slider:before {
        -webkit-transform: translateX(22px);
        -ms-transform: translateX(22px);
        transform: translateX(22px);
    }
    .slider.round {
        border-radius: 30px;
    }
    .slider.round:before {
        border-radius: 50%;
    }
}

@media screen and (max-width:400px) {
    .footer_element1 {
        margin-right: 20px;
    }
    #info {
        padding-bottom: 50px;
    }
}