@font-face { font-family: main; src: url('fonts/spartan-mb/SpartanMB-Light.otf'); } 
@font-face { font-family: main-bold; font-weight: bold; src: url('fonts/spartan-mb/SpartanMB-Bold.otf'); } 

:root {
    --white: #ffffff;
    --pink: #ff85f5;
    --green: #24ffa7;
    --slight-green: #c9ffea;
    --slight-pink: #ffddfc;

    --main-fsz: 10px;
    --small-fsz: 10px;

    --border-width: 3px;
}

body {
    font-family: main;
    margin: 0;
    padding: 0;
    --desktop: false;
    overflow-y: hidden; /* to prevent page reload when scrolling down */

    overscroll-behavior: none;
    touch-action: none;

    hyphens: auto;

    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

#noahstuder {
    cursor: pointer;
}

#noahsface {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    cursor: pointer;
    image-rendering: pixelated;
}

.organizer {
    position: relative;
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
    display: block;
    width: 100%;

    /*
    border: solid;
    border-width: 1px;
    background-color: lightblue;*/
}

.box, .list-box {
    position: relative;
    margin: 0;
    padding: 20px;
    font-size: var(--main-fsz);
    display: block;
    border-bottom-style: solid;
    border-width: var(--border-width);
    width: 100%;
    box-sizing: border-box;
    text-align: justify;
}

.list-box {
    margin-bottom: 0px;
    cursor: pointer;
    /*transition: height 0.3s linear;
    overflow-y: hidden;*/
}

.list-info, .list-info-button {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    font-family: inherit;

    position: relative;
    margin: 0;
    padding: 20px;
    font-size: var(--main-fsz);
    display: block;
    border-bottom-style: solid;
    border-width: var(--border-width);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    /*cursor: pointer;*/
}

.list-info-button {
    cursor: pointer;
}
/*
.list-info:hover {
    background-color: var(--slight-green);
}
*/
/*
.opt-active {
    display: block;
    background-color: var(--slight-pink);
    max-height: 10000px;
    transition: max-height 0.9s ease-in;
    overflow: hidden;
}
*/
.list-info h1, .list-info-button h1, .list-box h1, .list-box h1 input {
    font-size: var(--main-fsz);
}

.list-box p, .list-info p, .list-info label, .list-box input, form {
    font-size: var(--small-fsz);
}

.list-box img {
    width: 100%;
}

.list-box:hover, .list-info-button:hover, .button:hover { /* hier evt. noch die live- music- buttons reinnehmen, aber weiss nid wie */
    background-color: var(--slight-pink);
}

.box-opt {
    display: none;
    cursor: auto;
    /*
    display: block;
    max-height: 0;
    overflow: hidden;*/
}

.box {
    height: 100%;
    overflow: hidden;
}

.box p {
    margin-top: 0;
}

a {
    cursor: pointer;
    text-decoration: none; 
    /*color: inherit;*/
}

.box-title {
    text-align: left;
    /*line-height: 0.8;*/

    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/*
.box-title li:before {
    content: "+";
    padding-right: 0.3em;
    font-family: main;
}*/

.box-title h1 {
    margin-left: 1em;
    margin: 0;
}

@keyframes plusrot {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.plus {
    float: left;
    width: 1em; /*calc(var(--main-fsz) * 1.44);*/
    height: 1em; /*calc(var(--main-fsz) * 1.44);*/
    margin: 0;
    transform: translate(0.5em,0.5em);
    text-align: center;
    vertical-align: middle;
    animation-name: plusrot;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#info {
    /*aspect-ratio: 1.5;*/
    height: 60dvh;
    background-color: white;
    transition: height 0.3s linear;
}

#live {
    height: 20dvh;
    background-color: white;
    transition: height 0.3s linear;
}

#music {
    height: 20dvh;
    background-color: white;
    transition: height 0.3s linear;
}

#noahstuder {
    color: var(--pink);
    font-family: main-bold;
}

.bold {
    font-family: main-bold;
}

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

