.mdl-layout__header .mdl-layout__drawer-button {
  color: rgba(0,0,0,0.54);
}

.mdl-layout__drawer {
  background: white;
}

.mdl-layout__drawer h2 {
  font-size: 16px;
  padding: 0 32px;
  padding-right: 8px;
  margin: 0;
  margin-bottom: -16px;
  font-weight: bold;
}

#close_btn {
  position: absolute;
  width: 48px;
  height:48px;
  margin: 8px;
  display: inline-block;
}
.mdl-layout__drawer .mdl-layout-title {
  margin-left: 48px;
  padding-left: 16px;
}

@media (max-width: 1024px) {
  #close_btn {
    margin: 4px;
  }
}

.mdl-navigation {
  padding: 24px 0;
}

.mdl-layout__drawer .mdl-navigation .mdl-navigation__link {
  padding: 12px;
  padding-left: 12px;
  line-height: 24px;
  font-family: Roboto,Helvetica,Arial,sans-serif;
  color: rgba(0,0,0,0.54);
}

.mdl-layout__drawer .mdl-navigation .mdl-navigation__link:hover {
  background: #f5f5f5;
}

.mdl-layout__drawer .mdl-navigation .mdl-navigation__link span {
  padding-left: 20px;
  font-weight: 500;
  vertical-align: middle;
  color: rgba(0,0,0,0.87);
  display: inline-block;
  max-width: 170px;
}

.wide-drawer-button {
  margin: 4px 16px;
}

main {
  background: #f5f5f5;
}

.mdl-layout__content {
  /*height: 100%;*/
  height: calc(100% - 65px);
}

@media (max-width: 1024px) {
  .mdl-layout__content {
    /*height: 100%;*/
    height: calc(100% - 57px);
  }
}

#settings {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
}

#settings section {
  margin: 0 8px;
  flex-grow: 1;
  min-width: 260px;
  max-width: 360px;
}

#settings h3 {
  margin-top: 36px;
  margin-bottom: 24px;
  padding-left: 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
}

#settings .mdl-card {
  max-width: 100%;
  width: 100%;
  min-height: 0;
}

#settings .mdl-card hr {
  border-top: 1px solid rgba(0,0,0,.1);
  margin: 8px -8px;
}

#settings .mdl-list {
  margin: 0;
  padding: 8px;
}

#settings .mdl-list li {
  padding: 0 16px;
}

#get-btn {
  display: block;
  margin: 36px auto;
}

#get-spinner {
  margin: -24px auto 36px auto;
  display: block;
}

#learning-content {
  display: flex;           /* establish flex container */
  flex-direction: column;  /* make main axis vertical */
  justify-content: space-between;
  height: 100%;
}

#learning-panel {
  display: flex;           /* establish flex container */
  flex-direction: column;  /* make main axis vertical */
  justify-content: space-around;
  align-items: center;     /* center items horizontally */
  height: calc(100% - 64px);

  flex-shrink: 1;
}

.box {
  width: calc(100% - 16px);
  margin: 0 8px;
  text-align: center;     /* will center text in <p>, which is not a flex item */
  height: 84px;
  flex-shrink: 1;
}

.box span {
  font-family: Roboto, 'Jeju Myeongjo', serif;
  line-height: 64px;
  font-size: 64px;
  white-space: nowrap;
}

.romanization {
  line-height: 16px;
  font-size: 16px;
  height: 16px;
  color: rgba(0,0,0,0.54);
}

#question-romanization {
  margin-bottom: 4px;
}

#answer-romanization {
  margin-top: 4px;
}

#learning-actions {
  height: 24px;
  width: 100%;
  display: flex;
  flex-direction: row;  /* make main axis vertical */
  justify-content: center; /* center items horizontally, in this case */
  align-items: center;     /* center items vertically, in this case */
  color: rgba(0,0,0,0.54);
  flex-shrink: 0;
}

#answer-panel {
  /*
  position: fixed;
  bottom: 0px;
  */
  height: 64px;
  width: 100%;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;           /* establish flex container */
  flex-direction: row;  /* make main axis vertical */
  justify-content: center; /* center items horizontally, in this case */
  align-items: center;     /* center items vertically, in this case */
  
  flex-grow: 0;
  flex-shrink: 0;
}

#answer-panel button {
  margin: 0 8px;
  width: 160px;
}

#ask-again-btn {
  color: white;
  background: #aa4422;
}

#found-it-btn {
  color: white;
  background: #22aa44;
}