/* =========================================================
   BASIC
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;

  font-family:
    "Courier New",
    Courier,
    monospace;

  cursor: crosshair;

  background: #11009b;
}

button {
  font-family: inherit;
}


/* =========================================================
   GENERAL
========================================================= */

.hidden {
  display: none !important;
}

.page {
  width: 100vw;
  height: 100vh;
}


/* =========================================================
   VCR MENU
========================================================= */

.screen {
  position: relative;

  width: 100vw;
  height: 100vh;

  overflow: hidden;

  background: #11009b;

  color: #eeeeee;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family:
    "Courier New",
    Courier,
    monospace;
}


/* subtle VHS noise */

.vcr-noise {
  position: absolute;

  inset: 0;

  pointer-events: none;

  opacity: .12;

  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      rgba(255,255,255,.12) 3px,
      transparent 4px
    );

  animation: vhsNoise .15s infinite;
}


.scanlines {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,.10),
      rgba(0,0,0,.10) 1px,
      transparent 1px,
      transparent 4px
    );
}


@keyframes vhsNoise {

  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-1px);
  }

  100% {
    transform: translateX(0);
  }

}


/* =========================================================
   MENU CONTENT
========================================================= */

.menu-container {
  position: relative;

  z-index: 2;

  width: min(760px, 90vw);

  display: flex;
  flex-direction: column;

  align-items: center;
}


/* TITLE */

.menu-title {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 25px;

  margin-bottom: 36px;

  font-size: clamp(20px, 3vw, 30px);
}


.menu-title .dash {
  letter-spacing: 3px;
}


.menu-word {
  font-weight: bold;
}


/* OPTIONS */

#menu {
  width: min(430px, 85vw);
}


.menu-option {
  width: max-content;

  min-width: 175px;

  padding: 1px 8px;

  margin: 1px 0;

  font-size: clamp(25px, 3vw, 30px);

  line-height: 1.3;

  cursor: pointer;

  color: #eeeeee;
}


.menu-option.selected {
  background: #eeeeee;

  color: #11009b;
}


.menu-option:hover {
  background: #eeeeee;

  color: #11009b;
}


/* INSTRUCTIONS */

.instructions {
  align-self: center;

  width: min(430px, 85vw);

  margin-top: 25px;

  font-size: clamp(18px, 2.3vw, 26px);

  line-height: 1.35;
}


/* FOOTER */

.vcr-footer {
  position: absolute;

  z-index: 3;

  bottom: 15px;

  font-size: 11px;

  opacity: .7;

  letter-spacing: 2px;
}


/* =========================================================
   WINDOWS 95 DESKTOP
========================================================= */

.desktop {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.08) 1px,
      transparent 1px
    ),
    #315d2d;

  background-size: 4px 4px;

  color: #111;

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}


/* =========================================================
   DESKTOP NAME
========================================================= */

.desktop-name {
  position: absolute;

  top: 10px;
  right: 20px;

  color: white;

  font-family:
    "Courier New",
    monospace;

  font-size: 14px;

  text-shadow:
    1px 1px #000;
}


/* =========================================================
   WINDOWS
========================================================= */

.window {
  position: absolute;

  background: #c0c0c0;

  border:
    2px outset
    #eeeeee;

  box-shadow:
    5px 5px 0 rgba(0,0,0,.30);
}


.window-bar {
  height: 27px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 3px 5px;

  background: #000080;

  color: white;

  font-size: 13px;

  font-weight: bold;
}


.window-close,
.modal-bar button {
  width: 20px;
  height: 20px;

  padding: 0;

  background: #c0c0c0;

  border:
    2px outset
    white;

  color: black;

  font-weight: bold;

  line-height: 14px;

  cursor: pointer;
}


/* =========================================================
   IDENTITY WINDOW
========================================================= */

.identity-window {
  width: 470px;

  top: 55px;
  left: 7%;

  transform: rotate(-1deg);
}


.identity-content {
  display: flex;

  gap: 14px;

  padding: 13px;
}


/* AVATAR */

.avatar-box {
  flex-shrink: 0;

  width: 145px;
  height: 165px;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #d7d7d7,
      #888,
      #e8e8e8
    );

  border:
    3px inset #999;

  overflow: hidden;
}


.avatar-box img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


.avatar-placeholder {
  font-family:
    "Times New Roman",
    serif;

  font-size: 65px;

  color: #555;
}


/* IDENTITY TEXT */

.identity-info {
  font-family:
    "Comic Sans MS",
    "Comic Sans",
    cursive;

  font-size: 14px;
}


