html {
  background-image: url("images/backgroundnew.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
  background-color: #000;
}

body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: monospace;
  color: white;
  background: transparent;
  min-height: 100vh; 
  overflow-x: hidden; 
}

html, body {
  cursor: url("images/cursor.png") 16 16, auto;
}

a,
a *,
button,
button * {
  cursor: url("images/cursorlink.png") 16 16, pointer;
}


.site-pfp {
  position: fixed;
  top: 16px;
  left: 16px;
  height: 120px;
  width: auto;
  z-index: 9999;
}

.nav-link {
  color: white; 
  text-decoration: none;
  font-size: 1.2rem;
  padding: 5px 10px;
  border: 1px solid transparent;
  position: relative; 
  z-index: 10;
  font-weight: bold;
}

.nav-link:hover, .nav-link.active {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  text-shadow: none; 
}


.std-panel {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  grid-template-rows: 64px auto 64px;
  margin: 20px auto;
  width: 90%; 
  max-width: 800px; 
  box-sizing: border-box;
  isolation: isolate;
}

.std-panel.title-only {
  width: fit-content;
  min-width: 300px;
}

.std-panel > div {
  width: 100%;
  height: 100%;
  position: relative;
}

.std-tl { background: url("images/panel/tl.png") no-repeat; background-size: 100% 100%; }
.std-tr { background: url("images/panel/tr.png") no-repeat; background-size: 100% 100%; }
.std-bl { background: url("images/panel/bl.png") no-repeat; background-size: 100% 100%; }
.std-br { background: url("images/panel/br.png") no-repeat; background-size: 100% 100%; }

.std-top    { background: url("images/panel/top.png");    background-size: 100% 100%; }
.std-bottom { background: url("images/panel/bottom.png"); background-size: 100% 100%; }
.std-left   { background: url("images/panel/left.png");   background-size: 100% 100%; }
.std-right  { background: url("images/panel/right.png");  background-size: 100% 100%; }

.std-center {
  background: url("images/panel/center.png"); 
  background-repeat: repeat; 
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.nav-panel .std-center {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
}

.page-title {
  margin: 0;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.std-center h3 {
  margin-top: 0;
  font-size: 1.5rem;
  text-decoration: underline;
}

.std-center p {
  line-height: 1.5;
}

.socials {
  margin-top: 16px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
  text-decoration: none;
  color: white;
}

.social img {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}

.label {
  background: black;
  padding: 4px 8px;
  display: inline-block;
  white-space: nowrap;
}

.std-center .social {
  color: white;
  font-weight: bold;
}

.std-center .social .label {
  background: transparent;
  color: white;
  padding: 0;
}

.std-center .social:hover {
  text-decoration: underline;
}

.guestbook-wrapper {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  z-index: 500;
  width: max-content; 
  transition: all 0.3s ease;
}

.guestbook-panel {
  position: relative;
  display: grid;
  grid-template-columns: 94px 300px 94px;
  grid-template-rows: 94px auto 94px;
  isolation: isolate;
}

.guestbook-panel > div {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1; 
}

.gb-tl { background: url("images/panel/guestbooktile/tl1.png") no-repeat; background-size: 94px 94px; }
.gb-tr { background: url("images/panel/guestbooktile/tr1.png") no-repeat; background-size: 94px 94px; }
.gb-bl { background: url("images/panel/guestbooktile/bl1.png") no-repeat; background-size: 94px 94px; }
.gb-br { background: url("images/panel/guestbooktile/br1.png") no-repeat; background-size: 94px 94px; }

.gb-top    { background: url("images/panel/guestbooktile/top1.png") repeat-x; background-size: auto 94px; }
.gb-bottom { background: url("images/panel/guestbooktile/bottom1.png") repeat-x; background-size: auto 94px; }
.gb-left   { background: url("images/panel/guestbooktile/left1.png") repeat-y; background-size: 94px auto; }
.gb-right  { background: url("images/panel/guestbooktile/right1.png") repeat-y; background-size: 94px auto; }

.gb-center {
  background: url("images/panel/center.png") repeat;
  padding: 12px;
  min-height: 200px;
  color: white;
}

.guestbook-frame {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.gb-top-center,
.gb-bottom-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 9999;
  display: block;
  width: auto;
  height: auto;
}

.gb-top-center { top: -0px; margin-left: 30px; }
.gb-bottom-center { bottom: -0px; margin-left: -30px; }

@media (max-width: 1350px) {
  .guestbook-wrapper {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 60px auto; 
    display: flex;
    justify-content: center;
    order: 10; 
  }
}
@media (max-width: 550px) {
  .guestbook-wrapper {
    transform: scale(0.65);
    margin: -50px auto; 
    transform-origin: center top;
  }
  
  .site-pfp {
    position: absolute;
    height: 80px;
  }
}