/*
 * Page Layout
 */

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  background: #111;
  color: #eee;
  font-size: 16px;
  font-family: "Open Sans", sans-serif !important;
  text-transform: lowercase;
}

#content {
  margin-top: auto;
  margin-bottom: auto;
  width: 300px;
}

/*
 * Picnic Overrides
 */

button,
select {
  margin-bottom: 0px;
  text-transform: lowercase;
}

button,
button:active,
button:focus,
button:hover,
button:disabled,
button:disabled:hover,
select,
select:focus,
select:hover,
select:disabled,
select:disabled:hover {
  outline: none;
  border: none;
  border-radius: 0;
}

button:focus,
select:focus,
select:hover {
  box-shadow: inset 0 0 0 99em rgba(255, 255, 255, 0.2);
}

button:disabled,
select:disabled {
  opacity: 0.4;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, #eee 50%),
    linear-gradient(135deg, #eee 50%, transparent 50%);
  background-position: calc(100% - 18px) 1em, calc(100% - 13px) 1em,
    calc(100% - 2.5em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
}

select:disabled {
  cursor: default;
}

select:disabled:hover {
  box-shadow: none;
}

/*
 * Responsive Media Queries
 */

@media screen and (max-height: 820px) {
  #content {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #logo {
    display: none;
  }
}

@media screen and (max-height: 580px) {
  #keyboard {
    display: none;
  }

  #prev-next {
    margin-top: 10px;
  }
}

/*
 * Logo Section
 */

#logo {
  position: relative;
  margin-bottom: 85px;
  height: 150px;
}

#laptop {
  position: absolute;
  left: -10px;
  z-index: 10;
}

#accordion {
  position: absolute;
  left: 145px;
  z-index: 10;
}

#arrow-laptop-right {
  position: absolute;
  top: 30px;
  left: 40px;
  transform: rotate(180deg);
  z-index: 20;
}

#arrow-laptop-left {
  position: absolute;
  top: 60px;
  left: 40px;
  z-index: 20;
}

.rotate {
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

/*
 * Settings Section
 */

button.toggle,
.picker {
  width: 100%;
}

button.toggle:first-of-type {
  margin-top: 0px;
}

button.toggle:not(:first-of-type),
.picker {
  margin-top: 10px;
}

button.toggle {
  display: block;
  background-color: #5d4dca;
}

button.toggle.running {
  background-color: #ca4dbb;
}

.picker {
  display: flex;
  align-items: center;
}

.picker-label {
  width: 80px;
  color: #aea6e4;
  text-align: right;
}

.picker > select {
  flex: 1;
  margin-left: 10px;
  background-color: #5d4dca;
}

#custom-song-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

#custom-song-button-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#custom-song-button-error-text {
  padding-left: 7px;
  font-weight: bold;
  font-size: 70%;
}

#custom-song-button-error-text:empty {
  display: none;
}

/*
 * Keyboard Section
 */

#keyboard {
  margin-top: 70px;
}

#keyboard-help-text {
  margin-bottom: 10px;
  border: 1px solid #eee;
  padding: 3px;
  font-size: 70%;
  text-align: center;
}

.keyboard-row {
  display: flex;
  margin-bottom: 10px;
  width: 100%;
}

.key {
  display: inline-block;
  flex: 1;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 5px;
  font-size: 95%;
  text-align: center;
}

.key:not(:first-of-type) {
  margin-left: 10px;
}

/*
 * Navigation Section
 */

#prev-next {
  display: flex;
}

#prev-next > button {
  margin-top: 0px;
  border: 1px solid #ca4dbb;
  background: transparent;
  width: 110px;
}

#prev-next > button:active,
#prev-next > button:focus,
#prev-next > button:hover,
#prev-next > button:last-child:active,
#prev-next > button:last-child:focus,
#prev-next > button:last-child:hover {
  box-shadow: none;
  border: 1px solid #eee;
  background: transparent;
}

#prev-next > button:last-child {
  margin-left: auto;
  border: 1px solid #7cca4d;
}

/*
 * Invisible Elements
 */

#custom-song-dialog,
#published,
#video-input {
  display: none;
}
