/* HTML body */
body {
  margin: 1%;
  margin-bottom: 0px;
  font-family: 'Tahoma';
  min-width: 312px;
}

/* Top navigation bar */
.topnav_nb {
    height: 100px;
    width: 90%;
    min-width: 775px;
    display: flex;
    flex-wrap: wrap;
    margin-left: 5%;
    margin-top: 40px;
    margin-right: 5%;
    margin-bottom: 50px;
    justify-content: center;
}

/* Div that contains the logo */
.logo_box {
    height: 100%;
    min-width: 0px;
    display: inline-block;
    width: auto;
}

/* Logo */
.logo {
  max-width: 100%;
    object-fit: cover;
    max-height: 100%;
    display: inline-block;
    margin: auto;
}

/* Actual navigation bar div */
.navbar_nb {
    height: 100%;
    display: flex;
    white-space: nowrap;
    flex-direction: row;
    vertical-align: top;
    justify-content: right;
    align-items: start;
    margin-left: auto;          /* Push navbar items to right side */
    font-size: 22px;
    line-height: 1;
  }

/* Links inside the navbar */
.navbar_nb a {
    float: left;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    /* flex: 1 1 0px; */
}

/* The dropdown container */
.dropdown {
  float: left;
  min-width: 0px;
  padding: 4px 15px;
}

/* Dropdown button */
.dropbtn {
  padding: 10px 15px;
  font-weight: bold;
}

/* Add a gray background color to navbar links on hover */
.navbar_nb a:hover, .dropdown:hover .dropbtn {
  background-color: lightgray;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  min-width: 100%;
  width: 100%;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 5px 5px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Roomshaker area */
.roomshaker {
  margin: 0px;
  width: 100%;
  height: fit-content;
  color: white;
  font-weight: bold;
  text-align: center;
  padding-bottom: 30px;
  background-image: url("images/backgrounds/matrix_12.gif");
  overflow: hidden;
}

/* Roomshaker banner */
@font-face { font-family: RoomShaker; font-weight: bold; src: url('fonts/BLADRMF_.TTF');}
.roomshaker h1 {
  font-family: RoomShaker;
  font-size: 100px;
  display: inline-block;
  width: 96%;
  margin: 2%;
  margin-top: 50px;
  text-decoration: none;
  color: white;
}
.roomshaker h1 a {
  text-decoration: none;
  color: white;
}

/* Background image */
.roomshaker img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Roomshaker text */
.roomshaker p {
  font-size: 22px;
  font-style: italic;
  display: inline-block;
  background-color: rgba(0,0,0,.6);
}

/* Buttons container */
.roomshaker .button_container {
  width: 96%;
  height: fit-content;
  display: inline-block;
  margin: 2%;
}

/* Buttons */
.roomshaker .button_container a {
  background-color: white;
  color: black;
  border: 2px solid #555555;
  font-size: 18px;
  text-decoration: none;
  display: inline-block;
  padding: 15px;
  margin: 15px;
}
.roomshaker .button_container a:hover {
  background-color: #555555;
  color: white;
}

/* About */
.about {
  padding-top: 40px;
  padding-left: 10%;
  padding-right: 10%;
  /* display: flex; */
  /* flex-direction: column; */
  overflow: hidden;
}
.about h2 {
}
.about .content {
  width: 100%;
}
.about .content .image {
  width: clamp(100px, calc(30vw + 50px), 375px);
  float: right;
  /* padding-left: 15px; */
  margin-left: 4vw;
  margin-right: clamp(0px, calc(10vw - 200px), 500px);
}
.about .content .image img {
  max-width: 100%;
}
.about .content p {
  display: inline;
}

/* Product page main content */
.main_content {
  margin-left: 5%;
  margin-right: 5%;
  /* background: lightgray; */
}

/* Top row of page */
.top_row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 50px;
}

/* Listing, including picture and description */
.listing {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding-right: 10px;

  flex: 1 0 0;
}

/* Carousel div */
.carousel_div {
  display: inline-block;
  flex: 1 0 0;
  min-width: 50%;
}

/* Bootstrap override to make carousel arrows black (BOOTSTRAP) */
.carousel-control-next,
.carousel-control-prev ,
.carousel-indicators {
    filter: invert(100%);
}

/* Product description */
.description {
  display: inline-block;
  flex: 1 1 0;
  min-width: 333px;
  padding: 10px;
}
.description h1 {
  font-family: RoomShaker;
  font-size: 40px;
  text-align: center;
}

