/* Root Variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-color: #e0e0e0;
}

/* Base Styles */
body {
    background-color: var(--bg-color);
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    padding: 20px;
    color: var(--text-color);
}

/* Typography */
h1 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

p {
    color: black;
    font-family: Arial;
    font-size: 14px;
    text-align: left;
}

/* Layout Components */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Navigation */
.topnav {
    background-color: #f1f1f1;
    float: center;
    display: block;
    color: #36026e;
	font-size: 0.90em;
    text-align: center;
    border: 1px solid red;
    padding: 1px;
    text-decoration: none;
}

.midnav {
    background-color: #f1f1f1;
    float: center;
    display: block;
    color: #abc;
    text-align: center;
    border: 1px solid blue;
    padding: 1px;
    text-decoration: none;
}

/* Content Sections */
.content {
    background-color: #aaa;
    padding: 10px 20px;
    text-align: center;
}

/* Cards and Items */
.item-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.item-card:hover {
    transform: translateX(5px);
}

.item-card h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.4em;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Tips Section */
.tip {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 3px solid var(--accent-color);
    font-style: italic;
    font-size: 0.9em;
    color: #666;
}

/* Footer */
.footer {
    background-color: #f1f1f1;
    padding: 10px;
    float: center;
    text-align: center;
    font-family: Arial;
    font-size: 10px;
    border: 1px solid red;
    margin-top: 50px;
    color: #666;
    border-top: 1px solid var(--border-color);
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Image Gallery */
.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.column {
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
}

.column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 50%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

/* Navigation Controls */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Responsive Design */
@media screen and (max-width: 800px) {
    .column {
        flex: 50%;
        max-width: 50%;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .column {
        flex: 100%;
        max-width: 100%;
    }
}
/* new dropdown menu code.  */










.nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .main-nav {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            display: block;
        }

        .nav-link:hover {
            background-color: #555;
            border-radius: 4px;
        }

        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #666;
            min-width: 200px;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            z-index: 1000;
        }

        .nav-item:hover .submenu {
            display: block;
        }

        .submenu-item {
            display: block;
            padding: 0.75rem 1rem;
            color: white;
            text-decoration: none;
        }

        .submenu-item:hover {
            background-color: #666;
        }

        /* First submenu item rounded corners */
        .submenu-item:first-child {
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
        }

        /* Last submenu item rounded corners */
        .submenu-item:last-child {
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
        }
		
		.header {
            background-color: #666;
            padding: 1rem;
            position: relative;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .main-nav {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            display: block;
        }

        .nav-link:hover {
            background-color: #555;
            border-radius: 4px;
        }

        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #444;
            min-width: 200px;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            z-index: 1000;
        }

        .nav-item:hover .submenu {
            display: block;
        }

        .submenu-item {
            display: block;
            padding: 0.75rem 1rem;
            color: white;
            text-decoration: none;
        }

        .submenu-item:hover {
            background-color: #555;
        }

        /* First submenu item rounded corners */
        .submenu-item:first-child {
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
        }

        /* Last submenu item rounded corners */
        .submenu-item:last-child {
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
        }
