@import url("./global.css");

body {
  margin: 0;
  overflow: visible;
  overflow-y: auto;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  height: fit-content;
  z-index: 9999;
}

/* WING DING MODE */
#wingding-toggle {
  display: none;
}

.wingdingmode {
  margin: 0.5rem;
}

/* Show only "off" by default */
.wingding-off {
  display: inline;
}

.wingding-on {
  display: none;
}

/* When checked, swap the button text */
#wingding-toggle:checked ~ header .symbols .wingding-off {
  display: none;
}

#wingding-toggle:checked ~ header .symbols .wingding-on {
  display: inline;
}

/* ===== INPUT BOXES ===== */
.form-container {
  margin: 0.5rem;
  z-index: 9999;
}

form {
  display: flex;
  flex-direction: row;
  display: block;
}

input {
  max-width: 100vw;
}

input[type="text"],
input[name="emails"] {
  display: block;
  margin: 0 5rem 0.5rem 0;
  z-index: 1200;
  font-size: 1rem;
  width: 95%;
}

/* BUTTONS */
/* button Sent */
button {
  font-size: 1.5rem;
  width: fit-content;
  border: 1px solid black;
  z-index: 1200;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: bold;
}

button:hover {
  color: orangered;
  background-color: aqua;
  cursor: pointer;
  border: 2px solid rgb(87, 141, 0);
}

/* button Touch to Translate */
footer {
  position: fixed;
  top: 0;
  right: 0;
  height: fit-content;
  z-index: 9999;
}

footer p {
  font-size: 1.5rem;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  color: white;
  background-color: black;
  border: 2px solid rgba(0, 0, 0, 0);
  margin: 0.5rem;
  font-weight: bold;
}

footer p:hover {
  color: orangered;
  background-color: aqua;
  cursor: pointer;
  border: 2px solid rgb(87, 141, 0);
}

footer p:active {
  color: orangered;
  background-color: aqua;
  cursor: pointer;
  border: 2px solid rgb(87, 141, 0);
}

/* ===== SUBMIT DATA ===== */
#data-container {
  font-size: 1rem;
  font-family: "Arial Narrow", Arial, sans-serif;
  z-index: 500;
  position: absolute;
  top: 0px;
  left: 0;
}

#data-container tr {
  color: rgb(125, 53, 53);
}

/* ===== TEXT WRAPPER ===== */
.text_wrapper {
  margin-top: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* DEFAULT: Wing Dings font for all paragraphs */
h1 {
  font-family: "Wing Dings Laatste", "Webdings";
  text-align: center;
}

#wingding-toggle:checked ~ .text_wrapper h1 {
  font-family: "Times New Roman", Times, serif;
}

.text_wrapper .small-margin {
  margin: 0;
}
/* When toggle is CHECKED (wingding mode ON), change to Times New Roman */
#wingding-toggle:checked ~ .text_wrapper p {
  font-family: "Times New Roman", Times, serif;
}

br {
  margin-top: 2.5rem;
}

mark {
  padding: 0.15rem;
  color: rgb(0, 116, 0);
  background-color: rgb(255, 255, 0);
}

/* ===== TEXT DESCRIPTION ===== */
.text_description {
  margin: 1rem;
}

.text_description p {
  margin-top: 1.5rem;
  background-color: white;
  padding: 0 0.15rem;
  max-width: 600px;
  font-family: "Times New Roman", Times, serif !important;
}

/* ===== IMAGE ===== */
img {
  width: 550px;
  margin-top: 2.5rem;
}

.image-container {
  position: relative;
  width: 550px;
  margin: 0 auto;
  height: 400px;
}

.image-container img {
  position: absolute;
  width: 100%;
  height: auto;
}

/* By default, show the default image */
.image-default {
  opacity: 1;
}

.image-hover {
  opacity: 0;
}

/* When checkbox is CHECKED, swap the images */
#wingding-toggle:checked ~ .text_wrapper .image-container .image-default {
  opacity: 0;
}

#wingding-toggle:checked ~ .text_wrapper .image-container .image-hover {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 900px) {
  .text_wrapper p {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  img {
    width: 90vw;
  }
}

@media screen and (max-width: 580px) {
  .form-container {
    padding-top: 2.5rem;
  }

  .text_wrapper {
    margin-top: 11rem;
  }

  .image-container {
    width: 90vw;
    margin: 0 auto;
  }
}
