@font-face {
  font-family: 'Andale Mono Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Andale Mono Regular'), url('ANDALEMO.woff') format('woff');
}

* {
  font-family: Andale Mono Regular;
}

.paypal-button {
  filter: grayscale(100%) contrast(3);
}

.info.paypal-button-container {
  margin-bottom: 10px;
}

.m-shadow {
  box-shadow: -3px 2px 3px rgba(0,0,0,0.25);
}

#desc-pdf, #desc-buy {
  color: black;
  font-weight: bold;
  text-decoration: underline;
  display: none;
}

#other-info .info {
  text-align: left;
}

.h-contents:nth-of-type(9) {
  margin-right: 5px;
}

#desc-img {
  border-width: 0px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: white;
  display: none;
}

.drop-down {
  position: absolute;
  /*background-color: RGBA(235.8,235.8,235.8,1);*/
  background-color: white;
  border: 0px solid gray;
  z-index: 11;
  display: none;
  /*padding: 5px 20px 5px 20px;*/
  padding: 15px;
  box-shadow: -1px 2px 6px rgb(0 0 0 / 25%);
}

.dropdown-contents {
  display: block;
  border-width: 0px;
  background-color: white;
  font-size: 16px;
  padding: 10px;
  text-align: left;
  width: 120px;
  z-index: 11;
}
.dropdown-contents:hover {
  background-color: RGBA(235.8,235.8,235.8,1);
  cursor: pointer;
}

body {
  margin: 0px;
}

.down-arrow, .up-arrow {
  height: 15px;
  flex: 0 1 auto;
  color: black;
  text-align: center;
  font-size: 12px;
}

.up-arrow {
  cursor: n-resize;
}

.down-arrow {
  cursor: s-resize;
}

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

#header-container {
  height: 60px;
  /*border-bottom: 1px solid #8BA097;
  box-shadow: 0px 2px 4px rgba(10,0,70,0.4);*/
  background-color: #a01515;
}

#main-container {
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 10px 50px 10px 50px;
}

#h-chafe {
  flex-grow: 3;
  text-align: left;
  padding: 5px;
  padding-left: 10px;
  margin-left: 40px;
  margin-top: 16px;
}

#h-other {
  flex-basis: auto;
  flex-grow: 1;
  padding: 0px;
  padding-right: 40px;
  text-align: right;
  min-width: 450px;
}

.h-contents {
  text-align: center;
  padding: 10px;
  display: inline;
  /*border-radius: 10px;*/
  color: white;
}

button.h-contents {
  /*background-color: rgba(255,255,255,0.15);*/
  border: 0px;
  margin-right: 16px;
  font-size: 17px;
  height: 60px;
  background-color: #a01515;
  margin-top: -28px;
}

.view-cart-img {
  margin-bottom: -8px;
  padding-top: 35px;
  margin-right: -20px;
}

.h-insert-cart {
  height: 0px !important;
}

button.h-contents:hover, button.h-contents.viewing {
  background-color: rgba(255,255,255,0.15);
  cursor: pointer;
}

.main-color {
  background-color: #a01515;
}

.m-contents {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100px;
}

#titles {
  display: flex;
  width: 25%;
  flex: 0 0 auto;
  margin: 0px;
  align-items: stretch;
}

#m-tabs {
  display: flex;
  height: 40px;
  background-color: rgba(100, 100, 100, 0.1);
  align-items: stretch;
  font-size: 16px;
}

.m-singletab {
  margin: 0px;
  text-align: center;
  flex: 1 1 auto;
  padding: 12px 15px 8px 10px;
  background-color: rgba(0,0,0,0.15);
  outline: 1px solid rgba(0,0,0,0.2);
  color: #444444;
  font-weight: lighter;
}

.m-singletab.selected {
  background-color: rgba(0,0,0,0);
  font-weight: bolder;
  outline: 0px;
  color: black;
  
}

#m-pad {
  background-color: rgba(100,100,100,0.1);
  height: 7px;
}

#titles-container {
  /*border-radius: 10px 0px 0px 10px;*/
  border-left: 0px solid black;
  overflow: hidden;
  z-index: 10;
}

#titles-ul {
  flex: 1 0 auto;
  height: calc(100vh - calc(62px + 53px + 57px));
  background-color: white;
  list-style-type: none;
  padding: 0px;
  padding-top: 10px;
  margin: 0px;
  overflow-y: scroll;
  overflow-x: visible;
  background-color: rgba(100, 100, 100, 0.1);
}

#titles-ul > li {
  padding: 6px;
  padding-left: 16px;
  font-size: 14px;
}

#titles-ul > li.selected {
  color: black;
  background-color: #DFDFDF;
  z-index: 9;
  overflow-x: visible;
  box-shadow: -2px 2px 4px rgba(0,0,0,0.25);
}

#main-info {
  color: black;
  width: 75%;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: auto;
  z-index: 5;
}

#main-info-scroll {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 1 0 auto;
  max-height: calc(100vh - calc(62px + 53px));
  overflow: scroll;
  padding: 0px;
  background-color: #DFDFDF;
  /*border-radius: 0px 10px 10px 0px;*/
}

a:visited {
  color: black;
}

#book-info {
  width: 60%;
  flex: 3 0 auto;
}

#other-info {
  width: 40%;
  padding-top: 3.2em;
  flex: 1 1 auto;
}

#other-info > * {
  margin-left: 5px;
  margin-right: 5px;
}

