/***************/
/*** GENERAL ***/
/***************/

body {
    padding: 0px 10px 0 15px;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 330px;
    width: 100vw;
    max-width: 800px !important;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

h1 {
    font-size: 1.875em;
    padding-bottom: 20px;
    padding-top: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid lightgray;
    width: 95%;
}

#h1-link {
    color: black;
    text-decoration: none;
    font-size: inherit;
}

h2 {
    font-size: 1.375em;
}

h3 {
    margin-top: 15px;
    margin-bottom: 5px;
}

h4 {
    margin-bottom: 5px;
}

button, select {
    background-color: #eee;
    color: black;
    border: 1px solid #777;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    display: inline-block;
}

select {
    padding: 10px;
}

button.active {
    background-color: rgb(186, 186, 186);
}

button:disabled, #quizanswer input:disabled {
    background-color: #eee;
    color: gray;
    border-color: lightgray;
    cursor: initial;
}

a {
    font-size: 16px;
}

hr {
    width: 90%;
    margin-left: 0;
}

select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 40px;
    overflow-x: visible;

}

#dropdown-chevron {
    position: absolute; 
    margin-top: 0.25em;
    margin-left: -20px; 
    background-color: transparent !important;
}

/***************/
/*** SIDEBAR ***/
/***************/

#show-sidebar {
    float: right;
    margin: 0;
    margin-right: 15px;
    transform: rotate(90deg);
    border: 0;
    background-color: transparent;
    padding: 0;
    font-size: 1em;
}

#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    z-index: 999;
    display: none;
    margin-top: -20px;
    margin-left: -10px;
}

#close-sidebar {
    float: right;
    margin: 0;
    margin-right: 10%;
    margin-top: 30px;
    transform: rotate(90deg);
    border: 0;
    background-color: transparent;
    padding: 0;
    font-size: 2em;
}

#sidebar-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background-color: rgba(0,0,0,0.3) !important;
    z-index: 999;
}

#sidebar-controls {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-color: white;
    border-left: 1px solid gray;
    z-index: 999;
}

#sidebar-links {
    margin-top: 80px;
}

a.active {
    background-color: lightgray;
}

.sidebar-link {
    display: block;
    width: 100%;
    color: black;
    font-size: 0.875rem;
    border: 1px solid lightgray;
    border-left: 0;
    border-right: 0;
    padding: 20px 0 20px 20px;
    box-sizing: border-box;
    text-decoration: none;
    text-align: left;
}

#verbs-link {
    border-top: 0;
    border-bottom: 0;
}

#settings {
    width: 90%;
    margin-top: 30px;
    padding: 0px 0px 0px 20px;
    font-size: 0.85em;
}

#settings h3, #settings h4 {
    font-weight: normal;
}

#settings h3 {
    font-size: 1.1em;
}

#reviewmode {
    display: none;
}

/******************/
/*** WORD LISTS ***/
/******************/

#wordlists {
    margin-bottom: 0px;
}

#lists {
    width: 98%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    margin-bottom: 15px;
    max-width: 700px;
}

#lists button {
    margin-bottom: 5px;
}

.link-button {
    background-color: transparent;
    border: 0;
    padding: 0 5px;
    margin: 0;
    text-decoration: underline;
    display: inline-block;
}

.pagenav {
    display: inline-block;
    font-weight: normal;
    font-size: 0.875rem;
    color: black;
}

/******************/
/*** FLASHCARDS ***/
/******************/

#flashcard {
    width: 300px; 
    height: 175px; 
    text-align:center; 
    padding: 10px; 
    margin-bottom: 20px; 
    border: 1px solid gray; 
    border-radius: 5px; 
    cursor: pointer;
    position: relative;
    user-select: none;
}

#flashcard.answer {
    background-color: #eee;
}

#hint {
  width: 90%;
  margin: 50px auto;
}

#answer {
  width: 90%; 
  margin: 50px auto;
}

