﻿/* General Page Reset & Background Gradient */
body {
    font-family: 'Garamond', serif; /* Matching the serif look in the photo */
    margin: 0;
    padding: 0;
    /* This creates the teal/cyan gradient seen in the photo background */
    background: linear-gradient(to right, #6ba9a9, #a8d5d5, #f4f4f4);
    min-height: 100vh;
}

/* The rounded container with the black border from the screenshot */
.page-container {
    max-width: 900px;
    margin: 40px auto;
    border: 3px solid black;
    border-radius: 40px 40px 0 0; /* Rounds the top corners */
    overflow: hidden;
    background-color: #8bbdbd; /* The teal color of the header/footer area */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

header {
    padding: 40px 20px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px black;
}

/* Sticky Navigation */
nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: black;
    padding: 15px;
    text-align: center;
    z-index: 1000;
}

/* Navigation Links with Teal Color */
nav a {
    color: #5bc0de; /* The bright cyan/teal from your screenshot */
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Rollover Styling */
nav a:hover {
    color: white;
    text-decoration: underline;
}

/* The Dark Red Main Content Area */
main {
    background-color: #8b0000; /* Matching the dark red background */
    color: white;
    padding: 40px;
    line-height: 1.6;
}

/* Form Layout Styling */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

label {
    margin-top: 15px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Input Styling to look clean against red */
input, textarea, select {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid white;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* Submit Button with the teal accent */
button {
    margin-top: 25px;
    padding: 15px;
    background-color: #5bc0de;
    color: black;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

button:hover {
    background-color: white;
}

/* Footer Styling */
footer {
    background-color: #8bbdbd;
    color: #333;
    text-align: center;
    padding: 30px;
}

footer a {
    color: #008b8b;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* EXACTLY ONE MEDIA QUERY FOR MOBILE */
@media screen and (max-width: 768px) {
    .page-container {
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    nav a {
        display: inline-block;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    main {
        padding: 20px;
    }
    
    form {
        width: 100%;
    }
}