/* shamelessly stolen from my main website */

/* #region variables */
:root {
  --main-color: #1a1f46;
  --secondary-color: #b0ffff;
  --tertiary-color: rgb(255, 217, 0);
  --navbar-color: rgba(36, 50, 115);
}

/* #endregion */

/* #region default */
* {
  margin: 0;
  padding: 0;
  font-family: Georgia;
  font-weight: normal;
  text-wrap: wrap;
  word-wrap: break-word;
  overflow-x: hidden;
}

*::selection {
  background-color: var(--secondary-color);
  color: var(--main-color);
}

a:link {
  text-decoration-color: var(--secondary-color);
  color: white;
}

a:visited {
  text-decoration-color: var(--secondary-color);
  color: white;
}

a:hover {
  text-decoration-color: var(--tertiary-color);
  transition: 0.5s;
}

a:active {
  text-decoration-color: var(--tertiary-color);
}

body {
  background: url("./images/background.jpg") no-repeat fixed;
  background-position-x: center;
  background-position-y: top;
  background-size: cover;
  color: white;
}

h2 {
  font-size: minmax(36px, 1fr);
  text-decoration: underline;
  text-decoration-color: var(--tertiary-color);
}

p, ::placeholder {
  font-size: min(1.5vw, 20px);
  padding-top: 20px;
}

@media all and (orientation: portrait) {
  p, ::placeholder {
    font-size: 3vw;
  }
}

::placeholder {
  padding-left: 10px;
}

@media all and (orientation: portrait) {
  ::placeholder {
    font-size: 3vw;
  }
}

.textbox {
  width: 50vw;
  height: 5vh;
}

@media all and (orientation: portrait) {
  .textbox {
    width: 90vw;
    height: 3vh;
  }
}

nav {
  padding-left: 2vw;
}

@media all and (orientation: portrait) {
  nav {
    padding-left: 4vw;
  }
}

.bigtextarea {
  color: #000;
  width: min(100vw, 700px);
  height: 20vh;
  margin-bottom: 10px;
}

.codebadges img {
  width: max-content;
}

@media all and (orientation: portrait) {
  .codebadges img {
    width: auto;
    height: 3vh;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--main-color);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--secondary-color);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--tertiary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--tertiary-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* #endregion */

/* #region nav bar */
.navBar {
  background-color: var(--navbar-color);
  width: 100vw;
  height: 10vh;
  min-height: 90px;
  position: fixed;
  top: 0;
  place-content: center;
  z-index: 99;
}

.navText {
  text-decoration: none;
  flex-direction: row;
  text-wrap: nowrap;
  font-size: 32px;
  max-width: 500px;
}

@media all and (orientation: portrait) {
  .navText {
    font-size: 5vw;
  }
}

.navText:hover {
  color: var(--tertiary-color);
  transition: 0.5s;
}

/* #endregion */

/* #region wrapper */
.wrapper {
  text-align: center;
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90vh;
  align-items: center;
}

@media all and (orientation: portrait) {
  .wrapper {
    font-size: 3vw;
  }
}

.dictionary-box {
  transform: scale(0.9);
  background-color: var(--main-color);
  padding: 50px;
  padding-top: 10px;
}

.toggles {
  display: flex;
  align-items: center;
  place-content: center;
}

.toggles p {
  margin: 0;
  text-align: left;
  flex: 1;
}

.toggles label {
  margin-left: auto;
}
/* #endregion */

/* #region button */
.button {
  background-color: var(--secondary-color);
  border: none;
  color: var(--main-color);
  padding: 1vh 26px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  width: fit-content;
  font-size: min(1.5vw, 20px);
}

.button:hover {
  background-color: var(--main-color);
  color: var(--secondary-color);
  transition: 0.2s;
}

@media all and (orientation: portrait) {
  .button {
    font-size: 3vw;
  }
}

/* #endregion */