.card-text {
    font-size:1.75em;
    display:inline-block;
}

#tap {
    color:darkgray;
    font-size: 0.875em;
    position: absolute;
    left: 60px;
    bottom: 20px;
}

.helper-text {
    color:rgb(152, 152, 152);
    font-size: 0.875em;
}

#savecard {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75em;
}

#status {
  display: inline-block; 
  width: 60px;
  font-size: 0.9em;
}

#random {
  margin-left: 5px;
}

#quizstatus {
  display: inline-block; 
  font-size:0.95em;
}

.audio-button {
    background-color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 0.65em;
    display: inline-block;
}

#main-audio {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 1.25em;
}

#quizmode button {
    margin-bottom: 7px;
}

#cardstatus {
    position: absolute;
    font-size: 2em;
    margin-left: -150px;
}

#cardnumber {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: darkgray;
    font-size: 0.875em;
}


/* ************ */
/* *** EDIT *** */
/* ************ */

#editpane {
    margin: 13px;
    margin-left: 0;
}

table {
    width: 500px;
}

textarea {
    width: 400px;
}

table {
    text-align: left;
    border-collapse: collapse;
    border-color: gray;
}

th, td {
    border: 1px solid gray;
}

th, table input {
    padding: 12px 10px;
}

textarea {
    padding: 10px;
    border-color: gray;
    height: auto;
    max-height: 600px;
    overflow-y: scroll;
}

table input {
    box-sizing: border-box;
    border: none;
    width: 100%;
}

#editlist {
    display: none;
}

#editlistname {
    display: inline-block;
    padding: 5px 10px 3px 0px;
    border: 0;
    border-bottom: 1px solid rgb(161, 160, 160);
    font-weight: bold;
    width: 280px;
    font-size: 0.9em;
}

#editmode h4 {
    margin-top: 17px;
    margin-bottom: 10px;
}

#addnewrowbutton {
    display: inline-block;
    margin-top: 5px;
    background-color: transparent;
}

.row-button {
    border: 0;
    background-color: transparent;
    font-weight: bold;
    padding: 0px 5px;
    margin-left: 5px;
}

.seq-row-button {
    cursor: grab;
}

#deletelistbutton {
    display: block;
    margin-top: 10px;
}

#resetbutton {
    display: none;
}

#deletelistbutton, #resetbutton {
    border: 0;
    background-color: transparent;
    text-decoration: underline;
    color: #777;
    padding-left: 7px;
}

/* ************ */
/* *** QUIZ *** */
/* ************ */

#quizanswer input {
    background-color: transparent;
    color: black;
    border: 1px solid #777;
    border-radius: 5px;
    padding: 10px 15px;
    display: inline-block;
    width: 210px;
}

#quiz-dates {
    margin-top: -10px;
    margin-bottom: 25px;
}

#date-picker-span {
    display: none;
}

#navstatus, #navstatus * {
    user-select: none;
}

.navstatus-char {
    display: inline-block;
    margin: auto 2px; 
    width: 12px;
    max-width: 12px;
    overflow: hidden;
    border-bottom: 1px solid black;
    color: black;
    user-select: none;
}

.char-completed {
    cursor: pointer;
}

#submitted-answer {
    color: #333;
}

#submitted-answer table {
    width: auto;
    max-width: 300px;
    border: 0px solid transparent;
}

#submitted-answer table td, #submitted-answer table tr  {
    width: auto;
    border: 0px solid transparent;
    padding-right: 10px;
}

/* *********************** */
/* *** SMALLER SCREENS *** */
/* *********************** */

@media screen and (max-width: 600px) {
    table {
        width: 450px;
    }
    textarea {
        width: 400px;
    }
}

@media screen and (max-width: 450px) {
    input, textarea {
        font-size: 16px;
    }
    .row-button {
        font-size: 20px;
    }
    table {
        width: 330px;
    }
    textarea {
        width: 300px;
    }
    .seq-row-button {
        display: none;
    }
}