body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #e5e5e5ed;
}

/* Fancy Blockquote Styles */
blockquote {
    position: relative;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-left: 10px solid #333;
    font-style: italic;
    font-size: 18px;
    color: #555;
}

blockquote::before {
    content: "\201C"; /* Unicode for left double quote */
    font-size: 50px;
    position: absolute;
    left: 10px;
    top: -10px;
    color: #ccc;
}

blockquote p {
    margin: 0;
}

blockquote footer {
    display: block;
    text-align: right;
    font-size: 16px;
    color: #777;
    margin-top: 10px;
}

blockquote footer::before {
    content: "\2014 \00A0"; /* Unicode for em dash and non-breaking space */
}


.navbar {
    width: 80%;
    margin: auto;
    overflow: hidden;
    text-align: left;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    text-align: left;
}

.pdf {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.pdf, html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    background: #333;
    color: #fff;
    min-height: 70px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    float: left;     
}

header li a, .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
    background-color: black;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(51,51,51,0.5);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #a0a0a0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.showcase {
    min-height: 400px;
    background: url('your-image.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
}

.showcase h1 {
    margin-top: 100px;
    font-size: 55px;
    margin-bottom: 10px;
}

.showcase p {
    font-size: 20px;
}

.content {
    padding: 20px;
    background: #fff;
    margin-top: 20px;
}

.content h2 {
    text-align: center;
    color: #333;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f4f4f4; /* Fallback background color */
    cursor: pointer
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Set a fixed height for images */
    object-fit: cover; /* Ensure the image covers the container while maintaining aspect ratio */
    display: block;
    transition: opacity 0.3s;
}

.about-section {
    padding: 20px;
    background-color: #fff;
}

.about-section .gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: center;
}

.about-section .gallery-item {
    position: relative;
    overflow: hidden;
    background: #f4f4f4; /* Fallback background color */
}

.about-section .gallery-item img {
    width: 100%;
    max-height: 400px; /* Bigger max height for images on the About page */
    object-fit: contain; /* Ensure the image covers the container while maintaining aspect ratio */
    display: block;
    transition: opacity 0.3s, transform 0.3s; /* Added transition for transform */
}

.about-section .gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.3; /* Makes the image opaque */
    cursor: pointer;
}

.about-section .gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.about-section .gallery-item:hover .caption {
    opacity: 1;
}


.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.3; /* Makes the image opaque */
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .caption {
    opacity: 1;
}

.content p {
    margin: 20px 0;
}

/* Contact Section Styles */
.contact-section {
    background: #f7f7f7;
    padding: 50px 0;
}

.contact-section .container {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
}

.info-item {
    flex: 1 1 45%;
    background: #fff;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s;
}

.info-item:hover {
    transform: scale(1.05);
}

.info-label {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.info-value {
    font-size: 1em;
    color: #555;
}

.info-value a {
    color: #007BFF;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

table th {
    background-color: #333;
    color: #fff;
    text-align: center;
}

table tr {
    text-align: center;
}

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

table tr:hover {
    background-color: #f1f1f1;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%;
    }
}

/* Rounded Button Styles */
.rounded-button {
    display: block; /* Change to block for centering */
    padding: 10px 20px;
    font-size: 26px;
    background-color: #333; /* Button background color */
    color: #ffffff; /* Button text color */
    border: none;
    border-radius: 25px; /* Adjust this value for more or less rounded corners */
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto; /* Center the button horizontally */
    text-decoration: none; /* Remove underline */
}

.rounded-button:hover {
    background-color: #000000; /* Darker shade for hover effect */
}

a.rounded-button {
    text-align: center;
    text-decoration: none; /* Remove underline */
}


/* Code Block Styles */
pre {
    background-color: #f8f8f8;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}

code.arduino {
    font-family: Consolas, Monaco, 'Andale Mono', monospace; /* Use a monospace font for code */
    font-size: 14px;
    color: #333; /* Text color */
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh; /* Limit the maximum height of the image to 80% of the viewport height */
    object-fit: contain; /* Ensure the image fits within the container without being cropped */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.modal-content, #caption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
