/* GENERAL ––––––––––––––––––––––––––––––––––– */

    :root {
        --fontsize: 2rem;
        --color: #08A513;
        --backgroundcolor: rgb(255, 236, 6);
    }
    
    @font-face {
        font-family: 'Swezzz';
        src: url(/SuisseIntl-Book.otf);
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
       
    html {
        height: 100%;
        width: 100%;
        font-size: 16px;
      }
      
    body {
        font-family: 'Swezzz';
        font-size: var(--fontsize);
        height: 100%;
        width: 100%;
        overflow: hidden;
        background-color: var(--backgroundcolor);
        -webkit-transition: .4s;
        transition: .4s;
/*        background-image: url("bothofem.svg");
*/      }
      
    h1 {
        font-family: 'Swezzz';
        font-size: var(--fontsize); 
      }
      
    p {
        font-family: 'Swezzz';
        font-size: var(--fontsize);
      }
      
    form {
        display: flex;
        gap: 10px;
        justify-content: center;
      }
       
    form label {
        font-size: var(--fontsize);
        font-weight: bold;
    }
       
    input {
        font-family: 'Swezzz';
    }
       
    a {
        color: var(--color);
        text-decoration: none;
    }
       
    a:hover {
        text-decoration: underline;
    }
  
/* STRUCTURE ––––––––––––––––––––––––––––––––––– */

    #menu {
        padding: 0rem 2rem;
        display: flex;
        height: 7%;
        width: 100%;
        align-items: center;
        color: var(--color);
        justify-content: space-between;
        text-transform: uppercase;
    }

    
    .welcome {
        width: auto;
    }
    
    #wrapper,
    #loginform {
        width: 100%;
        height: 100%;
    }
    
    #chatbox {
        text-align: left;
        height: 86%;
        overflow-x: scroll;
        overflow-y: hidden;
        display: flex;
        scrollbar-color: var(--color);
    }

    .headline-wrapper {
        height: 80%;
        width: auto;
        max-width: 20%;

    }

    .headline-wrapper svg {
        height: 100%;
    }
    
    .bottombar {
        height: 7%;
        width: 100%;
        background: none;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-around;
    }




    
    /*not in use*/
    .borderhor {
        background-color: var(--color);
        width: 100%;
        height: 2%;
        background-image: url("borderhor.png");
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size:100% 100%;
    }

/* CONTENT ––––––––––––––––––––––––––––––––––– */
    
    .contentblockje {
        height: 100%;
        /*background-color: black;
        background-image: url("fullborder.png");
        background-position: center; 
        background-repeat: no-repeat; 
        background-size:100% 100%;*/
    }

    /* TEXT ––––––––––––––––––––––––––––––––––– */

    .messagewrapper {
        height: 100%;
        width: 30vw;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-end;
    }

    .message {
        width: 90%;
        height: auto;
        max-height: 85%;
        line-height: calc(var(--fontsize) * 1.1 );
        font-size: calc(var(--fontsize) * 0.9 );
        color: var(--color);
        text-align: center;
        border-radius: 20px;
        padding-top: 1.2rem;
        padding-right: 0rem;
        padding-bottom: 1rem;
        padding-left: 0rem;
        text-transform: none;
        overflow-y: scroll;
        overflow-x: hidden;
        overflow-wrap: break-word;
    }

    .whisper {
        font-size: 0.7rem;
    }

    .link {
        overflow-wrap: break-word;
        word-wrap: break-word;
      
        -ms-word-break: break-all;
        /* This is the dangerous one in WebKit, as it breaks things wherever */
        word-break: break-all;
        /* Instead use this non-standard one: */
        word-break: break-word;
      
        /* Adds a hyphen where the word breaks, if supported (No Blink) */
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;
        width: 90%;
        padding: 1rem;
        text-align: center;
        cursor: pointer;    
        max-height: 85%;
        height: auto;
        overflow-y: scroll;
        overflow-x: hidden;
    }
            
    /* IMAGE ––––––––––––––––––––––––––––––––––– */

    .imgwrapper {
        height: 100%;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: space-between;
    }
    
    .imgwrapper img  {
        height: auto;
        max-height: 82%;
        max-width: calc(50vw*0.9);   
        width: auto;
        padding: 0rem 1rem;
        border-radius: 25px;
    }
    
    /* IFRAMES ––––––––––––––––––––––––––––––––––– */

    .youtubeframe {
        aspect-ratio: 16 / 9;
        height: 100%;
    }
    
    .pdfframe {
        aspect-ratio: 1;
        height: 70%;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        cursor: all-scroll;
        margin: 0 1rem;
    }

    .iframewrapper {
        height: 100%;
        width: 40vw;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: space-between;
    }

    .iframewrapper iframe {
        width: 90%;
    }
    
    /* BORDER STUFF ––––––––––––––––––––––––––––––––––– */

    .top {
        height: 5%;
        width: 100%;
        background-image: url("top.svg");
        background-position: bottom; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size:100% 100%;
        margin-bottom: -3%;
        z-index: 3;
        pointer-events: none;
    }
    
    .left {
        width: 5%;
        background-image: url("left.svg");
        background-position: left; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size:70% 100%;
    }
    
    .right {
        width: 5%;
        background-image: url("right.svg");
        background-position: right; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size:70% 100%;
    }
    
    .bottom {
        height: 13%;
        width: 100%;
        background-image: url("bottom2.svg");
        background-position: top; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size:100% 100%;
        margin-top: -5%;
        z-index: 3;
        position: relative;
        pointer-events: none;
    }

    .borders {
        fill: var(--color);
    }
    