.identity-info h1 {
  margin:
    0 0 5px;

  font-size: 24px;

  font-weight: normal;
}


.identity-info p {
  margin:
    4px 0 12px;
}


.identity-list {
  display: flex;

  flex-direction: column;

  gap: 4px;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;
}


/* =========================================================
   LIKES
========================================================= */

.likes-window {
  width: 405px;

  top: 95px;
  right: 7%;

  transform: rotate(1deg);
}


.likes-content {
  display: grid;

  grid-template-columns:
    1fr
    1fr
    1fr;

  gap: 10px;

  padding: 12px;

  font-family:
    "Comic Sans MS",
    "Comic Sans",
    cursive;

  font-size: 12px;
}


.likes-column p {
  margin: 3px 0;
}


.likes-column h2 {
  margin:
    0 0 7px;

  font-size: 17px;

  color: #008000;
}


/* =========================================================
   THINGS I CARRY
========================================================= */

.carry-window {
  width: 390px;

  left: 11%;
  bottom: 72px;

  transform: rotate(-1.5deg);
}


.carry-content {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;

  padding: 14px;

  text-align: center;
}


.carry-item {
  font-family:
    "Comic Sans MS",
    "Comic Sans",
    cursive;

  font-size: 11px;
}


.carry-icon {
  font-size: 30px;

  margin-bottom: 2px;
}


/* =========================================================
   PLAYER
========================================================= */

.player-window {
  width: 355px;

  right: 13%;
  bottom: 90px;

  transform: rotate(1deg);
}


.player-content {
  display: flex;

  align-items: center;

  gap: 14px;

  padding: 12px;
}


.album-art {
  width: 105px;
  height: 105px;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    repeating-linear-gradient(
      45deg,
      #222 0px,
      #222 4px,
      #777 5px,
      #777 8px
    );

  border:
    3px inset #888;

  color: white;

  font-size: 40px;
}


.player-info {
  display: flex;

  flex-direction: column;

  gap: 5px;

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
}


.player-label {
  font-size: 9px;

  color: #555;
}


.player-info strong {
  font-size: 13px;
}


.player-controls {
  display: flex;

  gap: 3px;

  margin-top: 7px;
}


.player-controls button {
  width: 27px;
  height: 23px;

  padding: 0;

  background: #c0c0c0;

  border:
    2px outset white;

  cursor: pointer;
}


/* =========================================================
   LITTLE NOTE
========================================================= */

.desktop-note {
  position: absolute;

  width: 190px;

  top: 54px;
  right: 38%;

  padding: 12px 15px;

  background: #fff59a;

  box-shadow:
    3px 4px 0 rgba(0,0,0,.22);

  transform:
    rotate(3deg);

  font-family:
    "Comic Sans MS",
    "Comic Sans",
    cursive;

  font-size: 13px;
}


.desktop-note p {
  margin: 3px 0;
}


.note-star {
  position: absolute;

  top: -9px;
  right: -8px;

  font-size: 22px;
}


.note-sign {
  display: block;

  margin-top: 9px;

  text-align: right;

  font-size: 11px;
}


/* =========================================================
   DECORATIONS
========================================================= */

.desktop-decoration {
  position: absolute;

  pointer-events: none;

  font-size: 34px;
}


.decoration-heart {
  left: 48%;
  top: 42%;

  color: #8d1515;

  transform: rotate(-15deg);
}


.decoration-star {
  left: 5%;
  bottom: 27%;

  color: #d51d1d;

  transform: rotate(12deg);
}


.decoration-rainbow {
  right: 5%;
  top: 39%;

  font-size: 25px;

  transform: rotate(7deg);
}


/* =========================================================
   TASKBAR
========================================================= */

.taskbar {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 36px;

  display: flex;

  align-items: center;

  gap: 5px;

  padding: 3px;

  background: #c0c0c0;

  border-top:
    2px solid white;
}


.start-button {
  height: 29px;

  padding:
    2px 9px;

  background: #c0c0c0;

  border:
    2px outset white;

  font-weight: bold;

  cursor: pointer;
}


.task-button {
  height: 27px;

  min-width: 170px;

  padding:
    4px 9px;

  border:
    2px inset #888;

  font-size: 12px;
}


.taskbar-spacer {
  flex: 1;
}


.clock {
  min-width: 65px;

  padding:
    5px 8px;

  border:
    2px inset #888;

  font-size: 12px;

  text-align: center;
}


/* =========================================================
   MEDIA DESKTOP
========================================================= */

