

/* =========================================
   RESET
========================================= */

* {

  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   BODY
========================================= */

body {

  background-image:
    url("/1.png");

  background-size: auto;
  background-repeat: repeat;

  min-height: 100vh;

  overflow-x: hidden;

  font-family: "MS Sans Serif", sans-serif;

  color: black;
}

/* =========================================
   TITLE
========================================= */

.site-title {
  position: relative;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;

  font-family: "Times New Roman", serif;

  font-size: 46px;
  font-weight: normal;

  color: white;

  text-shadow:
    2px 2px 0 rgba(0,0,0,0.5);

  z-index: 50;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.desktop-layout {

  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 80px;
  padding-bottom: 90px;
}

/* =========================================
   WINDOWS
========================================= */

.window {

  background: #d4d0c8;

  border:
    2px solid #ffffff;

  box-shadow:
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #ffffff,
    4px 4px 0 rgba(0,0,0,0.2);
}

.window-header {

  height: 28px;

  background:
    linear-gradient(
      to right,
      #000080,
      #1084d0
    );

  display: flex;
  align-items: center;

  padding: 0 10px;

  color: white;

  font-size: 13px;
}

/* =========================================
   NAV WINDOW
========================================= */

.nav-window {

  width: 620px;
  max-width: 92vw;
}

.window-content {

  padding: 32px 26px;
}

/* =========================================
   ABOUT WINDOW
========================================= */

.about-window {

  width: 620px;
  max-width: 92vw;

  margin-top: 24px;
}

.about-content {

  padding: 24px 26px;

  font-size: 14px;
  line-height: 1.5;
}

/* =========================================
   ICON GRID
========================================= */

.icon-grid {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 26px;
}

/* =========================================
   ICONS
========================================= */

.desktop-icon {

  width: 90px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-decoration: none;

  color: black;

  transition:
    transform 0.15s ease;
}

.desktop-icon:hover {

  transform:
    translateY(-5px);
}

.icon-image {

  width: 56px;
  height: 56px;

  background: white;

  border:
    2px solid #808080;

  box-shadow:
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #ffffff;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 8px;

  font-size: 26px;
}

.icon-image img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.icon-label {

  font-size: 13px;

  text-align: center;
}

/* =========================================
   LOWER GRID
========================================= */

.lower-grid {

  width: 620px;
  max-width: 92vw;

  margin-top: 24px;

  display: grid;

  grid-template-columns:
    1fr 100px;

  gap: 14px;

  align-items: start;
}

/* =========================================
   WEB QUILT
========================================= */

.quilt-window {

  width: 100%;
}

.quilt-content {

  padding: 13px;
}

.quilt-grid {

  display: grid;

  grid-template-columns:
    repeat(5, 88px);

  gap: 8px;

  justify-content: center;
}

.quilt-grid img {

  width: 88px;
  height: 31px;

  display: block;

  image-rendering: pixelated;

  transition:
    transform 0.15s ease;
}

.quilt-grid a:hover img {

  transform:
    scale(1.05);
}

/* =========================================
   BACKGROUND PICKER
========================================= */

.bg-window {

  width: 100px;
}

.bg-content {

  padding: 10px;
}

.bg-grid {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;
}

.bg-thumb {

  width: 100%;

  aspect-ratio: 1 / 1;

  border:
    2px solid #808080;

  cursor: pointer;

  background-size: cover;
  background-position: center;

  transition:
    transform 0.15s ease;
}

.bg-thumb:hover {

  transform:
    scale(1.05);
}

/* =========================================
   DISPLAY FIX
========================================= */

.quilt-window,
.bg-window {

  display: flex;
  flex-direction: column;
}

/* =========================================
   FOOTER
========================================= */

footer {

  position: fixed;

  bottom: 0;
  left: 0;

  width: 100%;
  height: 38px;

  background: #d4d0c8;

  border-top:
    2px solid #ffffff;

  box-shadow:
    inset 0 2px 0 #808080;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 16px;

  font-size: 12px;

  z-index: 50;
}

/* =========================================
   GALLERY
========================================= */

.gallery-window {
  width: 620px;
  max-width: 92vw;
  margin-top: 24px;
}

.gallery-content {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-frame {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  width: 100%;
}

/* IMAGE CONTAINER */
.gallery-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;   /* controls size on desktop */
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #000;
  border: 2px solid #808080;

  box-shadow:
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #ffffff;
}

/* IMAGE FIT RULE */
.gallery-image-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  image-rendering: auto;
}

/* NAV BUTTONS */
.nav-btn {
  width: 32px;
  height: 32px;

  background: #d4d0c8;
  border: 2px solid #808080;

  box-shadow:
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #ffffff;

  cursor: pointer;
  font-size: 16px;
  
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:active {
  box-shadow:
    inset 2px 2px 0 #404040,
    inset -2px -2px 0 #ffffff;
}

/* CAPTION */
.gallery-caption {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}

/* =========================================
   MUSIC PLAYER
========================================= */

.player-window {

  width: 620px;
  max-width: 92vw;

  margin-top: 24px;
}

.player-content {

  padding: 16px;
}

/* =========================================
   TRACK LIST
========================================= */

.track-list {

  display: flex;
  flex-direction: column;

  gap: 2px;

  background: white;

  border:
    2px solid #808080;

  padding: 4px;

  max-height: 320px;

  overflow-y: auto;
}

.track {

  padding:
    10px 12px;

  cursor: pointer;

  font-size: 13px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition:
    background 0.1s ease;
}

.track:hover {

  background: #dbe8ff;
}

.track.active {

  background: #000080;

  color: white;
}

/* =========================================
   CONTROLS
========================================= */

.player-controls {

  margin-top: 16px;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 12px;
}

.player-btn {

  width: 52px;
  height: 52px;

  border:
    2px solid #ffffff;

  background: #d4d0c8;

  box-shadow:
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #ffffff;

  cursor: pointer;

  font-size: 20px;
}

.player-btn:active {

  box-shadow:
    inset 2px 2px 0 #808080,
    inset -2px -2px 0 #ffffff;
}

.play-btn {

  width: 72px;
  height: 72px;

  font-size: 28px;
}

/* =========================================
   INFO BUTTON
========================================= */

.info-btn {

  margin-left: auto;

  width: 36px;
  height: 36px;

  border:
    2px solid #ffffff;

  background: #d4d0c8;

  box-shadow:
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #ffffff;

  cursor: pointer;

  font-family: serif;
  font-size: 18px;
}

/* =========================================
   MODAL
========================================= */

.modal-overlay {

  position: fixed;

  inset: 0;

  background:
    rgba(0,0,0,0.45);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 999;
}

.modal-overlay.active {

  display: flex;
}

.modal-window {

  width: 340px;
  max-width: 90vw;

  background: #d4d0c8;

  border:
    2px solid #ffffff;

  box-shadow:
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #ffffff,
    4px 4px 0 rgba(0,0,0,0.3);
}

.modal-header {

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {

  width: 21px;
  height: 21px;

  border: none;
  border: 2px solid #ffffff;
  

  background: #d4d0c8;

  cursor: pointer;

  font-size: 14px;
  
    box-shadow:
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #ffffff;
  
}

.modal-content {

  padding: 18px;

  font-size: 14px;
  line-height: 1.5;
}

/* =========================================
   VIDEO PLAYER
========================================= */

.video-window {

  width: 620px;
  max-width: 92vw;

  margin-top: 24px;
}

.video-content {

  padding: 24px 26px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-frame {

  display: grid;

  grid-template-columns:
    40px 1fr 40px;

  align-items: center;

  gap: 12px;

  width: 100%;
}

/* =========================================
   VIDEO WRAP
========================================= */

.video-wrap {

  aspect-ratio: 4 / 3;

  width: 100%;

  max-width: 500px;

  margin: 0 auto;

  overflow: hidden;

  background: black;

  border:
    2px solid #808080;

  box-shadow:
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #ffffff;
}

.video-wrap video {

  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  background: black;
}

/* =========================================
   BROWSER WINDOW
========================================= */

.browser-window {

  width: 620px;
  max-width: 92vw;

  margin-top: 24px;
}

/* =========================================
   TABS
========================================= */

.browser-tabs {

  display: flex;

  gap: 2px;

  padding:
    8px 8px 0;

  background: #bfb8aa;
}

.browser-tab {

  padding:
    8px 14px;

  border:
    2px solid #ffffff;

  border-bottom: none;

  background: #d4d0c8;

  cursor: pointer;

  font-size: 12px;

  box-shadow:
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #ffffff;
}

.browser-tab.active {

  background: white;
}

/* =========================================
   URL BAR
========================================= */

.browser-bar {

  padding: 8px;

  background: #d4d0c8;

  border-top:
    2px solid #808080;
}

.browser-url {

  background: white;

  border:
    2px solid #808080;

  padding:
    6px 10px;

  font-size: 12px;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;
}

/* =========================================
   IFRAME
========================================= */

.browser-content {

  width: 100%;

  height: 360px;

  overflow: hidden;

  background: white;

  position: relative;
}

.browser-content iframe {

  width: 1280px;
  height: 720px;

  border: none;

  transform:
    scale(0.50);

  transform-origin:
    top left;

  display: block;
}

/* =========================================
   CONTACT FORM
========================================= */

.contact-window {

  width: 620px;
  max-width: 92vw;

  margin-top: 24px;
}

.contact-content {

  padding: 24px 26px;
}

.contact-text {

  font-size: 14px;

  margin-bottom: 20px;

  line-height: 1.5;
}

/* =========================================
   FORM
========================================= */

#form {

  display: flex;
  flex-direction: column;

  gap: 10px;
}

#form label {

  font-size: 13px;
}

/* INPUTS */

#form input,
#form textarea {

  width: 100%;

  padding: 10px;

  font-family: "MS Sans Serif", sans-serif;

  font-size: 13px;

  border:
    2px solid #808080;

  background: white;

  box-shadow:
    inset 2px 2px 0 #404040,
    inset -2px -2px 0 #ffffff;

  resize: vertical;
}

#form textarea {

  min-height: 140px;
}

