:root {
  --button-top: #00A1FF;    /* default lighter top */
  --button-bottom: #007ACC; /* default darker bottom */
}

/* Load Dimbo */
@font-face {
  font-family: 'Dimbo';
  src: url('Font/dimbo-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Dimbo';
  src: url('Font/dimbo-regular.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Global body styles */
body {
  background-image: url("images/WebGroundCM.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Dimbo', sans-serif;
  color: #fff;
}

/* Flex container for two columns */
.layout {
  display: flex;
  height: 100%;
}

.sidebar .button {
  font-family: 'Dimbo', sans-serif;
  font-weight: 700;
}

/* Sidebar (left column) */
.sidebar {
  width: 220px;
  background: rgba(0, 0, 0, 0.5); /* slightly darkened overlay */
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: brightness(0.8); /* optional subtle dim effect */
}

/* Main content (right column) */
.main {
  flex-grow: 1;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Inner text area */
.text-area {
  background: rgba(56, 172, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Base button style */
.button {
  position: relative;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Dimbo', sans-serif;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.1s ease;

  /* Gradient using variables (defaults if not overridden) */
  background: linear-gradient(
    to bottom,
    var(--button-top, #4facfe) 0%,
    var(--button-bottom, #00f2fe) 100%
  );

  /* Glossy shadow */
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6),
              inset 0 -1px 2px rgba(0,0,0,0.3),
              0 4px 8px rgba(0,0,0,0.4);
}

/* Striped Christmas variant */
.button.striped {
  background: repeating-linear-gradient(
    45deg,
    #28a745 0px,
    #28a745 40px,
    #c0392b 40px,
    #c0392b 80px
  );
  background-size: 225px 225px;
}

/* Gloss overlay */
.button::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0.3) 80%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
}

/* Reflection shine overlay */
.button::after {
  content: "";
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 60%;
  transform: rotate(-20deg);
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0.0) 100%
  );
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.button:hover::after {
  opacity: 1; /* shine brightens on hover */
}

/* Hover + active states */
.button:hover {
  color: #ffcc00; /* gold text */
}
.button:active {
  color: #00ffcc; /* teal text */
  transform: translateY(2px);
}