* {
  box-sizing: border-box;
}


body {
    background-image: url("Gifs\\BGs\\back-484.gif");
}

.top_right {
    width: 100%;
    transform: scaleX(-1);
    margin-left: 5%;
}

.top_left {
    width: 100%;
    margin-right: 5%;
}

.top_center{
    margin-top:17%;
    width: 100%
}


.tower_base{
    color: rgb(242, 204, 49);
}

.hidden-text{
  color: #13001f;
}


/*arcane frame*/

.arcane_frame {
    width: 260px;
    height: 260px;
    padding: 12px;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            #d8c4ff,
            #7f5fff,
            #d8c4ff
        );
}

.arcane_frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}



.grid_container_mid {
    display: grid;
    grid-template-columns: 25% 50% 25%;
}

.grid_container_top {
    display: grid;
    grid-template-columns: 25% 50% 25%;
}

canvas {
    width: 100%;
    image-rendering: pixelated;
  }




  
/* General page styles */
body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  background-image: url("Gifs/BGs/back-484.gif");
  background-position: center;
  color: black;
}

/* Page layout: main content + sidebar */
.page-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Tower details panel */
.tower-details {
  background-image: url("Gifs/BGs/scroll2.png");
  background-size: cover;
  z-index: 1;
}

.tower-details ul {
  margin-left: 20px;
  list-style-type: disc;
}

/* THE GLOW */
.scroll-pulse::before {
  content: "";
  position: absolute;
  inset: -25px; /* glow spreads outward */
  background: radial-gradient(
    ellipse at center,
    rgb(175, 82, 212),
    transparent 70%
  );
  filter: blur(30px);
  z-index: -1;
}

@keyframes arcanePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.scroll-pulse::before {
  animation: arcanePulse 4s ease-in-out infinite;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}

.nav-item img {
  height: 1.4em;
  flex-shrink: 0;
}


.tower-intro{
    padding: 27% 15% 0
}

.tower-intro img{
    text-align: center;
}

/* Wizard dialogue */
.wizard-dialogue {
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}

.portrait {
  width: 40%;
}

.message-box {
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 24px);
    padding: 20px;
    background-image: url("Gifs/BGs/scroll.png");
    background-size: 100% 100%;
}

.tower-logo {
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  gap: 20px;
}


/* Right sidebar */
.tower-menu {
  background-image: url("Gifs/BGs/stone_tablet.png");
  background-size: contain;
  background-repeat: no-repeat;
  padding: 18%;
  font-size: clamp(24px, 2vw, 32px);
}

.tower-menu nav ul {
  list-style: none;
  padding: 0;
}

.tower-menu nav li {
  margin-bottom: 8px;
  text-align: left;
}

.tower-menu nav a {
  text-decoration: none;
  color: rgb(33, 32, 32);
  font-weight: bold;
  display: block;
  padding: 12px 0;
}

.tower-menu nav a:hover {
  text-shadow: 0 0 6px rgba(180,140,255,0.8);
}

/* Marquee-style notice */
.marquee {
  width: 100%;
  text-align: center;
  font-size: 16px;
  color: rgb(242,204,49);
  margin-top: 20px;
  animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
