/* General body styling */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #080808;
    font-family: "Montserrat", sans-serif;
    color: white;
}

/* Links */
a {
    color: #ff9800;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #03a9f4;
}

/* Header for the golden book */
h1, h2, h3 {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

#signbutton {
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 120px;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 50px auto;
    color: white;
}

form label {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800;
}

form textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2b2b2b;
    color: white;
    resize: none;
}

form textarea:focus {
    outline: none;
    border-color: #ff9800;
}

form input[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #ff9800;
}

/* Error message styling */
.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    background-color: rgba(255, 0, 0, 0.10);
    padding: 10px;
    border-left: red solid 5px;
}

/* Signature display styling */
.signature {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
}

.signature p {
    margin: 5px 0;
    font-size: 16px;
}

.name {
    color: #ff9800;
    font-weight: bold;
}

.text {
    color: white;
    background-color: #2b2b2b;
    border-radius: 15px;
    padding: 10px;
}

/* Button styling */
button, .button-link {
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, .button-link:hover {
    background-color: #ff9800;
}

/* Responsive design */
@media (max-width: 768px) {
    form {
        width: 90%;
    }

    .signature {
        width: 100%;
    }
}

header {
    width: 100%;
    background-color: #1a1a1a;
    padding: 20px 0;    
    position: fixed;
    top: 0;
    z-index: 1000;
    margin-bottom: 50px;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
    background-color: #2b2b2b;
    border-radius: 5px;
    padding: 10px 10px;
}

header nav a:hover {
    color: #ff9800;
}

.separator {
    border: #e2e2e2 solid 1px;
}

.popup-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.space {
    height: 120px;
}