* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    max-height: 100vh;
    overflow-y: hidden;
    background-color: #595e81;
}

::-webkit-scrollbar {
    width: 6px;               /* width of the entire scrollbar */
  }
  
 ::-webkit-scrollbar-track {
    background: none;        /* color of the tracking area */
  }
  
::-webkit-scrollbar-thumb {
    background-color: #505050;    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
  }


input {
    border: none;
}
#background {
    position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -99;
}

#iframe-container, #youtube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    #iframe-container { height: 300%; top: -100%; }
  }
  @media (max-aspect-ratio: 16/9) {
    #iframe-container { width: 300%; left: -100%; }
  }

  @media (aspect-ratio: 16/9) {
    #iframe-container {  position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;}
  }
#bk-cover {
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    z-index: -50;
    position: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-color: #3d3a39;
    opacity: 0.6;
}

/*menu css*/

#menu-toggle {
    position: fixed;
    font-size: large;
    top: 20px;
    right: 25px;
    max-width: 20vw;
    color: rgba(255, 255, 255, 0.5);
    z-index: 20;
    padding: 1px 6px;
    text-decoration: none;
    border: solid rgba(255, 255, 255, 0.1) 1px;
}

#menu-background {
    background-color: lightslategray;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 10;
}

#help-toggle{
    position: absolute;
    bottom: 20px;
    right: 25px;
}
ul {
    max-width: 90%;
    display: grid;
    grid-template-columns: repeat( auto-fit , 90px);
    row-gap: 20px;
}

li {
    list-style-type: none;
    font-size: large;
    margin-right: 25px;
    padding: 5px;
}
select, option {
    font-size: large;
    font-family: "Montserrat" , sans-serif;
}
#bk-li {
    grid-column: 1 / span 4;
}

#save-li {
    grid-column: auto / span 7;
}

#selectDocument {
    grid-column: 1 /span 8;
}
select {
    width: 150px;
}
#load-li {
    grid-column: auto / span 7;
}
@media screen and (max-width: 650px) {
    input[type="text"]{
        width: 150px;
    }
    ul {
        margin-top: 80px;
    }
    #bk-li {
        grid-column: 1 / span 5;
    }
    
    #save-li {
        grid-column: 1 / span 5;
    }
    #load-li {
        grid-column: 1 / span 3;

    }
    #selectDocument {
        grid-column: 1 / span 5;
    }
    #hide-li{
        grid-column: 1 / span 3;
    }
}
#play-li {
    grid-column: 1 / span 2;
}
#mute-li {
    grid-column: auto / span 2;
}
#hide-li {
    grid-column: auto / span 2;
}
#colorPicker {
    grid-column: auto / span 3;
}
#full-li {
    grid-column: auto / span 3;
}
#reset-li {
    grid-column: auto /span 2;
}

#logoutlink {
    grid-column: auto /span 2;
}
#logoutButton {
    color: black;
    text-decoration: none;
    padding: 1px 6px;
    display: inline-block;
}



input, button, #logoutButton {
    font-size: large;
    font-family: "Montserrat",sans-serif;
    
}

input:focus, button:focus, #logoutButton:focus {
    outline: solid black 1px;
}

button:focus {
    outline: solid black 1px;
}

#menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#menu-toggle:focus {
    outline: solid black 1px;
}

.button {
    /*border: none;
    background-color: aliceblue;*/
    border: solid black 1px;
    background: none
}

.button:hover {
    /*border: none;*/
    border: solid black 1px;
    /*background-color: rgb(188, 219, 247);*/
    background-color: slategray;
    cursor: pointer;
}

input[type=file]::file-selector-button {
    /*border: none;*/
    border: solid black 1px;
    /*background-color: aliceblue;*/
    background: none;
    font-family: "Montserrat",sans-serif;
}

input[type=file]::file-selector-button:hover {
    /*border: none;*/
    border: solid black 1px;
    background-color: slategray;
    cursor: pointer;
}

.lightbox {
    width: 90vw;
    height: 80vh;
    display: grid;
    grid-template-rows: 1fr 80px 1fr;
    background-color: rgba(119, 136, 153, 0.5);
    color: white;
    margin: 10vh auto;
    justify-items: center;
}

#helpLightbox {
    grid-template-rows: 1fr 60vh 1fr;
    font-size: large;
    font-family: "Montserrat" , sans-serif;
}

#helpLightbox a {
    color: rgb(163, 205, 248);
}
#helpLightbox a:hover {
    cursor: pointer;
    color: aliceblue;
}

#helptext {
    margin: 20px 5vw;
    overflow-y: scroll;
}

@media screen and (max-width: 1000px) {
    .lightbox {
        grid-template-rows: 1fr 180px 1fr;
    }
    form input {
        display: block;
        margin: 15px auto;
    }

}
h2 {
    align-self: end;
}

form {
    align-self: center;
    max-width: 90%;
}

.closelightbox {
    margin-top: 20px;
}

/*writer css*/
#writer {
    padding: 1vw;
    display: grid;
    min-height: 100vh;
    height: 100%;
    justify-items: center;
    align-items: center;

}

#write-wrap {
    display: grid;
    overflow-y: scroll;
    width: 90vw;
    height: 70vh;
    justify-items: center;
    align-items: center;
}

#writer-content {
    border: none;
    color: white;
    text-align: center;
    outline: none;
    font-size: 21px;
    line-height: 150%;
    
}

#writer-content div {
    margin-top: 20px;
}

#writer-content br {
    display: block;
    margin-top: 20px;
}

a:hover {
    color: aliceblue;
    cursor: pointer;
}