.media-desktop {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background:
    radial-gradient(
      rgba(255,255,255,.07) 1px,
      transparent 1px
    ),
    #315d2d;

  background-size: 5px 5px;

  font-family:
    "Comic Sans MS",
    "Comic Sans",
    cursive;
}


/* MEDIA TITLE */

.media-title {
  position: absolute;

  top: 45px;
  left: 50%;

  transform:
    translateX(-50%)
    rotate(-2deg);

  padding:
    8px 20px;

  background: #fff59a;

  box-shadow:
    3px 4px 0 rgba(0,0,0,.2);

  font-size: 26px;
}


.media-subtitle {
  position: absolute;

  top: 92px;
  left: 50%;

  transform: translateX(-50%);

  font-size: 12px;

  color: white;

  text-shadow:
    1px 1px #000;
}


/* =========================================================
   MEDIA OBJECTS
========================================================= */

.media-object {
  position: absolute;

  padding: 0;

  border: 0;

  background: none;

  cursor: pointer;

  color: #111;

  transition:
    transform .15s ease;
}


.media-object:hover {
  transform:
    scale(1.07)
    rotate(0deg);
}


.media-label {
  display: block;

  margin-top: 8px;

  padding: 3px 7px;

  background: #c0c0c0;

  border:
    2px outset white;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;
}


/* =========================================================
   VHS
========================================================= */

.vhs-object {
  left: 14%;
  top: 28%;

  transform: rotate(-6deg);
}


.vhs-tape {
  width: 235px;
  height: 135px;

  padding: 16px;

  background:
    linear-gradient(
      135deg,
      #202020,
      #484848
    );

  border-radius: 8px;

  box-shadow:
    5px 6px 0 rgba(0,0,0,.3);
}


.vhs-label {
  height: 50px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #e9e1bc;

  font-family:
    "Courier New",
    monospace;

  font-size: 18px;

  font-weight: bold;
}


.vhs-lines {
  margin-top: 9px;

  color: #aaa;

  font-size: 8px;
}


/* =========================================================
   CDS
========================================================= */

.cds-object {
  left: 43%;
  top: 29%;

  transform: rotate(5deg);
}


.cd-stack {
  position: relative;

  width: 175px;
  height: 160px;
}


.cd-disc {
  position: absolute;

  width: 130px;
  height: 130px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    conic-gradient(
      #ddd,
      #aaa,
      #eee,
      #999,
      #ddd
    );

  border:
    2px solid #888;

  box-shadow:
    3px 4px 0 rgba(0,0,0,.2);

  font-family:
    "Courier New",
    monospace;
}


.cd-disc::after {
  content: "";

  position: absolute;

  width: 17px;
  height: 17px;

  border-radius: 50%;

  background: #315d2d;

  border:
    2px solid #777;
}


.cd-disc span {
  position: relative;

  z-index: 2;

  font-size: 17px;
}


.cd-one {
  top: 0;
  left: 0;
}


.cd-two {
  top: 15px;
  left: 25px;
}


.cd-three {
  top: 30px;
  left: 50px;
}


/* =========================================================
   VINYL
========================================================= */

.vinyl-object {
  right: 16%;
  top: 27%;

  transform: rotate(8deg);
}


.vinyl {
  position: relative;

  width: 190px;
  height: 190px;

  border-radius: 50%;

  background:
    repeating-radial-gradient(
      circle,
      #111 0px,
      #111 3px,
      #181818 4px,
      #111 6px
    );

  box-shadow:
    5px 6px 0 rgba(0,0,0,.3);
}


.vinyl-label {
  position: absolute;

  width: 63px;
  height: 63px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #b71c2b;

  color: white;

  font-size: 25px;
}


.vinyl-hole {
  position: absolute;

  width: 7px;
  height: 7px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background: #111;

  z-index: 3;
}


/* =========================================================
   CAMERA
========================================================= */

.camera-object {
  left: 31%;
  bottom: 16%;

  transform: rotate(-4deg);
}


.camera {
  position: relative;

  width: 205px;
  height: 120px;

  border-radius: 12px;

  background:
    linear-gradient(
      #555,
      #222
    );

  border:
    4px solid #111;

  box-shadow:
    5px 6px 0 rgba(0,0,0,.3);
}


.camera::before {
  content: "";

  position: absolute;

  left: 23px;
  top: -19px;

  width: 65px;
  height: 25px;

  background: #222;

  border:
    3px solid #111;

  border-bottom: 0;

  border-radius:
    8px 8px 0 0;
}


