/* nav bar */
.icon{
    width:20%;
    padding-right:4%;
}
.sidebar {
    width: 10%;
    position:fixed;
    text-align:left;
}

.sidebar a {
    display: flex; /* Makes each link a block element */
    text-decoration: none;
    align-items: center; /* Vertically centers the content */
    color: black; /* Default text color */
    width: 100%; /* Ensures each link fills the entire width */
    padding: 10px;
}

/* Style for odd rows */
.sidebar a:nth-child(odd) {
    background-color: #f2f2f2; /* Light grey background */
}

/* Style for even rows */
.sidebar a:nth-child(even) {
    background-color: #ddd; /* Slightly darker grey */
}

.sidebar .row_a {
    background-color: #fff; /* Different color for the first row */
}

.mainbar {
	margin-left: 12%;
	padding: 1px 16px;
    display: inline-block;
    position: absolute;
}

.rightbar {
	margin-left: 60%;
    margin-right: 10%;
    width: 40%;
	position: relative;
	padding: 1px 16px;
    display: inline-block;
}

#map {
    height: 80vh;
    width: 1000px;
}

/* input and crop box */
input {
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  background-color: #fff;
  padding: 3px 5px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
}

.preview_box .img-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin: 5px;
    overflow: hidden;
}

.preview_box .img-container img.img-preview {
    max-width: 100px;
    max-height: 100px;
    display: block;
}

.preview_box .img-container .crop-text {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-weight: bold;
    pointer-events: none; 
}

.preview_box .img-container:hover .crop-text {
    display: block;
}

.preview_box .img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7); /* Light overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* This ensures the overlay doesn't block mouse events */
}

.preview_box .img-container:hover::before {
    opacity: 1;
}

/* Buttons */

.selected {
  background-color:cyan;
  animation:glowing 20s linear;
}

/* Directory */

#slider {
    padding: 10px;
}
.ui-slider{
  height: 1vh;
    margin: 10px;

}
.ui-slider .ui-slider-handle{
  height: 2vh;
}

.directory{
    top: 0px; /* Align to the top */
    position: fixed;
    z-index: 9;
    background-color: #fff;
}
.filterbar {
    text-align:center;
    display:inline-flex;
    padding-right: 1%;
}
.gallery{
    position:relative;
    margin-top: 18vh;
    display: inline-flex;
    flex-wrap: wrap;
    flex-grow: 1;
    overflow-y: hidden;
    overflow-x: hidden;
}

.matches {
    margin-top: 0;
    overflow-y: scroll;
}
.card {
    /* Shadow */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width:20%;
    position: relative;
    margin-bottom: 2%;
    margin-left: 2%; 
    border-radius: 15px;

    min-width: 250px;

    /* Dynamic Sizing */
    display:flex;
    flex-direction:column;
    direction: ltr;
}
.card img{
    object-fit: cover;
    overflow: hidden;
    width: 100%;
    height:40vh;
    margin-left: 0%;
    border-radius: 15px;

    min-width: 100px;
    max-height: 250px;
}
.card .text {
    box-shadow: none;
    min-height: 8vh;
    width:100%;
    text-align: center;
    margin-left: 0%;
    margin-bottom: 0%;
    flex-grow: 1;
    align-items: stretch;
    font-family: Open Sans;

    }
.card .text:hover{
    box-shadow: none;
}
/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.4);
}

.smallImage {
    max-height:40vh;
    object-fit: cover;
}

/* Carousel for Biodata */

