/*
 * Globals
 */

/* Custom default button */
.btn-secondary,
.btn-secondary:focus {
  color: #333;
  background-color: #fff !important;
  border-color: #fff !important;
  border-width: 0.2rem;
  text-shadow: none; /* Prevent inheritance from `body` */
}

.btn-secondary:hover {
  color: rgb(216, 216, 216);
  border-color: rgb(29, 29, 29)!important;
  background-color: rgb(20, 20, 20)!important;
}

/*
 * Base structure
 */

@font-face {
  font-family: "Courier Prime";
  src: url('/assets/fonts/courier-prime.ttf')  format('truetype');
}

::selection {
  color: #fff;
  background: #222;
}

body {
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  background-image:
        linear-gradient(
          rgba(0, 0, 0, 0.7),
          rgba(0, 0, 0, 0.7)
        ), url("/assets/images/main.png");
  background-repeat: repeat;
  font-family: "Courier Prime", monospace;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

/*
 * Search option
 */

div#show-arrow {
  position: absolute;
  bottom: 1rem;
  left: 1.1rem;
}

svg#arrow {
  height: 4rem;
  width: 6rem;
}

div#search {
  display: flex;
  height: 100vh;
}

form#search-form {
  position: relative;
  width: 60rem;
  max-width: 85vw;
  height: 3.5rem;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #fff;
  color: #333;
  margin: 40vh auto auto;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 4px 4px 10px #0c0c0c;
}

div.search-box-wrap {
  color: inherit;
  margin: 0;
  box-sizing: border-box;
  max-inline-size: none;
  position: relative;
  display: flex;
  align-items: center;
  background: none;
  border-radius: 8px;
  height: 100%;
  overflow: visible;
}

input#search-box {
  display: flex;
  flex-grow: 1;
  margin: 0;
  padding-left: 1rem;
  padding-right: 0;
  height: 100%;
  background: none;
  box-sizing: border-box;
  border-radius: 8px;
  border: none;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  caret-color: #aaa;
  caret-shape: block;
  font-weight: 700!important;
}
::placeholder {
  color: #666;
  text-transform: uppercase;
  font-weight: 700!important;
  opacity: 1;
}

div.search-icon-box {
  display: inline-flex;
  height: 100%;
  margin: 0;
  color: inherit;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
  max-inline-size: none;
}

button.search-button {
  box-sizing: border-box;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  width: 4rem;
  background: transparent;
  opacity: .56;
  border: none;
  position: relative;
  height: 100%;
  -webkit-font-smoothing: subpixel-antialiased;
  color: inherit;
}

svg#search-icon {
  font: inherit;
  cursor: pointer;
  -webkit-font-smoothing: subpixel-antialiased;
  fill: none;
  box-sizing: border-box;
  margin: 0;
  display: block;
  max-width: 100%;
  color: currentColor;
  height: 1.5rem;
  width: 1.5rem;
}

svg#search-icon use {
  stroke-width: 0.05rem;
}

/*
 * Header
 */

.nav-masthead .nav-link {
  padding: .25rem 0;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  background-color: transparent;
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}
