/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding-bottom: 50px;
}

/* Header Styling */
header {
    background-color: #333;
    padding: 15px;
    text-align: center;
}

header ul {
    list-style: none;
}

header ul li {
    display: inline;
    margin-right: 20px;
}

header ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

header ul li a:hover {
    color: #ff9800;
}

/* Main Content */
main {
    padding: 20px;
}

.intro, .contact-info, .project {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}

.intro h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.intro p {
    font-size: 24px;
}

.contact-info {
    text-align: center;
    margin: 20px;
}

.contact-btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contact-btn:hover {
    background-color: #0056b3;
}


.project img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}
/* Style for the contact button */
.contact-info {
    text-align: center;
    margin: 20px;
}

.contact-btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contact-btn:hover {
    background-color: #0056b3;
}
/* Style for the image examples section */
.image-examples {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.image-examples h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

/* Centering images using Flexbox */
.image-container {
    display: flex;
    justify-content: center; /* Centers images horizontally */
    gap: 20px; /* Adds space between images */
    flex-wrap: wrap; /* Allows wrapping to a new line on smaller screens */
}

/* Image styles with fixed size */
.image-container img {
    width: 200px; /* Set the desired width */
    height: 150px; /* Set the desired height */
    object-fit: cover; /* Ensures the image covers the dimensions without distortion */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.image-container img:hover {
    transform: scale(1.05);
}

/* Style for the contact information section */
.contact-info {
    text-align: center; /* Center text inside the section */
    padding: 20px;
    background-color: #f0f0f0; /* Optional: add a background color */
    margin-top: 20px;
    border-radius: 10px; /* Optional: rounded corners */
    max-width: 600px; /* Optional: set a max-width */
    margin-left: auto; /* Center the section horizontally */
    margin-right: auto; /* Center the section horizontally */
}

.contact-info h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.contact-info p,
.contact-info a,
.contact-btn {
    font-size: 18px;
    color: #555;
}

/* Style for the button */
.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #0056b3;
}
/* Style for the external link button */
.external-link-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.external-link-btn:hover {
    background-color: #218838;
}
/* Style for the design information page */
.design-info {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #f4f4f4;
    border-radius: 8px;
}

.design-info h1,
.design-info h2 {
    color: #333;
}

.design-principles,
.typography,
.color-palette,
.color-wheel {
    margin-bottom: 30px;
}

/* Color palette styling */
.color-palette {
    margin: 20px 0;
}

.colors {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.color {
    width: 200px; /* Adjust the width as needed */
    height: 100px; /* Adjust the height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* Text color for contrast */
    font-weight: bold;
    margin: 10px;
    border-radius: 5px;
    text-align: center;
}


.back-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #0056b3;
}

/* Style for the color wheel image */
.color-wheel img {
      width: 200px; /* Set the desired width */
    height: 150px; /* Set the desired height */
    object-fit: cover; /* Ensures the image covers the dimensions without distortion */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

}

<!-- Button -->
<button class="contact-btn" onclick="openModal()">Contact Me</button>

<!-- Modal HTML -->
<div id="contactModal" class="modal">
  <div class="modal-content">
    <span class="close" onclick="closeModal()">&times;</span>
    <form action="submit_contact.php" method="POST">
      <label for="name">Name:</label>
      <input type="text" id="name" name="name" required><br>
      <label for="email">Email:</label>
      <input type="email" id="email" name="email" required><br>
      <label for="message">Message:</label>
      <textarea id="message" name="message" required></textarea><br>
      <button type="submit">Send</button>
    </form>
  </div>
</div>

/* Basic styling for the navigation buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between; /* Align Previous to the left and Next to the right */
    padding: 20px;
    background-color: #f5f5f5; /* Light grey background for the button container */
}

.nav-buttons a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #333; /* Dark grey text color */
    background-color: #ccc; /* Medium grey button color */
    border: 2px solid #888; /* Slightly darker border */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s, color 0.3s, transform 0.3s; /* Smooth transition for hover effect */
}

/* Hover effect for buttons */
.nav-buttons a:hover {
    background-color: #888; /* Darker grey on hover */
    color: #fff; /* White text on hover */
    transform: scale(1.05); /* Slightly enlarge button on hover */
}

/* Styling for the "Previous" and "Next" buttons when disabled */
.nav-buttons a:disabled {
    background-color: #e0e0e0; /* Lighter grey for disabled state */
    color: #999; /* Grey text for disabled state */
    pointer-events: none; /* Prevent clicking */
    border-color: #ccc; /* Lighter border */
}
/* Style for the project section */
.project {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5; /* Light grey background for the project section */
}

/* Style for the image */
.project img {
    width: 100%;
    max-width: 600px;
    border: 5px solid #ccc; /* Grey border */
    border-radius: 10px; /* Rounded corners */
    filter: grayscale(100%); /* Convert the image to grayscale */
    transition: filter 0.5s ease, transform 0.5s ease; /* Smooth transition for hover effects */
}

/* Hover effect on the image */
.project img:hover {
    filter: grayscale(0%); /* Remove grayscale on hover */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Grey Theme */
body {
    background-color: #f0f0f0;
    color: #333;
    font-family: Arial, sans-serif;
}

header, footer {
    background-color: #333;
    color: #f0f0f0;
}

a {
    color: #555;
}

a:hover {
    color: #000;
}

button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #777;
}

/* Reviews Section */
.reviews-section {
    text-align: center;
    margin: 40px 0;
}

.review-btn {
    background-color: #777;
    padding: 10px 20px;
    font-size: 16px;
}

.review-btn:hover {
    background-color: #999;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin: 10px 0 5px;
}

.modal-content input,
.modal-content textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-btn {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 4px;
}

.submit-btn:hover {
    background-color: #777;
}
/* Admin Login Styles */
.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
}

.login-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #777;
}

.error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

/* Admin Reviews Styles */
.admin-container {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.admin-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.logout-btn {
    display: block;
    width: 100px;
    margin: 0 auto 20px auto;
    padding: 10px;
    text-align: center;
    background-color: #555;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.logout-btn:hover {
    background-color: #777;
}

.reviews-table {
    width: 100%;
    border-collapse: collapse;
}

.reviews-table th, .reviews-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.reviews-table th {
    background-color: #ddd;
}

.reviews-table tr:nth-child(even) {
    background-color: #e9e9e9;
}
