/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&display=swap");

:root {
  --blue-dark: #3045b9;
  --blue-deep: #153662;
  --red-muted: #995459;
  --red-dark: #841e20;
  --black-deep: #14150f;
  --gray-light: #b5b3b3;
  --green-earthy: #4f7758;
  --brown-warm: #403935;
  --beige-soft: #d0c8c1;
  --blue-gray-muted: #9ba6bd;
  --blue-muted: #4f5e72;
  --background-light: #f5f5f8;
  --white-soft: #fcf8f8;
  --red-earthy: #ac4640;
  --purple-deep: #3d0d4b;
  --max-content-width: 59rem;
  --min-content-width: 5rem;
  --boder_radius: 2rem;
}

body {
  font-family: "Baskervville", serif;
  background-color: var(--background-light);
  color: var(--black-deep);
  line-height: 1.6;
  font-size: 1.2rem;
  transition: all 0.7s ease-in-out;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.watermark {
  position: fixed;
  width: clamp(10px, 7vw, 193px);
}

.watermark.left {
  top: 0;
  left: 1rem;
}

.watermark.right {
  bottom: 0;
  right: 1rem;
}

.layout {
  display: grid;
  grid-template-columns:
    1fr minmax(var(--min-content-width), var(--max-content-width))
    1fr;
  gap: 1rem;
  padding: 1rem;
}

.column.middle {
  border-radius: var(--boder_radius);
}

h1,
h2,
h3 {
  font-family: "Prompt", sans-serif;
  color: var(--black-deep);
  margin-bottom: 1rem;
  margin-top: 3rem;
  text-transform: uppercase;
  font-weight: normal;
  letter-spacing: 0.2em;
}

h1 {
  font-size: clamp(1rem, 5vw, 2rem);
}

h2 {
  margin-top: 4rem;
}

p {
  margin-bottom: 1rem;
}

nav {
  text-align: right;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 1rem;
  text-decoration: none;
  color: var(--blue-gray-muted);
  font-style: italic;
}

nav ul li a:hover {
  text-decoration: underline;
}

form {
  background-color: var(--white-soft);
  border-radius: var(--boder_radius);
  padding: 2em;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row input,
.form-row select {
  flex: 1;
  min-width: 150px;
}

thead {
  display: none;
}

table tr td {
  padding: 1rem;
}

table tr th {
  padding: 1rem;
  font-family: "Prompt", sans-serif;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: normal;
  letter-spacing: 0.2em;
}

table img {
  width: 5rem;
  height: auto;
  display: inline-block;
  margin: 0 auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table tr {
  border-bottom: 1px solid var(--gray-light);
}

table tr:last-child {
  border-bottom: none;
}

a {
  color: var(--blue-deep);
}

a:hover {
  color: var(--blue-dark);
}

a:visited {
  color: var(--purple-deep);
}

.button a {
  background-color: var(--blue-deep);
  color: var(--white-soft);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.3125rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.5s ease;
  text-decoration: none;
}

.button a:hover {
  color: var(--white-soft);
  background-color: var(--blue-dark);
}

.button a:visited {
  color: var(--white-soft);
}

button {
  background-color: var(--blue-deep);
  color: var(--white-soft);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.3125rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.5s ease;
  font-family: inherit;
}

button:hover {
  background-color: var(--blue-dark);
}

button:disabled {
  background-color: var(--gray-light);
  color: var(--white-soft);
  cursor: not-allowed;
  opacity: 0.6;
}

footer {
  text-align: center;
}

/* Gallery Styling */
.gallery {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.gallery-image {
  width: 30%;
  border: 0.1rem solid var(--gray-light);
  padding: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  background-color: var(--background-light);
}

.gallery-image-five {
  width: 17%;
}

.gallery-image:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Slow transition effect for toggled elements */
* {
  transition: all 0.5s ease-in-out;
}

/* Floating Images for Text Alignment */
.image-left {
  float: left;
  margin-right: 1rem;
  max-width: 16rem;
}

.image-right {
  float: right;
  margin-left: 1rem;
  max-width: 16rem;
}

.image-large {
  max-width: 40rem;
  width: 100%;
}

.image-banner {
  width: 98%;
  height: 20rem;
  overflow: hidden;
  position: relative;
  border: 0.1rem solid var(--gray-light);
  padding: 1%;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  background-color: var(--background-light);
}

.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops the image to fill the container */
  object-position: center 45%; /* Adjust vertical position: 0% = top, 100% = bottom */
  display: block;
}

h3 img {
  vertical-align: middle;
  height: 6rem;
}

/* Clearfix to prevent layout breaking */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Text Styling */

.text-editorial {
  margin: 5rem 0;
  font-size: 2rem;
  font-style: italic;
}

.center {
  text-align: center;
}

#hidden_iframe {
  display: none;
}

/* Decryptor */

#dialogWrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: table;
  background-color: var(--background-light);
}

#dialogWrapCell {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

#mainDialog {
  max-width: 40rem;
  border-radius: var(--boder_radius);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  text-align: left;
  background-color: var(--white-soft);
  border-radius: var(--boder_radius);
  padding: 2rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

#pass {
  font-size: 2rem;
  text-align: center;
  width: 20rem;
}

#messageWrapper {
  vertical-align: middle;
  margin-top: 0.5rem;
}

.notifyText {
  display: none;
}

#invalidPass {
  color: var(--red-earthy);
}

#success {
  color: var(--green-earthy);
}

#submitPass {
  vertical-align: bottom;
}

#contentFrame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.error {
  display: none;
  color: var(--red-earthy);
}

@media (max-width: 1500px) {
  .layout {
    grid-template-columns:
      1fr minmax(var(--min-content-width), var(--max-content-width))
      1fr;
  }

  .watermark {
    width: clamp(5px, 5vw, 193px);
  }
}

@media (max-width: 1400px) {
  .layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .column.side {
    display: none;
  }

  #mainDialog {
    max-width: 100%;
    border-radius: 0;
    padding-left: 1em;
    padding-right: 1em;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 0.8rem;
  }

  .text-editorial {
    font-size: 1.3rem;
  }

  .gallery-image {
    padding: 0.3rem;
  }

  table img {
    width: 3rem;
  }

  .image-banner {
    height: 10rem;
  }

  table tr td {
    padding: 0.25rem;
  }

  #pass {
    font-size: 1.6rem;
    width: 14rem;
  }

  h3 img {
    height: 4rem;
  }
}