#book-info, #other-info {
  height: auto;
  overflow-y: scroll;
  background: rgba(255,255,255,0.4);
  /*border-radius: 10px;*/
  margin: 20px;
  padding: 10px;
  padding-top: 0px;
  text-align: center;
}

#book-info {
  min-width: 350px;
  margin-right: 0px;
}

#other-info {
  margin-left: 5px;
}

#desc-buy, #desc-buy > p {
  margin-top: 0px;
  cursor: pointer;
}

@media (max-width: 900px) {
  #main-container {
    flex-direction: column;
    flex-wrap: wrap;
  }

  #header-container {
    box-shadow: 0px 2px 4px rgba(0,0,0,0.3);
  }

  .m-shadow {
    height: calc(0.3 * calc(100vh - 220px));
    box-shadow: 0px 2px 4px rgba(0,0,0,0.25);
    /*border-radius: 10px;*/
  }

  #titles {
    width: 100%;
    height: calc(0.3 * calc(100vh - 91px));
    margin-bottom: 2px;
    overflow: hidden;
  }

  #titles-container {
    height: calc(0.3 * calc(100vh - 91px));
    /*border-radius: 10px;*/
  }

  #main-info {
    width: 100%;
    height: calc(0.7 * calc(100vh - 91px));
  }

  #main-container {
    margin: 10px;
  }

  /*#main-info-scroll {
    border-radius: 10px;
  }*/

  #testsq {
    visibility: hidden;
  }

  #book-info, #other-info {
    width: auto;
    flex: 1 1 auto;
  }

  #titles-ul {
    height: calc(100% - 57px);;
    /*height: calc(0.3 * calc(100vh - 91px));*/
  }

  #titles-ul > li.selected {
    box-shadow: none;
  }

  #book-info {
    min-width: 50vw;
    max-width: 50vw;
  }

  #desc-img {
    height: auto;
    width: 27vh;
  }
}


@media (max-width: 600px) {
  #h-chafe {
    margin-left: 10px;
    font-size: 24px;
  }

  #h-other {
    padding-right: 20px;
    font-size: 12px;
  }

  .h-contents {
    padding: 8px;
  }

  .m-contents {
    margin-top: -5px;
    margin-bottom: -5px;
  }

  #titles-ul > li {
    padding: 4px;
    padding-left: 10px;
    font-size: 14px;
  }

  #titles-container, #titles {
    height: 36vh;
  }

  #titles-ul {
    /*height: calc(calc(0.3 * calc(100vh - 91px)) + 5px);*/
    height: calc(100% - 47px);
    padding-top: 0px;
  }

  #main-info-scroll {
    height: auto;
    max-height: none;
    flex-direction: column;
    padding-left: 0px;
    padding-right: 0px;
  }

  #main-info-scroll > * {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
    max-height: 9999px;
  }

  #book-info, #other-info {
    width: auto;
    height: auto;
    margin: 15px;
    overflow-y: auto;
    min-width: 0px;
  }

  #other-info {
    margin-top: 0px;
    padding-top: 10px;
  }

  #other-info > * {
    margin-left: 20px;
    margin-right: 20px;
    height: auto;
  }

  #desc-title {
    font-size: 18px;
  }

  .down-arrow, .up-arrow {
    height: 12px;
    font-size: 10px;
  }
}

@media only screen and (max-device-width: 414px) {
  #h-chafe {
    margin-left: 10px;
    font-size: 3em;
    padding-left: 30px;
    margin-top: 28px;
  }

  #desc-img {
    margin-bottom: 30px;
  }

  .about-info {
    font-size:12px;
    margin-top: 60px;
  }

  .about-info:last-of-type {
    margin-bottom: 200px;
  }

  .info.paypal-button-container {
    margin-bottom: 20px;
  }

  #h-other {
    min-width: 600px;
  }

  button.h-contents {
    font-size: 2em;
    height: 7vh;
    margin-top: 0px;
  }

  .view-cart-img {
    margin-bottom: -3px;
  }

  .h-insert-cart {
    height: 0px !important;
  }

  #m-tabs {
    height: 64px;
    font-size: 28px;
  }

  #main-container {
    flex-direction: column;
    flex-wrap: wrap;
  }

  #header-container {
    box-shadow: 0px 2px 4px rgba(0,0,0,0.3);
    height: 7vh;
    margin-bottom: 30px;
  }

  #desc-title {
    font-size: 2em;
  }

  #other-info > * {
    font-size: 24px;
  }

  #titles {
    width: 100%;
    height: calc(0.25 * calc(85vh - 91px));
    margin-bottom: 2px;
    overflow: hidden;
  }

  #titles-container {
    height: calc(0.25 * calc(85vh - 91px));
    /*border-radius: 10px;*/
  }

  #titles-ul {
    height: calc(100% - 81px);;
  }

  .m-shadow {
    height: calc(0.25 * calc(85vh - 220px));
    box-shadow: 0px 2px 4px rgba(0,0,0,0.25);
    /*border-radius: 10px;*/
  }

  #main-info {
    width: 100%;
    height: calc(0.7 * calc(85vh - 91px));
  }

  #main-container {
    margin: 10px;
  }

  /*#main-info-scroll {
    border-radius: 10px;
  }*/

  #testsq {
    visibility: hidden;
  }

  #book-info, #other-info {
    width: auto;
    flex: 1 1 auto;
  }

  #titles-ul > li {
    font-size: 24px;
  }

  #titles-ul > li.selected {
    box-shadow: none;
  }

  #book-info {
    min-width: 50vw;
    max-width: 50vw;
  }

  .dropdown-contents {
    font-size: 1.9em;
    width: 180px;
  }
}
