html, body {
    background-color: #FCEE22;
    min-height: 100%;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

div {
    text-align: center;
    padding: 5px;
}

button {
    width: 45%;
    min-height: 44px;
    border-radius: 10px;
    margin: 5px;
    font-weight: bold;
    border-width: 2px;
}

img:hover {
    cursor: pointer;
}

.wrong {
    color: red;
    padding: 0px;
}

.correct {
    color: green;
    font-weight: bold;
    padding: 0px;
}

#duration {
    font-weight: bold;
    padding: 0px;
    margin: 0 auto;
    text-align: center;
}

#result {
    font-weight: bold;
    padding: 0px;
    margin: 0px;
}

.autoComplete_wrapper > input {
    height: 40px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 16px;
    color: rgba(123, 123, 123, 1);
    border-radius: 8px;
    border: 0;
    outline: none;
    background-color: #f1f3f4;
}
.autoComplete_wrapper {
    width:100%;
}
.autoComplete_wrapper > ul {
    max-height: 150px;
    overflow-y: auto;
}

.copy {
    height: 20px;
    background: url(copy.svg) no-repeat top center;
    background-size: contain;
    padding: 0px;
    margin: 0px;
}

.album {
    height: 35px;
    width: 35px;
    background: url(album.svg) no-repeat center;
    background-size: contain;
    position: absolute;
    top: 5px;
    left: 10px;
    padding: 0;
    cursor: pointer;
    z-index: 3;
}

#playbtn {
    height: 50px;
    background: url(play.svg) no-repeat center center;
    background-size: contain;
}

.mascot {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: url(Q-min.svg) no-repeat right;
    background-size: contain;
    padding: 0;
    z-index: 2;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: url(spudle-min.svg) no-repeat top center;
    background-size: contain;
    z-index: 1;
}

.header {
    position: relative;
    height: 55px;
    padding: 0;
}

.center {
}


.footer {
    width: 95%;
    margin: auto auto 0 auto;
}

#guess {
    width:95%;
}

#skipbtn {
    background-color: #e2d41e;
}

#submit {
    background-color: #4ea955;
}


.answerblank {
  border-radius: 10px;
  border-style: solid;
  border-width: 2px;
  height: 16px;
  margin: 5px 10px;
  padding: 3px 5px;
}

.answercurrent {
  border-radius: 10px;
  border-style: solid;
  border-width: 4px;
  height: 16px;
  margin: 5px 10px;
  padding: 3px 5px;
}

.answerwrong {
  border-radius: 10px;
  border-style: solid;
  border-width: 2px;
  border-color: red;
  height: 16px;
  margin: 5px 10px;
  padding: 3px 5px;
}

.answercorrect {
  border-radius: 10px;
  border-style: solid;
  border-width: 4px;
  border-color: green;
  height: 16px;
  margin: 5px 10px;
  padding: 3px 5px;
}
p {
    padding:0px;
    margin:0px;
}

/* Keyboard-open: hide non-essential elements */
body.keyboard-open .header {
    display: none;
}
body.keyboard-open .album {
    display: none;
}
body.keyboard-open .answerblank,
body.keyboard-open .answercurrent,
body.keyboard-open .answerwrong,
body.keyboard-open .answercorrect {
    height: 12px;
    margin: 2px 10px;
    padding: 2px 5px;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FCEE22;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.search-overlay.hidden {
    display: none;
}

.search-overlay-header {
    display: flex;
    justify-content: flex-end;
    padding: 5px;
}

.search-overlay-header button {
    width: auto;
    padding: 8px 16px;
    background-color: #e2d41e;
    border-radius: 8px;
    border-width: 2px;
    font-weight: bold;
    font-size: 16px;
}

#search-overlay-input {
    padding: 5px;
}

#search-overlay-input .autoComplete_wrapper > ul {
    max-height: none;
    position: relative;
}

#search-overlay-results {
    flex: 1;
    overflow-y: auto;
}

#search-overlay-results ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#search-overlay-results li {
    text-align: left;
    padding: 12px 10px;
    margin: 4px 0;
    border: 1px solid #999;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
    background: #fff;
}
