*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: clip;
  font-family: Verdana, sans-serif;
  background-color: black;
  background-image: url("/img/starry-background-3.gif");
  background-attachment: fixed;
  color: orange;
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

body a {
  color: #df5e1a;
  text-decoration: none;
}

body a:hover {
  color: cyan;
}

body a:active {
  color: teal;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

textarea {
  margin: 10px;
  background-color: black;
  color: orange;
  border-color: #4b0082;
  resize: none;
}

textarea:focus {
  outline: orange;
}


.wrapper {
  display: grid;
  grid-template-areas:
    "counter header time"
    "sidebar main rightbar"
    "sidebar neighbors rightbar"
    "sidebar ads rightbar"
    "sidebar dvd rightbar";
  grid-template-columns: minmax(10vw, 1fr) 4fr minmax(10vw, 1fr);
  gap: 1.5em;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1em;
}

.header {
  grid-area: header;
  position: relative;
  align-content: center;
  z-index: 1;
}

.header img {
  max-width: 100%;
  height: auto;
  margin-bottom: -1em;
  object-fit: cover;
}

#splash {
  position: absolute;
  top: 8em;
  right: -2em;
  z-index: 1;
  font-family: "Minecraft", sans-serif;
  font-size: 1.2em;
  text-align: center;
  color: #ffff00;
  text-shadow: 1px 1px 0px #000;
  animation: splash 0.25s alternate infinite;
}

@keyframes splash {
  0% {
    transform: scale(0.875) rotate(-20deg);
  }
  100% {
    transform: scale(1) rotate(-20deg);
  }
}

.counter {
  grid-area: counter;
}

.time {
  grid-area: time;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-family: "Lucida Console", "Courier New", monospace;
  font-weight: bold;
  color: orange;
  text-align: center;
}

.counter,
.time {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  margin-top: 1em;
  padding: 0.5em;
  border: 4px dashed indigo;
}

.counter .sticker {
  top: 0;
  left: -7em;
}

.sidebar {
  grid-area: sidebar;
}

.rightbar {
  grid-area: rightbar;
  position: relative;
}

.sidebar,
.rightbar {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  height: fit-content;
}

.main {
  grid-area: main;
  height: fit-content;
  font-family: Georgia, serif;
  font-weight: bolder;
}

.main p {
  line-height: 1.5rem;
}

.neighbors {
  grid-area: neighbors;
  max-width: 100%;
  height: fit-content;
  overflow-x: hidden;
  font-family: "Minecraft", sans-serif;
  text-align: center;
}

.ads {
  grid-area: ads;
}

.dvd {
  grid-area: dvd;
  position: relative;
  display: grid;
  width: 15em;
  max-width: 100%;
  margin: 0 auto;
}

#widget-location {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#widget-time {
  font-family: "Digital Clock", sans-serif;
  font-size: 40px;
  font-weight: bold;
}

#widget-date {
  font-size: 12px;
}

.links {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  box-sizing: border-box;
  margin-block: 0.5em;
}

.links span {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 5px 0;
}

.tv-border {
  position: absolute;
}

.dvd-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 30px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  user-select: none;
}

.dvd-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.navbar span {
  padding-left: 5px;
  font-size: 20px;
  font-weight: bold;
}

.list {
  display: flex;
  justify-content: space-evenly;
}

.to-do,
.changelog {
  width: 225px;
  height: 150px;
  padding: 0.5em;
  overflow-y: auto;
  background-color: black;
  border: 1px solid indigo;
}

.to-do ul,
.changelog ul {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding-left: 1em;
  font-weight: normal;
}

.to-do ul li::marker,
.changelog ul li::marker {
  content: "★  ";
  font-size: 0.8rem;
}

.pfp {
  float: left;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  border-style: solid;
  border-image-source: url("/img/picture-border-gold.gif");
  border-image-slice: 103;
  border-image-width: 40px;
  border-image-outset: 30px;
  border-image-repeat: round round;
}

.mybutton {
  height: fit-content;
  text-align: center;
}

.mybutton p {
  font-size: 0.8em;
  font-family: Georgia;
}

.navbar,
.guestbook,
.footer,
.neighbors {
  font-family: "Minecraft", sans-serif;
}

.window-box {
  position: relative;
  min-width: 0;
  margin: 12px;
  aspect-ratio: 4 / 3;
  background-color: #000;
}

.box {
  position: relative;
  padding: 10px;
  background-color: black;
  background-image: url("/img/starry-background.gif");
  background-attachment: fixed;
  color: orange;
  border-style: solid;
  border-color: indigo;
  border-image-source: url("/sidneyscape-border.gif");
  border-image-slice: 110;
  border-image-width: 20px;
  border-image-outset: 10px;
  border-image-repeat: round round;
}

