@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@200;300;400&display=swap');

html { 
    width: 100%;
    height: 100%;
    position: relative; 
    overflow: hidden;
}
body { 
    height:100%;
    margin:0;
    padding:0;
    font-family: 'Readex Pro', sans-serif;
    font-size: 31px;
    line-height: 41px;         
}
textarea, input {
  background: #fff;
  color: #525865;
  border-radius: 4px;
  border: 1px solid #d1d1d1;
  box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.07);
  font-family: inherit;
  font-size: 1em;
  line-height: 1.45;
  outline: none;
  padding: 0.6em 1.45em 0.7em;
  -webkit-transition: .18s ease-out;
  -moz-transition: .18s ease-out;
  -o-transition: .18s ease-out;
  transition: .18s ease-out;
}
textarea:hover, input:hover {
  box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
}
textarea:focus, input:focus {
  color: #4b515d;
  border: 1px solid #B8B6B6;
  box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
}
a {
  color: #525865;  
  -webkit-transition: .18s ease-out;
  -moz-transition: .18s ease-out;
  -o-transition: .18s ease-out;
  transition: .18s ease-out;    
}
a:hover {
    color: ghostwhite;
}
/* Term List */
#termwrap {
    display: flex;
    justify-content: center;
    text-align: center;
    overflow: scroll;
    margin: auto;
    margin-top: -41px;
}
ul {
    padding: 0;
    list-style-type: none;
}
ul li, li{
    line-height: 1.8;  
    font-size: 45px;
    font-weight: 500;
    text-decoration: none;
    opacity: 70%;
    transition: transform 1s ease 0s;
    list-style: none;
    cursor: pointer;
}
/* Structure */
#background {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100vh;
    width: 100vw;
}
#wrap, #glosswrap {
    display: flex;
    flex-direction: column;
    padding:0;
    overflow:hidden;
    height:100%;
    max-width: 95%;
    margin: auto;
} 
#define {
    display: flex;
    flex-flow: column;
    align-content: center;
    margin: auto;
    width: 95%;    
    padding-left: 2.5%;
    padding-right: 2.5%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
#term {
    order: -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: default;
}
#gloss {
    display: flex;
    margin: auto;
    max-width: 800px;
    background-color: ghostwhite;
    overflow: scroll;
    text-align: center;
    flex-direction: column;
}
.glossterm {
    padding: 25px;
}
#gloss h1 {
    color: #808687;
}
.glossterm p {
    font-family: 'Readex Pro', sans-serif;
    color: #000000;   
}
#popwrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
}
#poprow {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 5%;
    height: 90%;
    text-align: center;    
}
#pop {
    display: flex;
    flex-direction: column;
    justify-content: center;     
    align-self: center;
    z-index: 10;
    flex-grow: 1;  
    max-width: 800px;
    overflow: scroll;
}
#addition {
    padding: 10px;
    margin-top: 10px;    
    border-radius: 10px;
    flex-shrink: 3;    
    text-transform: lowercase;
    text-align: center;
    flex-shrink: 1;
}
#definition {
    padding: 10px;
    margin-top: 10px;    
    border-radius: 10px;
    text-align: center;
    flex-grow: 4;
}
#enter {
    align-self: center;
    padding-top: 10px;
    width: 100%;
    font-size: 50px;    
}
/* Firepad */
#firepad, #popup {
    flex: 1 1 auto;
    overflow: hidden;
    border-bottom: 1px dotted;        
}
#popup {
    overflow-y: scroll;
}
.firepad-richtext .CodeMirror, #popup p {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 200;
    font-size: 31px;
    line-height: 48px;     
    background-color: transparent;
    text-align: center;
    max-width: 800px;
    margin: auto;
    padding: 2%;
    overflow: hidden;
}
/* THIS HIDES THE DOUBLE SCROLLBAR but leaves NO SCROLLBAR */
.CodeMirror-vscrollbar {
    display: none!important;
}
#popup {
    background-color: #DEDEDE;
}
#popup p {
/*    color: #121212;*/
    margin-top: 5px;
}
.firepad-btn {
    font-size: 1.5em;
    border: none!important;
    outline: none!important;
    background-color: transparent!important;
}
.firepad-btn:hover {
    color:black!important;
}
.firepad-toolbar {
    text-align: left;
    border-bottom: none;
    border-bottom: none;
    padding-left: 2%;
}
a.powered-by-firepad {
    display: none;
}
#firepad img {
    max-width: 100%;
}
.CodeMirror-cursor {
  border-left: 1px solid white;
  border-right: 1px solid black;
}

/* Menus */
#menu {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    order: -1;
    z-index: 5;
    padding: 25px;
}
.menu {
    width: 50px;
    cursor: pointer;
    opacity: 70%;
    transition: all 1s ease;
    text-align: center;
}
.menu:hover {
    opacity: 100%;
    transform: scale(1.1);    
}
#bottomMenu {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    order: 2;
    padding: 0 25px 0 25px;
}
#buttons {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    z-index: 5;
    padding: 25px; 
    padding-bottom: 50px;    
}
.button {
    opacity: 50%;
    transition: all 1s ease;   
}
.button:hover {
    opacity: 70%;
    transform: scale(1.1);
}
#print {
    display: flex;
    justify-content: center;
    cursor: pointer;
}
#edit {
    display: flex;
    align-self: flex-end;
    cursor: pointer; 
    padding-top: 25px;
}
#quest {
    display: flex;
    align-self: center;
    cursor: pointer; 
    padding-top: 25px;
}
#history {
    display: flex;
    align-self: flex-end;
    padding-left: 10px;
    cursor: pointer;   
    padding-top: 25px;    
}
#enter {
    cursor: pointer;
}

@media (max-width: 800px){
    .wrap  {
        font-size: 42px;
        line-height: 61px; 
    }
    #pop  {
        font-size: 42px;
        line-height: 61px; 
    }
    #poprow {
        width: 85%;
        left: 7.5%;
    }
    #term {
        font-size: 62px;
        line-height: 101px; 
    }
    .firepad-richtext .CodeMirror, #popup p  {
        font-size: 42px;
        line-height: 61px; 
    }
    ul li {
        font-size: 62px;
        line-height: 101px; 
    }
    .button {
        font-size: 41px;
        line-height: 41px; 
    }
    .menu {
        font-size: 41px;
        line-height: 41px; 
    }
}