a:hover, #noahstuder:hover {
    background-color: var(--pink);
    color: white;
}

/*
#info,#live,#music,.button {
    transition: display 0.7s, background-color 0.7s, height 0.7s;
}
*/

/*
.box-opt {
    height: 0;
    transition: display 0.7s, height 0.7s;
}
*/
.button {
    font-size: min(var(--main-fsz), 10dvh);
    display: flex;
    padding: 0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


#live-scroll {
    display: none;
}

#music-scroll {
    display: none;
}


.scrollcontainer {
    margin: 0;
    padding: 0;
    /*margin-right: 30px;*/
    overflow-y: scroll;
    width: 100%; /* calc(100% - 30px);*/
    height: 100%;
    box-sizing: border-box;
    /*background-color: red;*/
}

.scrollcontainer::-webkit-scrollbar{ /* chrome etc */
    display: none;
}
.scrollcontainer {
    -ms-overflow-style: none; /* microsoft */
    scrollbar-width: none; /* firefox */
}

.scrollbar {
    position: absolute;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    width: 20px;
    height: calc(100% - 20px);
    background-color: white;
    right: 10px;
    top: 0;
    /*
    padding-top: 10px;
    padding-bottom: 10px;
    */
    overflow: hidden;
    cursor: pointer;
    /*background-color: green;*/
    
}

.error {
    color: red;
}

.delete-button {
    position: absolute;
    right: 2em;
    top: 2em;
    width: 2em;
    height: 2em;
}

.delete-button img {
    display: block;
}

#text {
    width: 100%;
    height: 8em;
    font-size: 2.5vmin;
}

/* for controlling the transitions from js */
.notransition {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}


@media screen and (orientation:landscape) {
    #body {
        --desktop: true;
    }

    .organizer {
        position: absolute;
    }

    #info {
        width: 40%;
        height: 100dvh;
        left: 30%;
        top: 0;
        border-left-style: solid;
        border-right-style: solid;
        /*border-width: var(--border-width);*/
    }

    #info .box {
        border-bottom-style: none;
    }

    #live {
        width: 30%;
        height: 100dvh;
        left: 0;
        top: 0;
    }

    #music {
        width: 30%;
        height: 100dvh;
        right: 0;
        top: 0;
    }

    #live-button, #music-button {
        display: none;
    }

    #live-scroll, #music-scroll {
        display: block;
    }

    /*
    :root {
        --main-fsz: 3.5vmin;
        --small-fsz: 3vmin;
    }*/
}

@media only screen and (min-width: 768px) { /* Tablet & co */

    :root {
        /*--main-fsz: 5vmin;
        --small-fsz: 4vmin;*/
        --border-width: 2px;
    }

}

@media only screen and (min-width: 1200px) { /* Desktop */

    /*
    body {
        overflow: hidden;
    }

    .organizer {
        position: absolute;
    }
    
    #info {
        width: 60%;
        aspect-ratio: 1.5;
        right: 0;
        top: 0;
    }

    #live {
        width: 40%;
        height: 100%;
        left: 0;
        top: 0;
    }

    #music {
        width: 60%;
        height: 100%;
        right: 0;
        bottom: 0;
    }
    */

    #body {
        --desktop: true;
    }

    .organizer {
        position: absolute;
    }

    #info {
        width: 40%;
        height: 100dvh;
        left: 30%;
        top: 0;
        border-left-style: solid;
        border-right-style: solid;
        border-width: var(--border-width);
    }

    #info .box {
        border-bottom-style: none;
    }

    #live {
        width: 30%;
        height: 100dvh;
        left: 0;
        top: 0;
    }

    #music {
        width: 30%;
        height: 100dvh;
        right: 0;
        top: 0;
    }

    #live-button, #music-button {
        display: none;
    }

    #live-scroll, #music-scroll {
        display: block;
    }

    :root {
        /*
        --main-fsz: 3.5vmin;
        --small-fsz: 3vmin;
        */
        --border-width: 2px;
    }
}