/* External CSS Stylesheet for Arizona Website */

/* Font family declaration */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Element selector */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
}

/* Navigation styling with hover pseudo-class */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin-right: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

/* :hover pseudo-class for navigation rollover effect */
nav a:hover {
    background-color: #34495e;
    border-radius: 5px;
}

/* Float property to position aside to the right */
aside {
    float: right;
    width: 25%;
    background-color: #ecf0f1;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Class selector used twice */
.city-info {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.city-info h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* ID selector */
#contact-form {
    background-color: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Absolute positioning example */
.absolute-element {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
}

/* Relative positioning example */
.relative-element {
    position: relative;
    left: 20px;
    top: 10px;
    background-color: #f39c12;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #3498db;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Form styling */
form fieldset {
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

form legend {
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
}

form div {
    margin: 15px 0;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

form input[type="submit"] {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
}

form input[type="submit"]:hover {
    background-color: #229954;
}

/* Main content styling */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer styling */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    clear: both;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

/* Ordered list styling */
ol {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

ol li {
    margin: 10px 0;
    padding: 5px;
}

/* References section styling */
#references {
    background-color: #ecf0f1;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

#references h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#references ul {
    list-style-type: none;
    padding: 0;
}

#references li {
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border-radius: 3px;
    font-size: 0.9em;
    line-height: 1.4;
}

#references a {
    color: #3498db;
    text-decoration: none;
}

#references a:hover {
    text-decoration: underline;
}
