/* style.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* old navbar */
nav {
    background-color: #1d1b5b;
    color: #ecf0f1;
    padding: 1em 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

nav .brand {
    font-size: 1.5em;
    color: #ecf0f1;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

nav ul li {
    margin-left: 1em;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* new navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #002B61;
    color: #fff;
}

.nav-icons i, .search-bar, .fas {
    margin: 0 10px;
    color: #fff;
    font-size: 24px;
}

.nav-icons {
    padding: 0 20px;
}

.search-bar {
    width: 100%;
    border-radius: 25px; 
    padding-left: 18px;
    font-size: 120%;
}

.container {
    width: 90%;
    margin: 2em auto;
}

h1, h2 {
    color: #2c3e50;
}

a.button {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #2980b9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

a.button:hover {
    background-color: #3498db;
}

.flash-messages {
    width: 90%;
    margin: 1em auto;
}

.alert {
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 4px;
}

.alert.success {
    background-color: #2ecc71;
    color: #fff;
}

.alert.danger {
    background-color: #e74c3c;
    color: #fff;
}

/* Additional styles for index page */
.index-hero {
    text-align: center;
    padding: 4em 0;
    background-color: #ecf0f1;
}

.index-hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.index-hero p {
    font-size: 1.2em;
    color: #7f8c8d;
}
.gal-img:hover{
    -webkit-filter: brightness(70%);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}

.img-container:hover .gal-img{
    -webkit-filter: brightness(70%);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}
.gal-img:hover star-icon{
    opacity:100;
}

.star-icon {
    opacity: 0; 
    position: absolute; 
    top: -5px; 
    right: 10px; 
    font-size: 2.5em; 
    color: #f1c40f; 
    transition: opacity 0.5s ease;
    font-style: normal;
}


.img-container:hover .star-icon {
    opacity: 1; 
}

.icon-nav {
    padding-left: 15px;
}
.center-image{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.modal-dialog-custom {
    width: 45% !important;
    height: auto !important;
    max-width: 800px !important;
    padding-top: 100px;
}


.toggle-checkbox {
    display: none;
  }

  
  .toggle-icon {
    cursor: pointer;
    font-style: normal; 
  }

  
  .toggle-checkbox:not(:checked) + label .original-text {
    display: inline;
  }

  
  .toggle-checkbox:not(:checked) + label .new-text {
    display: none;
  }

  
  .toggle-checkbox:checked + label .original-text {
    display: none;
  }
  .toggle-checkbox:checked + label .new-text {
    display: inline;
  }

.hidden {
    /* display: none !important; */
    opacity: 0% !important;
    display: none !important;

}
.view-show {
    /* display: block !important; */
    opacity: 100% !important;
    display: block !important;
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption h5 {
    font-size: 24px;
    color: #fff;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Make the icons stand out */
}

.loginPopup {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 35%;
    height: 375px;
    margin: 50px auto;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-form {
    display: flex;
    align-items: center;
}


.search-button {
    background: none;
    border: none;
    cursor: pointer;
}

.arrow {
    /* position: absolute;
    top: 50%;
    transform: translateY(-50%); */
    font-size: 3rem;
    /* color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10; */
}
.arrow.left {
    left: 10px;
}
.arrow.right {
    right: 10px;
}

.fullscreen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.fullscreen .carousel-inner {
    height: 100%;
}

.fullscreen .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* when galleryCarousel has the fullscreen class, let each slide fill the viewport */
#galleryCarousel.fullscreen .carousel-item {
    height: 100vh !important;
  }
  
/* ensure the image itself really fills that slide */
#galleryCarousel.fullscreen .carousel-item img {
    height: 100vh;
    object-fit: contain;    /* or cover, if want it cropped to fill */
}

/* small “by …” credit in bottom-right of each slide */
#galleryCarousel .carousel-item {
    position: relative;            /* make sure children can absolute-position against it */
  }
  
#galleryCarousel .creator-credit {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);   /* translucent dark background */
    color: #fff;
    padding: 0.25em 0.5em;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1100;
}

#galleryCarousel .creator-credit a {
    color: #fff;
    pointer-events: auto;    /* re-enable clicks on the link itself */
    text-decoration: underline;
  }

.gal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gal-img.card-img-top {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block;
}
