header {
    background-color: #ffffff; /* A clean, white background */
    border-bottom: 1px solid #e0e0e0; /* A light border to separate it from the body */
}

body {
    background-color: #c4d9ee; /* A very light gray background for the entire page */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

footer {
    background-color: #343a40; /* A dark gray background */
    color: #f8f9fa; /* Light text color for contrast */
    border-top: 1px solid #495057; /* A subtle top border */
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.img-thumbnail {
    border-radius: .25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
    width: 275px;
    height: 275px;
    object-fit: contain; /* Change from 'cover' to 'contain' */
}
.img-thumbnail:hover {
    transform: scale(1.05);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center; /* This centers the items horizontally */
}

/* Lightbox styles */
/*.lightbox {
    position: fixed;
    z-index: 1050;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    text-align: center;
    /* Flexbox properties to center the child container */
/*    display: flex;
    justify-content: center; /* Centers horizontally */
/*    align-items: center;     /* Centers vertically */
/*}*/
.lightbox {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    
    /* This makes the lightbox hidden by default */
    display: none;
    
    /* Flexbox properties to center the child container */
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
}
.lightbox-content-container {
    margin: auto;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    /* Flexbox properties to center the image and text */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center;    /* Centers children horizontally */
}

.lightbox-content {
    display: block;
    width: 90%;
    height: auto;
    background-color: black;
    padding: 5px;
    border: 2px solid #bbb;
    border-radius: 10px;    
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 10px 0;
}

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

.close:hover,
.close:focus {
    color: #bbb;
    cursor: pointer;
}

/* Star voting system */
.voting-area {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: center;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s; /* Add transform for a subtle animation */
    display: inline-block;
    color: #ccc; /* Make stars visible with a light gray color */
}

/* This will be applied when a user hovers over a star or taps on it */
.star:hover,
.star:hover ~ .star {
    color: gold;
    transform: scale(1.1); /* Subtle grow effect on hover */
}

/* This class is added by JavaScript to keep the selected stars colored */
.star.active,
.star.active ~ .star {
    color: gold;
}