/* =====================================================
   GLOBAL STYLES
===================================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* =====================================================
   HEADER
   Styles the top section of the website
===================================================== */

#header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

#header h1 {
    color: white;
}

/* =====================================================
   NAVIGATION BAR
   Controls the menu links between pages
===================================================== */

#navigation {
    background-color: #555;
    text-align: center;
    padding: 10px;
}

#navigation a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

#navigation a:hover {
    color: #ffd700;
}

/* =====================================================
   MAIN CONTENT AREA
   Centers the content and improves readability
===================================================== */

#content {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 20px;

    /* subtle shadow for depth */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* =====================================================
   HEADINGS
   Improves readability of titles
===================================================== */

h2, h3 {
    color: #333;
}

/* =====================================================
   IMAGES
   General image styling
===================================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* Specific class for travel destination images */

.travel-image {
max-width: 350px;
height: auto;
margin: 20px auto;
}
/* =====================================================
   TABLE STYLING
   Used for destination information tables
===================================================== */

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 15px;
}

th {
    background-color: #eee;
    font-weight: bold;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

/* =====================================================
   LISTS
===================================================== */

ul {
    margin-left: 20px;
}

/* =====================================================
   CONTACT FORM
   Improves usability of form inputs
===================================================== */

form {
    max-width: 500px;
    margin: auto;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

textarea {
    height: 120px;
}

/* submit button styling */

input[type="submit"] {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;

    /* CSS3 enhancement */
    border-radius: 4px;
}

input[type="submit"]:hover {
    background-color: #555;
}

/* =====================================================
   FOOTER
   Displays author and modification date
===================================================== */

#footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    font-size: 14px;
}

/* ===== UNIT 6 ADDITIONS ===== */

/* Highlight selected destination */
.selected {
    background-color: yellow;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
}

/* Make cities clickable */
.city {
    cursor: pointer;
}

/* Style buttons */
button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #555;
}

/* ===== DARK MODE ===== */

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Content box */
.dark-mode #content {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* Header + Footer */
.dark-mode #header,
.dark-mode #footer {
    background-color: #000;
    color: #ffffff;
}

/* Navigation */
.dark-mode #navigation {
    background-color: #222;
}

/* Links */
.dark-mode a {
    color: #ffd700;
}

/* Headings */
.dark-mode h1,
.dark-mode h2,
.dark-mode h3 {
    color: #ffffff;
}

/* Table */
.dark-mode table {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode th {
    background-color: #333;
}

/* Inputs */
.dark-mode input,
.dark-mode textarea {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

/* Buttons */
.dark-mode button {
    background-color: #444;
    color: #fff;
}

.dark-mode button:hover {
    background-color: #666;
}

/* ===== UNIT 7 CARD ===== */

.card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.dark-mode .card {
    background: #2a2a2a;
}

button {
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}

.card img {
    margin-bottom: 10px;
}