h1 {
    background-image: url('images/OIP.jfif');
    background-position: left, right;
    background-repeat: repeat-x, repeat-y;
}

h1 {
    font-size: 4em;
    color: #333;
    text-align: center;
    font-family: fantasy;
}

/*border 3-6-25*/
h2 {
    font-size: 2em;
    border: 2px solid #CCCCFF; /* Border color and thickness */
    padding: 10px; /* Space inside the border */
    margin: 20px 0; /* Space outside the border */
    background-color: #ccccff; /* Background color inside the border */
    text-align: center; /* Center the text */
}

.special {
    background-color: #dfd5d5;
}

body {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #dfd5d5; /* Fallback color */
}

/*Required;=: dynamic styling of navagation bar 3-6-25*/
nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    padding: 5px 10px; 
    transition: background-color 0.3s, border 0.3s;
}

nav ul li a:hover {
    background-color: #cccccc; 
    border: 2px solid #999999; 
    border-radius: 5px; 
}

#wrapper {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #ccccff;
}

main {
    background-position: center;
    text-align: center;
    background-color: #dfd5d5;
}

.table-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px; /* Space between the tables */
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccccff;
}

table th, table td {
    border: 1px solid #ccccff;
    padding: 8px;
    text-align: left;
    background-color: #f0f0f0; /* Add background color */
}

#p2 {
    background-position: center;
    text-align: center;
    background-color: #ffffff;
}

footer {
    text-align: center;
    font-style: italic;
    background-color: #CCCCFF;
    clear: both;
}

input {
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #ccccff;
}

label {
    font-size: 1.2em;
    font-weight: bold;
}

textarea {
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #ccccff;
}

/*media query 3 3-6-25*/
@media only screen and (min-width: 601px) {
    div.example {
        font-size: 80px;
    }
}

/*media query 1 3-6-25*/
@media only screen and (max-width: 600px) {
    div.example {
        font-size: 30px;
    }
}

/*media query 2 3-6-25*/
@media screen and (max-width: 768px) {
    h1 {
        font-size: 3.5em;
    }

    h2 {
        font-size: 1.75em;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .table-container {
        grid-template-columns: 1fr; /* Single column */
    }

    #wrapper {
        width: 90%;
        padding: 15px;
    }
}
