/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #303030;
    color: white;
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

/* Navigation bar styles */
.navbar {
    background-color: #333;
    overflow: hidden;
    position: fixed; /* Make the navbar stick to the top */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top of other content */
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    float: left;
}

.navbar li a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar li a:hover {
    background-color: #ddd;
    color: black;
}

/* Slideshow styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    padding-top: 50px; /* Ensure content is not hidden under fixed navbar */
}

.slide {
    display: none;
}

img {
    vertical-align: middle;
    width: 100%;
    height: auto;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Header styles */
#random-art-header {
    text-align: center;
    font-size: 3em;
    margin: 20px 0;
    background: linear-gradient(90deg, #ff0000, #00ff00, #0000ff, #ff0000);
    -webkit-background-clip: text;
    color: transparent;
    animation: colorChange 3s infinite linear;
}

@keyframes colorChange {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#random-art-header2 {
    text-align: center;
    font-size: 5em;
    margin: 20px 0;
    font-family: 'Garamond', serif;
    font-weight: bold;
    color: #aaa;
    text-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff, 0 0 30px #0000ff;
    animation: glow 7.5s infinite alternate;
}

#random-art-header2 .red-letter {
    color: #8b0000;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff, 0 0 30px #0000ff;
    }
    to {
        text-shadow: 0 0 20px #00ff00, 0 0 30px #ff0000, 0 0 40px #00ff00;
    }
}

/* Content styles */
.content-section {
    padding: 20px;
    background-color: #404040;
    color: white;
    text-align: center;
    margin-top: 70px; /* Add margin to avoid overlap with navbar */
}

.content-section img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-width: 960px; /* Ensure image is not larger than 960px */
    border: 1px solid #ccc;
}

.content-section h2 {
    font-size: 2em;
    margin: 20px 0;
}

.content-section p {
    margin: 20px 0;
    line-height: 1.6;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.image-grid .caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #ddd;
}

.image-grid a {
    text-decoration: none;
    color: #ddd;
}

.image-grid a:hover {
    text-decoration: underline;
}

/* Hyperlink styles */
a {
    color: cyan; /* Default link color 00f */
    text-decoration: none; 
}

a:visited {
    color: cyan; /* Visited link color #551a8b */
    text-decoration: none;
}

a:hover {
    color: lime; /* Hover link color */
    text-decoration: underline; /* Underline only on hover */
}

a:active {
    color: #ff0000; /* Active link color */
}

/* Responsive styling */
@media (max-width: 1000px) {
    .content-section img {
        max-width: 100%; /* Allow image to be responsive */
    }
}

.contact-section {
    padding: 40px;
    background-color: #404040;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: cyan;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    margin: 0 10px;
    display: inline-block;
}

.social-media img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-media img:hover {
    transform: scale(1.1);
}

/* Responsive styling */
@media (max-width: 600px) {
    .contact-section {
        padding: 20px;
    }

    .contact-section h2 {
        font-size: 2em;
    }

    .contact-section p {
        font-size: 1em;
    }

    .social-media img {
        width: 30px;
        height: 30px;
    }
}