/* PayPal */
.paypal {
  display: inline-block;
  flex: .15 0 0;
  min-width: 170px;
  padding: 10px;
}

/* Tabs to select content (BOOTSTRAP) */
.nav-link {
  color: black;
  font-size: 22px;
}
.nav-link:focus, .nav-link:hover {
  color: black !important;
}

/* Selectable content (BOOTSTRAP) */
.tab-content {
  margin-top: 50px;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  white-space: pre-wrap;
  /* display: block; */
  /* padding-top: 0px;
  justify-content: top; */
  flex-wrap: wrap;
  display: flex;
}

/* Tech Specs tab (BOOTSTRAP) */
#nav-specs {
  flex: 1 1 0;
  /* height: auto; */
  min-width: 200px;
  max-width: 1000px;
  aspect-ratio: .72;
}

/* Download tab (BOOTSTRAP) */
#nav-download {
  overflow-wrap: break-word;
  flex-wrap: wrap;
  word-wrap: break-word;
  max-width: 800px;
  line-height: 1em;
}
#nav-download img {
  width: 80%;
  margin: auto;
  margin-top: 10px;
  display: block;
}
#nav-download p {
  margin: 0px;
}

/* User guide tab (BOOTSTRAP) */
#nav-guide {
  overflow-wrap: break-word;
  flex-wrap: wrap;
  word-wrap: break-word;
  max-width: 800px;
  line-height: 1em;
}
#nav-guide h2 {
  font-weight: bold;
  text-decoration: underline;
}
#nav-guide img {
  width: 80%;
  margin: auto;
  margin-top: 10px;
  display: block;
}
#nav-guide p {
  margin: 0px;
}

/* PDF */
.pdf {
  width: 100%;
  height: 100%;
}

/* Guarantees */
.guarantees {
  display: flex;
  flex-direction: row;
  gap: 10%;
  justify-content: center;
  padding: 5%;
  padding-left: 20%;
  padding-right: 20%;
}
.guarantees .card_cus {
  text-align: center;
  width: 0;
  /* margin: 5%; */
  flex: 1 1 0px;
}
.guarantees .card_cus img {
  width: 100%;
}

/* Footer */
footer {
  height: fit-content;
  width: 100%;
  background-color: rgb(230, 230, 230);
  font-size: 16px;
  font-weight: bold;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  /* position: fixed;
  bottom: 0;
  left: 0; */
  margin: 0px;
}
footer p {
  margin: 10px;
}

/* Media query for mobile 8*/
@media only screen and (max-width: 940px) {
  .topnav_nb {
    min-width: 300px;   /* Decrease minimum size of nav bar */
    height: 20vw;       /* Decrease height of navbar */
    row-gap: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30vw;
  }
  .navbar_nb {
    margin-right: auto; /* Already has margin-left auto; this will re-center elements */
    font-size: 5vw;
    gap: auto;
    align-items: start;
  }
  .navbar_nb a {
  }
  .dropdown {
    font-size: 5vw;
    margin: 0;
  }
  .dropdown a {
    font-size: 5vw;
    padding: 5px 5px;
  }
  .roomshaker {
  }
  .roomshaker h1 {
    font-size: 18vw;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 10px;
    text-decoration: none;
  }
  .roomshaker p {
    font-size: 4.5vw;
    margin: 2%;
    margin-bottom: 20px;
  }
  .roomshaker .button_container a {
    font-size: 3vw;
    margin: 3%;
    padding: 8px;
  }
  .about {
    padding-left: 5%;
    padding-right: 5%;
  }
  .guarantees {
    padding-left: 5%;
    padding-right: 5%;
  }
  .carousel_div {                     /* Holds image */
    min-width: 100%;
  }
  .description {                      /* Description of Room Shaker in listing */
    min-width: 100px;
  }
  .paypal {                           /* PayPal buttons */
    /* min-width: 50px; */
    /* font-size: 10px; */
  }
  .nav-link {                         /* Selectable tabs on Room Shaker page */
    font-size: 10px;                  /* Reduce font size */
    padding: 5px;
  }
}

@media only screen and (max-width: 500px) {
  .listing {                          /* Container for both the image and the description */
    min-width: 100%;                  /* Expand to take entire flex row, kicking the paypal down below */
    padding-right: 0px;               /* Undo the padding that was there to separate the image from the paypal *.
  }
  .paypal {
    flex-grow: 1;                     /* Since the paypal has it's own row anyways, let's expand it to 100% */
  }
}