/* Mobile View */

/* Windows */
.window {
  position: fixed;
  height: 95vh;
  max-height: 95%;
  width: 100%;
  display: none;
  flex-direction: column;
  background-color: var(--window_bg);
  border: 3px outset var(--window_border);
}

.window.active {
  display: flex;
}

.window.window_focus {
  z-index: 10;
}

.window.max {
  top: 0;
  left: 0;
  height: 95%;
  width: 100%;
}

.window_top {
  display: flex;
  flex-direction: row;
   height: 32px;
  min-height: 32px;
  width: 100%;
  background: linear-gradient(to right, #080081, #1e12c9);
  margin-bottom: 5px;
  color: var(--window_top_fg);
  place-content: space-between;
  font-size: 1rem;
  font-family: "arial";
  padding: 3px;
}

.window.window_focus .window_top {
  background-color: var(--window_top_bg);
}

.window_title {
  align-self: center;
  padding-left: 1%;
}

.window_buttons {
  display: flex;
  flex-direction: row;
  place-self: right;
  align-items: center;
  padding-right: 3px;
}

.topbox {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 25px;
  height: 25px;
  margin-left: 5px;
  background-color: var(--topbox_bg);
  border: 1px outset var(--topbox_border);
  cursor: pointer;
}

.topbox:hover {
  border: 1px inset #000000;
}

.topbox.close .line {
  margin-left: 4px;
  width: 70%;
  height: 2.5px;
  background-color: black;
}

.topbox.close .line:nth-child(1) {
  transform-origin: left;
  transform: rotate(45deg);
}

.topbox.close .line:nth-child(2) {
  transform-origin: left;
  transform: rotate(-45deg);
}

.topbox.max {
  display: none;
}

.topbox.max .line_box {
  margin: 7.5% 10% 0% 10%;
  border: 2.5px solid black;
  height: 80%;
}

.topbox.max .line {
  margin: 0% 10% 5% 10%;
  height: 4px;
  width: 80%;
  transform: translateY(-18px);
  background-color: black;
}

.topbox.min {
  display: none;
}

.topbox.min .line {
  width: 40%;
  height: 3px;
  background-color: black;
  margin-bottom: 10%;
}

.content {
  overflow: auto;
  display: flex;
  flex-direction: column;
  margin: 5px;
}

/* Introduction */
#intro_content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 0rem;
  line-height: 150%;
  overflow-x: hidden;
}

#intro_content img {
  width: 65%;
  height: auto;
  border: 3px inset var(--window_border);
}

.intro_container {
  background-color: white;
  border: 3px inset var(--window_border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-y: auto;
}

.cute-border {
    font-size: 0.8rem;
  }

.cute-border::before,
.cute-border::after {
  content: "───────────";
  margin: 0 0.3em;
}

.cute-border {
    font-size: 0.8rem;
}

.artfight{
  margin: 0%;
  text-align: center;
}

/* Artwork */
.art_content {
  background-color: var(--element_bg);
  border: 3px inset var(--window_border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  overflow-y: scroll;
}

.art_content img {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 20px auto;
}

.art_content h1 {
  margin: 4% 0% 0% 0%;
}

/* Case Studies */
.case_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  overflow-y: auto;
}

.case_content {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
}

.case_text {
  background-color: white;
  border: 3px inset var(--window_border);
  display: flex;
  flex-direction: column;
  align-items: left;
  padding: 4%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-y: auto;
}

.case_text h1 {
  text-align: left;
  margin-bottom: 2px;
}

/* 1st Case Study */
.case_image_scroller {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  white-space: nowrap;
  scrollbar-width: thin;
  margin-bottom: 20px;
}

.case_image_scroller img {
  height: 200px;
  width: 340px;
  flex-shrink: 0;
  border: 3px inset var(--window_border);
}

/* 2nd Case Study */
.case_image_scroller_1 {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  white-space: nowrap;
  scrollbar-width: thin;
  margin-bottom: 20px;
}

.case_image_scroller_1 img {
  height: 300px;
  width: 230px;
  flex-shrink: 0;
  border: 3px inset var(--window_border);
}

/* 3rd Case Study */
.case_image_scroller_2 {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  white-space: nowrap;
  scrollbar-width: thin;
  margin-bottom: 20px;
}

.case_image_scroller_2 img {
  height: 200px;
  width: 320px;
  flex-shrink: 0;
  border: 3px inset var(--window_border);
}

/* Social Media */
.window.social .content {
  flex: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  }

.social_container {
  background-color: white;
  border: 3px inset var(--window_border);
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  }

 .social_icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 10px;
    margin-top: 20px;
  }

  .social_icons a {
    flex: 1 1 calc(50% - 40px);
    display: flex;
    justify-content: center;
  }

  .social_icons img {
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    transition: transform 0.2s;
  }

  .social_icons img:hover {
    transform: scale(1.1);
  }

/* Contact */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* prevent horizontal scroll */
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.contact_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
}