/* UPLOADPAGE ––––––––––––––––––––––––––––––––––– */

    .uploadinput {
        color: var(--color);
    }

    .input-wrapper {
        padding: 0 1rem;
    }
    
    .inputfields {
        flex: 1;
        border: 2px solid var(--color);
    }
    
    .inputbtn {
        background: white;
        border: 2px solid var(--color);
        color: var(--color);
        padding: 4px 10px;
        font-weight: bold;
    }

/* MOBILE NOTICE ––––––––––––––––––––––––––––––––––– */

    #notice {
        height: 93%;
        width: 100%;
        text-align: center;
        display: none;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        color: var(--color);
    }
    
    #notice img {
        height: 30%;
        width: auto;
    }
    
    #name {
        border: 2px solid black;
        padding: 2px 8px;
    }
    
/* TIMELINE SLIDER ––––––––––––––––––––––––––––––––––– */

    .myRangeWrapper {
        width: 70%; /* Full-width */
        height: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: center;
    }
    
    .slider {
        -webkit-appearance: none;
        -moz-appearance: none;  /* Override default CSS styles */
        /* Override default CSS styles */
        appearance: none;
        width: 100%; /* Full-width */
        height: 50%;
        padding: 0 7px; /* Specified height */
        background: var(--color); /* Grey background */
        outline: none; /* Remove outline */
        border-radius: 5px;
    }
    
    /* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
    .slider::-webkit-slider-thumb {
        -webkit-appearance: none; /* Override default look */
        -moz-appearance: none; /* Override default look */
        appearance: none;
        width: 7px; /* Set a specific slider handle width */
        height: 20px; /* Slider handle height */
        border-radius: 10px;
        background: var(--backgroundcolor); /* Green background */
        cursor: pointer; /* Cursor on hover */
        -webkit-transition: .4s;
        transition: .4s;
    }

/* SCROLLBARS ––––––––––––––––––––––––––––––––––– */

    /* width */
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    
    /* Track */
    ::-webkit-scrollbar-track {
        background: transparent; 
    }
    
    /* Handle */
    ::-webkit-scrollbar-thumb {
        width: 5px;
        height: 5px;
        border-radius: 20px;
        background: var(--color); 
    }

 /* TOGGLES ––––––––––––––––––––––––––––––––––– */


    .switchwrapper {
        height: 100%;
        width: auto;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        align-content: stretch;
        justify-content: center;
        flex-direction: column;
    }
    .switch {
        position: relative;
        display: inline-block;
        height: 50%;
        aspect-ratio: 2 / 1;
        margin-right: 50px;
        margin-left: 50px;

    }

    .switchlabel {
        color: var(--color);
        font-size: calc(var(--fontsize)/2);
        padding-right: .3rem;
    }

  /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
  
  /* The slider */
    .slider2 {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color);
        -webkit-transition: .4s;
        transition: .4s;
    }
  
    .slider2:before {
        position: absolute;
        content: "";
        height: 80%;
        aspect-ratio: 1;
        left: 4px;
        bottom: 10%;
        background-color: var(--backgroundcolor);
        -webkit-transition: .4s;
        transition: .4s;
    }
    
    input:checked + .slider2 {
        background-color: var(--color);
    }
    
    input:focus + .slider2 {
        box-shadow: 0 0 1px var(--color);
    }
    
    input:checked + .slider2:before {
        -webkit-transform: translateX(110%);
        -ms-transform: translateX(110%);
        transform: translateX(110%);
    }
    
    /* Rounded sliders */
    .slider2.round {
        border-radius: 34px;
    }
    
    .slider2.round:before {
        border-radius: 50%;
    }

    .telegramlink {
        text-decoration: underline;
        text-decoration-style: dotted;
    }


    .time {
        font-size: 0.7rem;
        color: var(--color);
        text-align: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
        width: 100%;
       
    }


/* MEDIA-QUERIES ––––––––––––––––––––––––––––––––––– */


    @media only screen and (max-width: 600px) {

        #menu {
            height: 7%;
            flex-wrap: wrap;
        }

        #chatbox {
            display: none;
        }
        
        #notice {
            display: flex;
            height: 93%;
            padding: 0rem 1rem;
            
        }

        .noticetext {
            font-size: 1.15rem;
        }

        .bottombar {
            display: none;
        }

        .headline-wrapper {
            width: 40%;
        }

   

    }
