/* Background slideshow */
body {
    animation: bgChange 40s infinite alternate;
    background-size: cover;
    background-position: center;
    text-align:center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Keyframes must be outside the body block */
@keyframes bgChange {
    0%   { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQwQRk4DefGgVq_JX18ZLdIsfhoqBhyXCW2gICXBVRLjg&s=10'); }
    33%  { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT17dF0A-YvGVuy6zJseRIji_W0cLBJW-w7aw27av0y1w&s=10'); }
    66%  { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTjEoZqFZ28rfSCNhCPWBNPAyTGNRgNkFTSrjWbc6SmRQ&s=10'); }
    100% { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ7ni__di-HVzz47tYMVHUfhSmbzw3UPM31y3F58lP8Fw&s=10'); }
}

/* Login & Register Box (Aero Glass) */
.login-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
    width: 320px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

/* Inputs */
.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 16px;
}

/* Buttons */
.login-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: white;
    color: #7b2ff7;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.login-box button:hover {
    background: #d1b3ff;
}

/* Login/Register Links */
.login-box a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

/* Logout Button (index.html) */
.logout-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
}

.logout-btn:hover {
    background: #ff1a1a;
}


/* Layout and text */
header, footer, section {
    text-align: center;
    padding: 20px;
}

h1 {
    margin-top: 20px;
}

/* Transparent content boxes */
.content-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    color: #000;
}

/* Images */
img {
    border-radius: 10px;
    margin: 15px 0;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 5px 0;
}

/* Links */
a {
    color: blue;
    font-weight: bold;
}

/* Navigation bar */
.navbar {
    background: rgba(255, 255, 255, 0.25); /* glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* glossy edge */
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4); /* glow */
    padding: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    border-radius: 8px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.navbar a:hover {
    text-decoration: underline;
    transform: scale(1.1);
}

/* Glossy shine strip */
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

/* Banner (Aero Glass) */
.banner {
  position: relative;
  background: linear-gradient(
    to bottom right,
    rgba(111,179,224,0.4),
    rgba(58,123,213,0.4)
  );
  padding: 40px;
  text-align: center;
  color: white;
  font-family: Segoe UI, Arial, sans-serif;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.35);
}

/* Vista Titlebar Buttons */
.titlebar {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 6px;

  /* remove bar styling */
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
}

.titlebar button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(to bottom, #fefefe, #b0c4de);
  box-shadow: inset 0 0 2px rgba(255,255,255,0.6), 0 0 2px rgba(0,0,0,0.3);
  cursor: pointer;
}

.titlebar .close {
  background: linear-gradient(to bottom, #ff5c5c, #c0392b);
}

.titlebar .maximize {
  background: linear-gradient(to bottom, #5cb85c, #2e8b57);
}

.titlebar .minimize {
  background: linear-gradient(to bottom, #f0ad4e, #b8860b);
}

.titlebar button:hover {
  filter: brightness(1.2);
}

/* Reflection effect */
.banner h1 {
  font-size: 48px;
  position: relative;
}

.banner h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  transform: scaleY(-1);
  opacity: 0.4;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* Smooth transitions */
* {
    transition: 0.3s ease;
}