.camera-flash {
  position: absolute;

  right: 20px;
  top: 17px;

  width: 27px;
  height: 18px;

  background: #ddd;

  border:
    2px solid #111;
}


.camera-lens {
  position: absolute;

  width: 73px;
  height: 73px;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background: #111;

  border:
    7px solid #777;

  box-shadow:
    inset 0 0 0 7px #222;
}


.lens-inner {
  width: 31px;
  height: 31px;

  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background: #111;

  border:
    3px solid #555;
}


/* =========================================================
   MEDIA BACK
========================================================= */

.media-back {
  position: absolute;

  left: 30px;
  bottom: 25px;

  padding:
    6px 13px;

  background: #c0c0c0;

  border:
    2px outset white;

  cursor: pointer;
}


.media-footer {
  position: absolute;

  right: 20px;
  bottom: 14px;

  color: white;

  font-family:
    "Courier New",
    monospace;

  font-size: 10px;

  opacity: .7;
}


/* =========================================================
   LEAVING MODAL
========================================================= */

.modal {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    rgba(0,0,0,.25);
}


.modal-window {
  width: min(430px, 88vw);

  background: #c0c0c0;

  border:
    3px outset white;

  box-shadow:
    8px 8px 0 rgba(0,0,0,.4);
}


.modal-bar {
  height: 27px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 3px 5px;

  background: #000080;

  color: white;

  font-family:
    Arial,
    sans-serif;

  font-size: 13px;

  font-weight: bold;
}


.modal-content {
  display: flex;

  align-items: center;

  gap: 18px;

  padding: 22px;

  font-family:
    "Comic Sans MS",
    "Comic Sans",
    cursive;
}


.modal-content h2 {
  margin: 0 0 10px;

  font-size: 17px;
}


.modal-content p {
  margin: 0;

  font-size: 14px;
}


.warning-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #000080;

  color: white;

  font-family:
    "Times New Roman",
    serif;

  font-size: 29px;

  font-weight: bold;
}


.modal-buttons {
  display: flex;

  justify-content: flex-end;

  gap: 8px;

  padding:
    0 15px 15px;
}


.modal-buttons button {
  min-width: 70px;

  padding:
    5px 12px;

  background: #c0c0c0;

  border:
    2px outset white;

  cursor: pointer;
}


.modal-buttons button:active,
.old-button:active {
  border-style: inset;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  body {
    overflow: auto;
  }


  /* MENU */

  .screen {
    min-height: 100svh;
  }


  .menu-title {
    gap: 10px;

    font-size: 21px;
  }


  .menu-title .dash {
    letter-spacing: 1px;
  }


  .menu-option {
    font-size: 24px;

    min-width: 150px;
  }


  .instructions {
    font-size: 18px;
  }


  /* DESKTOP */

  .desktop {
    min-height: 100svh;

    height: auto;

    overflow-y: auto;

    padding:
      70px 15px 70px;
  }


  .desktop-name {
    top: 15px;
    right: 15px;
  }


  .window {
    position: relative;

    width: 100% !important;

    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;

    margin:
      0 auto 18px;

    transform: none !important;
  }


  .identity-content {
    flex-direction: column;
  }


  .avatar-box {
    width: 100%;
    height: 190px;
  }


  .likes-content {
    grid-template-columns: 1fr 1fr;
  }


  .carry-content {
    grid-template-columns:
      repeat(3, 1fr);
  }


  .desktop-note {
    position: relative;

    top: auto;
    right: auto;

    width: 90%;

    margin:
      20px auto;

    transform: rotate(-1deg);
  }


  .desktop-decoration {
    display: none;
  }


  .taskbar {
    position: fixed;

    z-index: 50;
  }


  .task-button {
    min-width: 0;

    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
  }


  /* MEDIA */

  .media-desktop {
    min-height: 100svh;

    height: auto;

    overflow-y: auto;

    padding:
      120px 20px 100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 35px;
  }


  .media-title,
  .media-subtitle {
    position: relative;

    top: auto;
    left: auto;

    transform: none;
  }


  .media-title {
    order: 0;

    margin-bottom: -25px;
  }


  .media-subtitle {
    order: 1;

    text-align: center;
  }


  .media-object {
    position: relative;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    transform: none !important;

    margin: 0;
  }


  .media-object:hover {
    transform: scale(1.05) !important;
  }


  .media-back {
    position: relative;

    left: auto;
    bottom: auto;

    order: 10;

    margin-top: 15px;
  }


  .media-footer {
    display: none;
  }

}