/* Reset some default browser styles */
body, h1, h2, h3, p, form {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Times New Roman', serif;
    background-image: url('/archery.png'); /* https://wall.alphacoders.com/big.php?i=1346287 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


h1, h2, h3 {
    color: darkgreen;
    text-align: center;
}

form {
    max-width: 400px;
    margin: 20px auto;
    background-color: #f8f1e1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

    form label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #5c4831;
    }

    form input {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        box-sizing: border-box;
        border: 1px solid #b87c59;
        border-radius: 4px;
        background-color: #f8f1e1;
    }

    form button {
        background-color: #b87c59;
        color: #f8f1e1;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

.container {
    margin-top: 20px;
}


nav {
    background-color: #5c4831;
    padding: 10px;
    text-align: center;

}

    nav a {
        color: #f8f1e1;
        text-decoration: none;
        padding: 10px;
        margin: 0 10px;
        font-weight: bold;
        transition: color 0.3s ease;
    }

        nav a:hover {
            color: #b87c59;
        }

    nav .nav-link.text-dark {
        color: #f8f1e1 !important;
    }

.btn-primary {
    background-color: #b87c59;
    color: #f8f1e1;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 150px;
    text-align: center;
}

    .btn-primary:hover {
        background-color: #8b5b3f;
    }

form.submitting {
    animation: formSubmission 1s ease;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    border-spacing: 0;
}

thead {
    background-color: #b87c59;
    color: #f8f1e1;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #b87c59;
}

tbody tr:nth-child(even) {
    background-color: #f8f1e1;
}

td:first-child {
    font-weight: bold;
}

td, th {
    text-align: center;
}

/* responsive */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }

    th, td {
        white-space: nowrap;
    }
}


@keyframes formSubmission {
    from {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    to {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    form {
        max-width: 100%;
    }
}
