/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Colors */
:root {
  --dark-blue: #1e65fb;
  --darker-blue: #0d3a99;
  --light-blue: #1ca4fb;
  --turquoise: #34ced3;
  --green: #28a745;
  --background-dark: #121212;
  --text-light: #ffffff;
  --input-background: #333333;
  --input-border: #444444;
  --footer-light: #888888;
  --link-hover: #8888ff;
}

/* Body and Layout */
body {
  background-color: var(--background-dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

header {
  position: fixed;
  top:0; left:0; right:0;
  height:10vh;
  padding: 0;
  background-color: var(--darker-blue);
  text-align: center;
  z-index:1001;
}

header h1 {
  color: var(--light-blue);
  font-size: 2.5rem;
  font-weight: 700;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height:100%;
  padding: 0 10px;
}

.header-left {
  flex: 1;
  text-align: left;
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-right {
  flex: 1;
  text-align: right;
}

.logo {
  height: 50px;
}

/* Styled Link for Logout */
.logout-link {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.logout-link:hover {
  color: var(--turquoise);
}

/* Drawer Styles */
.drawer-toggle {
  background: none;
  color: var(--text-light);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: var(--dark-blue);
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer .close-drawer {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  margin: 1rem;
}

.nav-drawer .nav-header {
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
}

.nav-drawer ul {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-drawer ul li {
  margin: 1rem 0;
}

.nav-drawer ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav-drawer ul li a:hover {
  color: var(--turquoise);
}

/* Surprise Button */
.surprise-button-container {
  text-align: center;
  margin-top: 30px;
}

.surprise-button {
  display: inline-block;
  padding: 15px 25px;
  font-size: 18px;
  color: #fff;
  background-color: var(--green);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

.surprise-button:hover {
  background-color: var(--turquoise); /* Turquoise color on hover */
  transform: scale(1.05); /* Slight growth on hover */
}

body.no-scroll {
  overflow: hidden;
}

/* Main Content Area */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.messages {
  position:fixed; top:10vh; left:50%;
  transform:translateX(-50%);
  z-index:1100;
}

.message {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Footer */
footer {
  position:fixed; left:0; right:0; bottom:0;
  height:5vh;
  background-color:var(--darker-blue);
  text-align:center;
  color:var(--footer-light);
  font-size:1rem;
  z-index:1001;
  display:flex; align-items:center; justify-content:center;
}

/* Responsive Design */

/* Mobile View (max-width: 480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 2.5rem;
  }

  footer {
    font-size: 1rem;
  }

  .logout-link {
    font-size: 1.6rem; /* Adjusted for mobile */
  }

  .header-container {
    padding: 10px;
  }

  .logo {
    height: 50px;
  }

  .header-right .drawer-toggle {
    font-size: 1.5rem;
  }
}