.contact_card {
  background-color: #c2c2c2;
  border: 2px inset var(--window_border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%; /* remove fixed width */
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* ensure children can't overflow */
}

.contact_message_box {
  border: 2px inset var(--window_border);
  background-color: white;
  padding: 8px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  word-wrap: break-word; /* prevent long text from breaking layout */
}

.contact_form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.contact_form label {
  font-size: 0.9rem;
}

.contact_form input {
  width: 100%;
  background-color: #f9f9f9;
  border: 2px inset var(--window_border);
  padding: 6px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  max-width: 100%; /* prevent overflow */
}

.contact_form textarea {
  width: 100%;
  background-color: #f9f9f9;
  border: 2px inset var(--window_border);
  padding: 6px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  max-width: 100%; /* prevent overflow */
  height: 150px;
  resize: vertical;
}

.contact_form button {
  align-self: flex-end;
  padding: 6px 12px;
  background-color: #2e78ef;
  border: 2px solid;
  border-color: #5e9cff #0f55c5 #0f55c5 #5e9cff;
  cursor: pointer;
  color: white;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .contact_card {
    width: 100vw;  /* full viewport width */
    height: 100vh; /* full viewport height */
    padding: 1rem;
    gap: 0.5rem;
  }

  .contact_message_box {
    font-size: 12px;
    width: 95%;
    padding: 6px;
  }

  .contact_form {
    margin-top: 1rem;
  }

  .contact_form label {
    font-size: 0.85rem;
  }

  .contact_form input,
  .contact_form textarea {
    font-size: 12px;
  }

  .contact_form textarea {
    height: 230px;
  }

  .contact_form button {
    padding: 5px 10px;
    font-size: 12px;
  }
}


/* Desktop */
@media screen and (min-width: 800px) {
  .window {
  position: fixed;
  z-index: 1; /* base for all windows */
  
.window.window_focus {
  z-index: 100; /* higher than the base */
}}

.topbox.min {
  display: flex;
  justify-content: end;
  z-index: 15;
}

/* Introduction */
.window.intro {
  top: 10%;
  right: 5%;
  height: 75%;
  width: 39%;
}

.window.intro.max {
  height: 95%;
  width: 100%;
}

.cute-border {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1em 0;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #080081;
  white-space: nowrap; /* prevents line from wrapping */
}

.cute-border::before,
.cute-border::after {
  content: "─────────────────────";
  flex-shrink: 1;
  margin: 0 0.5em;
  overflow: hidden;
}

#intro_content img {
  margin: 15px 0px 15px 0px;
}

/* Artwork */
.window.art {
  height: 90%;
  top: 2%;
  left: 4%;
  width: 40%;
}

.art_content {
  overflow-y: scroll;
}

#art_container {
  flex-direction: row-reverse;
  overflow-y: hidden;
  justify-content: space-around;
}

.art_content {
  width: 100%;
}

/* Case Studies */
.window.case {
  top: 27%;
  left: 10%;
  width: 70%;
  height: 60%;
}

.case_content {
  flex-direction: row-reverse;
  align-items: left;
  margin-right: 0px;
}

.case_text {
  overflow-y: auto;
  margin-left: 0px;
  height: 100%;
}

/* Social Media */
.window.social {
  top: 20%;
  left: 30%;
  width: 30.5%;
  height: 17%;
}

.window.social .content {
  flex: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.social_container {
  background-color: white;
  border: 3px inset var(--window_border);
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.social_icons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 10px;
  margin-left: 10px;
}

.social_icons a {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.window.social .social_icons img {
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s;
}

.window.social .social_icons img:hover {
    transform: scale(1.2);
}

.social_icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social_icons img {
  width: 32px;
  height: 32px;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

/* Contact */
.window.contact {
  width: 90%;
  max-width: 500px;
  height: 60%;
  top: 8%;
  left: 25%;
  transform: translateX(-50%);
  background-color: var(--window_bg);
  border: 3px outset var(--window_border);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  color: var(--body_fg);
}

.window_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  background: linear-gradient(to right, #080081, #1e12c9);
  color: white;
  padding: 2px 6px;
  box-sizing: border-box;
}

.content {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  background-color: #c2c2c2;
  box-sizing: border-box;
}

.contact_card {
  background-color: white;
  border: 2px inset var(--window_border);
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.contact_message_box {
  border: 2px inset var(--window_border); /* 3D Windows 98 style border */
  background-color: white;
  padding: 5px 5px;
  width: 100%;
  max-width: 80%; /* adjust as needed */
  height: 24%;
  margin: 0 auto; /* center horizontally */
  text-align: center;
  font-family: 'new_regular'; /* classic 98 font */
  font-size: 13px;
  line-height: 1.3;
  box-sizing: border-box;
}

.contact_message_box p {
  margin: 0;
  font-size: inherit; /* ensures it uses the div's font size */
}

.contact_form label {
  font-size: 0.9rem;
  margin-bottom: 4px;
  font-family: 'new_bold'
}

.contact_form input {
  width: 100%;
  background-color: #f9f9f9;
  border: 2px inset var(--window_border);
  padding: 6px;
  font-family: 'new_regular'
}

.contact_form textarea {
  height: 45%;
  width: 100%;
  background-color: #f9f9f9;
  border: 2px inset var(--window_border);
  padding: 6px;
  font-family: 'new_regular'
}

.contact_form button {
  align-self: flex-end;
  padding: 6px 12px;
  background-color: #2e78ef;
   border: 2px solid;
  border-color: #5e9cff #0f55c5
                #0f55c5 #5e9cff;
  cursor: pointer;
  color: white;
}}

