@keyframes logo-rotation {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

header img {
    height: 100px;
    float: left;
    margin-left: 25px;
}

header img:hover {
    animation: logo-rotation 0.5s linear;
}

#nav-images {
    display: flex;
    justify-content: center;
}

#nav-images a {
    display: block;
    position: relative;
}

#nav-images a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: hsla(204, 67%, 18%, 0.7);
}

#nav-images a:nth-child(even)::before {
    background-color: hsla(143, 55%, 24%, 0.7);
} 

#nav-images a:hover::before {
    background-color: hsla(0, 0%, 0%, 0.7);
    transition: 2s ease-out;
}

#nav-images img {
    display: block;
    width: 303px;
    opacity: 0.2;
}

#nav-images .image-text {
    position: absolute;
    top: 65%;
    left: 10%;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: 1em;
}

.image-text h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: antiquewhite;
}

.image-text p {
    margin-top: 10px;
    margin-right: 20px;
    font-size: 0.8em;
    font-style: italic;
}

#side-media video {
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

#side-media audio {
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.side-image img {
    border: 4px solid rgb(58, 58, 100);
    width: 400px;
}

.employee img {
    width: 250px;
    height: auto;
    align-self: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.side-links img {
    width: 250px;
}

div#embed-map iframe {
    width: 50%;
    height: 200px;
    border: 2px solid black;
}

footer img {
    margin-top: 25px;
    height: 100px;
}

.social-links {
    margin: auto;
}

.social-links img {
    display: inline-block;
    width: 46px;
    height: auto;
    margin: 0;
}

.carousel {
    position: relative;
    width: 90%;
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
}

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
}

.carousel-text h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
}

.carousel-button {
    position: absolute;
    top: 45%;
    background: rgba(0, 140, 255, 0.685);
    color: rgb(255, 255, 255);
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    width: 55px;
    height: auto;
    border-radius: 50%;
}

.carousel-button:hover {
    background: rgba(0, 247, 255, 0.9);
}

.prev { 
    left: 20px; 
}

.next { 
    right: 20px; 
}

.carousel-dots {
    position: absolute;
    display: flex;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}