body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
}

.protected {
    display: none;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

section,
nav {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a {
    display: inline-block;
    margin: 1rem 0;
}

h1,
h2 {
    margin-top: 0;

}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Adds spacing between buttons */
    max-width: 300px;
    /* Optional: limits width */
    margin: 0 auto;
    /* Optional: centers the group */
}


button,
a.button {
    background-color: #3498db;
    margin: 0.5rem 0;
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
a.button:hover {
    background-color: #2980b9;
}

label {
    margin-right: 0.5rem;
}

pre {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

#userInfo {
    margin-top: 2rem;
    background-color: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ccc;
}

form {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input {
    display: block;
    margin: 0.5rem 0;
    padding: 0.6rem;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


/* Base hidden state */
.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: absolute; /* prevents layout shift */
}

/* Visible state */
.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: relative;
}