.carousel {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.carousel-inner {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* for momentum scrolling on iOS */
}

.carousel-item {
  flex: 0 0 auto;
  width: 100%;
  scroll-snap-align: start;
  transition: transform 0.5s ease;
  -webkit-transform: translate3d(0, 0, 0); /* for smooth scrolling on iOS */
}

/* Hide scrollbar for various browsers */
.carousel-inner::-webkit-scrollbar {
  display: none;
}

.carousel-inner {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.carousel-open {
  display: none;
}

.carousel-item {
  display: none;
  flex: 0 0 auto;
  width: 100%;
  transition: transform 0.5s ease;
}

.carousel-open:checked + .carousel-item {
  display: block;
}

.carousel img {
  height: 50vh;
  display: block;
}

.carousel-control {
  background: transparent;
  cursor: pointer;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  margin: 0 0.5em;
  position: relative;
  z-index: 10;
}

.carousel-control:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #333;
  border-radius: 50%;
  opacity: 0.5;
}

.carousel-control:hover:before {
  opacity: 0.8;
}


/* Preview Box for BioData Form*/ 

.preview_box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;  /* Adjust the spacing between images */
}

.imageThumb {
    max-height: 100px; /* Adjust the size as needed */
    border: 1px solid #ddd; /* Border color */
    border-radius: 4px; /* Rounded corners */
    padding: 5px;
}

.pip {
  display: inline-block;
  margin: 10px 10px 0 0;
}

.remove {
    display: block;
    text-align: center;
    color: black;
    cursor: pointer;
    margin-top: 5px;
}

.remove:hover {
  background: white;
  color: red;
}



/* Text Changes */ 
body {
	text-decoration: none; 
	color: black;
	font-weight: normal;
    overflow-x: hidden;
    font-family: Open Sans;
}


h1, h2, h3 {
	font-weight: normal;
}


h2 {
	font-size: 1.2em;
	font-weight: normal;
}

h4 {
    font-weight: normal;
    font-size: 17px;
}

span{
    font-size: 1.2em;
}
a {
	text-decoration: none; 
	color: black;
}

ul {
	    text-indent: -40px; /* key property */
        list-style-position: outside;
}

li {
	list-style: none;
	list-style-position: outside;
}

/* Journal */

.entry_body{
    white-space: pre-wrap;
}


li {
    list-style: none;
    list-style-position: outside;
}


li:before {
content:url(/static/resources/star.svg);
padding: 10px;
}

li:hover:before {
content:url(/static/resources/star_hover.svg);
}

li:after{
    display:none;
    content: url(/static/resources/star.svg) url(/resources/star_hover.svg);
}

li:active:before{
content:url(/static/resources/star_active.svg);
}

li:active:after{
        content:url(/static/resources/star_active.svg);
}



/* Response */
@media screen {
@media screen and (max-width: 1000px) {
    .gallery-main img{
        max-width:80vw;
        max-height:500px;
    }
}
@media screen and (max-width: 700px) {

    body {
        padding: 0 2em;
        margin: 0 0 0em;
    }

    h3 {
        margin: 0 0 1em;
    }
    .sidebar {
    	width:inherit;
    	position: static;
    	text-align: center;
        display: inline;
    	}

    .icon {
        width: 30px;
        height: 30px;

    }

    #map {
        width:100%;
    }

    .directory {
        top: initial;
        position: relative;
        text-align: center;
        display: inline-block;
        width: 100%;
    }

    .filterbar{
        width:100%;
        position: relative;
        display:block;
        text-align: left;
        font-size: .8em;
    }

    .mainbar {
    	width:100%;
    	margin: 0 0 3em; /* clear the margin */
    	padding: 0 0 0;
    	display:inline-block;
        position: static;
    }

    .rightbar {
        position: static;
    	width:inherit;
    	padding: 0 0 0;
    	margin: 0 0 3em; /* clear the margin */
    }

    #directoryImage {
        display:none;
    }

    .gallery{
        height: 100vh;
        width: 100%;
        overflow-y: scroll;
    }

    .gallery-main img{
    max-width:80vw;
    max-height:500px;
    }

    .gallery-bio {
        position: relative;
        width: 300px; /* Set the width to your preference */
        height: 200px; /* Set the height to your preference */
    }

    .mainbar .text {
        display: inline-block;
    }
    .card {
        width:48%;
        min-width: initial;
    }
    .card .text{
        font-size: 1em;
    }

}

@media screen and (max-width: 300px) {
	.page{width:70%;height:auto;}
    }

}