/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212; /* Dark background */
    color: #ffffff; /* Light text */
    line-height: 1.6;
}

header {
    background-color: #1f1f1f; /* Dark header background */
    color: #4CAF50; /* Green highlight */
    padding: 1rem 0;
    text-align: center;
    position: relative; /* Enable positioning for the button */
}

/* Change color of the header text to green */
header h1 {
    font-family: 'Poppins', sans-serif; /* Modern font */
    font-weight: 600;
    font-size: 3em;
    color: #4CAF50; /* Green color for the title */
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3), -3px -3px 5px rgba(0, 0, 0, 0.3);
    transform: perspective(300px) rotateX(10deg) rotateY(5deg);
    transition: all 0.3s ease-in-out;
}

header h1:hover {
    text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6), -5px -5px 15px rgba(0, 0, 0, 0.6);
    transform: perspective(500px) rotateX(15deg) rotateY(10deg);
}

/* Style for the theme toggle button */
#theme-toggle {
    position: absolute; /* Position button at top right */
    top: 10px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Blend with the background */
    color: white; /* Light text */
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Darken on hover */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Make links wrap when screen size is small */
    background: #1f1f1f; /* Dark nav background */
    margin: 0;
}

nav ul li {
    margin: 10px;
}

nav ul li a {
    color: #4CAF50; /* Green link color */
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s ease;
}

nav ul li a:hover {
    background: #333; /* Slightly lighter hover effect */
    border-radius: 5px;
    transform: scale(1.1); /* Slightly scale the link on hover */
}

nav ul li a::after {
    content: attr(data-preview);
    display: none;
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav ul li a:hover::after {
    display: block;
    opacity: 1;
}

main {
    padding: 20px;
    text-align: center;
}

section {
    margin-top: 20px;
}

iframe {
    border: 1px solid #4CAF50; /* Add a green border around the iframe */
    border-radius: 5px;
}

footer {
    background: #1f1f1f; /* Dark footer background */
    color: #ffffff; /* Light footer text */
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

a {
    color: #4CAF50; /* Green links for consistency */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