/* BUTTON */

#form button {

  margin-top: 10px;

  padding: 12px;

  background: #d4d0c8;

  border:
    2px solid #ffffff;

  box-shadow:
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #ffffff;

  cursor: pointer;

  font-family: "MS Sans Serif", sans-serif;

  font-size: 13px;
}

#form button:active {

  box-shadow:
    inset 2px 2px 0 #808080,
    inset -2px -2px 0 #ffffff;
}

.success-box {

  display: none;

  margin-top: 12px;

  padding: 10px;

  background: #d4ffd4;

  border: 2px solid #808080;

  font-size: 13px;
}

.success-box.show {
  display: block;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .site-title {

    position: relative;

    top: auto;
    left: auto;

    transform: none;

    text-align: center;

    font-size: 36px;

    margin-top: 24px;
  }

  .desktop-layout {

    padding-top: 24px;

    padding-left: 16px;
    padding-right: 16px;
  }

.nav-window {
  grid-column: 1 / -1;
}

.lower-grid {

  width: 620px;
  max-width: 92vw;

  margin-top: 24px;

  display: grid;

  grid-template-columns:
    1fr 100px;

  gap: 14px;

  align-items: start;
}

  .quilt-grid {

    grid-template-columns:
      repeat(2, 88px);
  }

  .icon-grid {

    gap: 20px;
  }

  .desktop-icon {

    width: 76px;
  }

  .icon-image {

    width: 50px;
    height: 50px;

    font-size: 22px;
  }

  footer {

    position: relative;

    flex-direction: column;

    height: auto;

    gap: 2px;

    padding: 8px;

    margin-top: 30px;
  }
  
  .quilt-window,
.bg-window {
  width: 100%;
}
}


