:root {
    --colorOne: #76B856;
    --colorTwo: #579937;
    --colorThree: #4d9bb3;
    --colorFour: #6cbad2;
    --colorFive: white;
}

html {
    width: fit-content;
}
body {
    font-family: 'Rubik', sans-serif;
    padding-top: 40px;
    width: 1000px;
}

body:hover #controls {
    display: block;
}

#controls {
    display: none;
    position: absolute;
    border-radius: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid black;
    top: 15px;
    width: 10%;
    left: calc(46% - 23%);
}

p {
    padding: 0;
    margin: 0;
}

#image-containers {
    width: fit-content;
}

.image-container {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin: 2.5px;
    /*flex-direction: row-reverse;*/
    gap: 10px;
    padding: 5px 10px;
}

.white .image-container {
    background-color: rgba(255, 255, 255, 0.5);
}

.white .name {
    color: black;
}

.right .image-container {
    flex-direction: row-reverse;
}

.right .name {
    text-align: end;
}

.name {
    font-size: 14px;
    width: 100% !important;
    font-weight: bold;
    color: white;
}

.imgHelper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

img {
    width: 50px;
    height: auto;
    cursor: pointer; /* Add a pointer cursor to indicate clickability */
    filter: grayscale(100%); /* Initially make the images black and white */
    border-radius: 8px;
    opacity: 0.8;
}

.active img{
    opacity: 1;
    filter: none; /* Initially make the images black and white */
}

.image-container.active {
    background: linear-gradient(90deg, #d1ecc4, #76b856, #6cbad2);
    animation: gradientAnimation 5s ease infinite;
}

.active .name {
    color: black !important;
}

.button {
    display: none;
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid black;
    border-radius: 8px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.button img {
    width: 30px;
    transform: rotate(-40deg);
}

/* K E Y F R A M E S */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}