.button {
    background-color: #66ccff; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    padding: 10px 20px;
    color: #fff;
    transition: background-color 0.3s ease;
    font-size: 16px;
}
.button.active, .button:hover {
    background-color: #5599cc;
}

.random-gal-button {
    margin-bottom: 10px;
}

#loading-overlay {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 200, 200, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 10px;
    z-index: 100;
}
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

#random-gal-image {
    max-height: 170px;
    object-fit: cover;
    border-radius: 10px;
}

#random-gal-container {
    position: relative;
}

#random-gal-content {
    display: none;
    border-radius: 5px;
    box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 10px;
    position: relative;
    border: none !important;
}

#random-gal-tag, #random-gal-excerpt {
    margin: 5px 0;
    font-size: 14px;
}

#random-gal-title {
    font-size: 18px;
    margin: 5px 0;
}

.details-button {
    display: block;
    text-align: center;
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 10px;
    padding: 10px 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.details-button:hover {
    background-color: #5599cc;
    color: #fff;
}

.random-gal-intro {
    margin-bottom: 10px;
    font-size: 15px;
    color: #666;
    text-align: center;
}


.details-button {
    color: #fff;
  }
.details-button:active{
    color: #fff;
}