.marquee {
  display: flex;
  max-height: fit-content;
  overflow: hidden;
  gap: var(--gap);
  background-color: black;
  user-select: none;
  --gap: 0.5rem;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100%;
  gap: var(--gap);
  animation: scroll 120s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

.neighbors button {
  padding: 0;
  background: transparent;
  border: none;
}

.neighbors button:hover {
  filter: brightness(125%);
}

.ring {
  width: 100%;
  padding-bottom: 20px;
}

.button {
  padding: 5px;
  background-color: black;
  color: orange;
  font-family: "Retro Computer", sans-serif;
  font-weight: bolder;
  border-color: #4b0082;
  border-width: 5px;
}

.button:active {
  color: #df5e1a;
}

.tooltip {
  position: relative;
  display: inline-block;
  margin: 10px;
  margin-bottom: 15px;
}

.tooltip .tooltiptext {
  position: absolute;
  bottom: -100%;
  left: 50%;
  z-index: 1;
  width: 120px;
  margin-left: -4.5em;
  padding: 5px;
  background-color: black;
  color: #fff;
  font-family: "Pixelon", sans-serif;
  text-align: center;
  opacity: 0;
  border: 3px dashed indigo;
  visibility: hidden;
}

.tooltip .tooltiptext::after {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  opacity: 1;
  visibility: visible;
}

.footer {
  margin-top: 2em;
  margin-bottom: 5px;
  padding-top: 20px;
  color: white;
  text-align: center;
}

.footer p {
  display: block;
  width: 160px;
  margin: 5px auto;
  padding: 5px;
  background-color: black;
}

.sticker {
  position: absolute;
  display: block;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

.skyline {
  position: fixed;
  bottom: 0;
  z-index: -1;
  display: block;
  width: 100vw;
  height: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.skyline img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(10vh);
}

.modal-content {
  max-width: 100%;
  padding: 0 1em;
}

.webring-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em 1em;
}

.webring {
  display: flex;
  flex-direction: column;
  flex-basis: 300px;
  justify-content: center;
  align-items: center;
}

.flex {
  display: flex;
  gap: 1em;
  padding: 0.5em;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 20px;
  background-color: black;
  background-image: url("/img/starry-background.gif");
  background-attachment: fixed;
}

.modal {
  width: max(350px, 70%);
  height: max(500px, 70%);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: black;
  background-image: url("/img/starry-background.gif");
  color: orange;
  border-radius: 10px;
  box-shadow: 3px 3px black;
  border-style: solid;
  border-color: indigo;
  border-image-source: url("/sidneyscape-border.gif");
  border-image-slice: 110;
  border-image-width: 20px;
  border-image-outset: 10px;
  border-image-repeat: round round;
}

.close-modal {
  position: fixed;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.navlink {
  display: flex;
  justify-content: center;
  gap: 0.5em;
}

.ad {
  max-width: 180px;
  height: 180px;
}


@media (max-width: 900px) {
  .wrapper {
    max-width: 100%;
  }

  .header {
    grid-area: 1 / span 3;
    margin: auto -1em;
  }

  .main {
    grid-area: 2 / span 3;
  }

  .sidebar {
    grid-area: 3 / span 3;
  }

  .neighbors {
    grid-area: 4 / span 3;
  }

  .rightbar {
    grid-area: 5 / span 3;
  }

  .ads {
    grid-area: 6 / span 3;
  }

  .time {
    grid-area: 7 / span 3;
  }

  .counter {
    grid-area: 8 / span 3;
  }

  .dvd {
    grid-area: 9 / span 3;
  }

  .tv-border {
    grid-area: 10 / span 3;
  }

  .footer {
    grid-area: 11 / span 3;
  }

  #splash {
    top: 20vw;
    right: 0.5em;
    font-size: 0.7rem;
  }

  .counter,
  .time {
    margin-top: 0;
  }

  .window-box {
    margin: 15px;
  }

  .dvd-logo {
    width: 90px;
    height: 45px;
  }

  .links {
    text-align: center;
  }

  .links span {
    flex: 0 0 50%;
  }

  .mybutton {
    display: none;
  }

  .modal-trigger {
    max-width: 49%;
  }

  .ad {
    width: 4.5em;
    height: 4.5em;
  }

  .draw4me img {
    width: 100px;
  }

  .counter .sticker {
    top: 0.5em;
    left: 0.5em;
    width: 15%;
  }
}