html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.container{
    padding:0px;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:black;
  color:white;
}

.overlay-container {
    position: relative;
    height: 40vh;
    overflow: hidden;
    margin:5px;

}

#scene-preview-container{
    display:none;
}

#overlay {
    height: 100%;
    width: 100%;
    object-fit: contain;
}


.target-rectangle {
    position: absolute;
    top: 10%;
    left: 25%;
    width: 50%;
    height: 80%;
}

    .target-rectangle:before,
    .target-rectangle:after,
    .target-rectangle .top-right,
    .target-rectangle .bottom-left {
        content: "";
        position: absolute;
        width: 25%;
        height: 25%;
    }

    .target-rectangle:before {
        border: 2px solid rgba(255, 255, 255, 0.6);
        border-width: 2px 0 0 2px;
        top: 0;
        left: 0;
    }

    .target-rectangle:after {
        border: 2px solid rgba(255, 255, 255, 0.6);
        border-width: 0 2px 2px 0;
        right: 0;
        bottom: 0;
    }

    .target-rectangle .top-right {
        border: 2px solid rgba(255, 255, 255, 0.6);
        border-width: 2px 2px 0 0;
        top: 0;
        right: 0;
    }

    .target-rectangle .bottom-left {
        border: 2px solid rgba(255, 255, 255, 0.6);
        border-width: 0 0 2px 2px;
        left: 0;
        bottom: 0;
    }



#overlay:after {
    content: attr(alt);
    font-size: 20px; /* adjust as needed */
    display: block; /* adjust as needed */
    text-align:center;
}

user-photo-img
.camera-bg {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.img-overlay-bg {
    position: absolute;
    left: 0; 
    top: 0;
    width: auto;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    opacity: 0.3;
    height: auto;
    transform: translate(-40%, 10%) scale(1.5);
}

.img-flip-horizontal {
    transform: scaleX(-1);
}

.img-overlay-visible{
    opacity:1!important;
}

.bottom-container {
    text-align: center;
    width: 100%;
}

.hidden{
    display:none;
}

.mode-selector {
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    position: relative;
    z-index:1000;
}

/* Hide the default radio buttons */
.mode-selector input[type="radio"] {
    display: none;
}

/* Style the labels as toggle buttons */
.toggle-btn {
    display: inline-block;
    padding: 10px 25px;
    cursor: pointer;
    background-color: #444;
    color: white;
    border-radius: 0; /* Remove rounded corners */
    transition: background-color 0.3s;
    margin-right:-5px;
}

/* Add rounded corners to the first button */
.mode-selector input[type="radio"]:first-of-type + .toggle-btn {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* Add rounded corners to the last button */
.mode-selector input[type="radio"]:last-of-type + .toggle-btn {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Change background color when selected */
.mode-selector input[type="radio"]:checked + .toggle-btn {
    background-color: #258cfb;
}

#opacity-slider-container{
    padding-top:10px;
    padding-bottom:20px;
}

.popup {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    justify-items: center;
    margin-top: 1rem;
}

.popup-content {
    position: relative;
    /*
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
        */
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 50vw; /* This line makes the popup wider */
    border-radius: 10px;
    color: black;
    justify-content: center;
    display: inline-grid;
}

.vertical-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.popup-content {
    text-align: center;
    padding: 20px;
}

.popup-content p {
    font-size: 14px;
    margin-bottom: 5px;
}

.popup-content button {
    font-size: 12px;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#instruction-button-container {
    display: flex;
    flex-direction: column;
}

#instruction-button-container button {
    margin: 5px 0; /* Adds a little vertical space between buttons */
}


#goback-button {
    background-color: #313131fc;
}
.popup-content button:hover {
    background-color: #2b2b2b;
    color: #ffffff;
}

.popup-content button:nth-of-type(1) {
    background-color: #4caf50;
    color: #ffffff;
}

.popup-content button:nth-of-type(2) {
    background-color: #4583c8;
    color: #ffffff;
}

#ytplayer{
    height: 30vw;
}

#close-scene-button {
    font-size: 12px;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    background-color: #4583c8;
    color: #ffffff;
}

#close-scene-button:hover {
    background-color: #2b2b2b;
    color: #ffffff;
}


.popup-close {
    position: absolute;
    right: 15px;
    top:0px;
    cursor: pointer;
    font-size: 40px;
    color:black;
}

.popup-gif {
    max-width: 100%;
    height: auto;
}

.popup-text {
    margin-top: 10px;
    text-align: center;
    color:black;
}

#question-mark-button {
    background-color: #000000;
    color: #fffcfc;
    /* padding: 10px; */
    border: 0px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    /* text-align: center; */
    /* vertical-align: initial; */
    font-weight: 500;
    font-size: 40px;
    display: block;
}

#switch-camera-button {
    background-color: transparent;
    color: #fffcfc;
    /* padding: 10px; */
    border: 0px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    /* text-align: center; */
    /* vertical-align: initial; */
    font-weight: 500;
    font-size: 40px;
    display: block;
    position: absolute;
    bottom: 0.5em;
    right: 0.5em;
    z-index:500;
}

#change-scene-button {
    background-color: transparent;
    color: #fffcfc;
    /* padding: 10px; */
    border: 0px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    /* text-align: center; */
    /* vertical-align: initial; */
    font-weight: 500;
    font-size: 40px;
    display: block;
    position: absolute;
    bottom: 0.6em;
    right: 0.5em;
    z-index: 500;
}

#flip-scene-button {
    background-color: transparent;
    color: #fffcfc;
    /* padding: 10px; */
    border: 0px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    /* text-align: center; */
    /* vertical-align: initial; */
    font-weight: 500;
    font-size: 40px;
    display: block;
    position: absolute;
    bottom: 0.6em;
    left: 0.5em;
    z-index: 500;
}

.hide-button{
    display:none;
}

.snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: absolute;
    z-index: 1000;
    left: 50%;
    top: 30px;
    font-size: 17px;
    border-radius:5px;
    
}

.show {
    visibility: visible !important;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }

    to {
        top: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }

    to {
        top: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        top: 30px;
        opacity: 1;
    }

    to {
        top: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        top: 30px;
        opacity: 1;
    }

    to {
        top: 0;
        opacity: 0;
    }
}

.wrapper-container {
    position: relative;
    text-align: center;
}


#change-photo-button {
    font-size: 16px;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    margin: 0 auto;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    background-color: #4583c8;
    color: #ffffff;
    margin-top:10px;
}


#user-photo-img {
    position: absolute;
    left: 50%;
    top: 0px;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

#takepicture-button {
    background: url('../images/camera_1.png');
    width: 70px;
    height: 70px;
    background-size: contain;
    border-width: 0px;
    display:block;
    margin:0 auto;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48
}

button {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    justify-content: center; /* Center items horizontally */
    font-family: 'Roboto', sans-serif; /* Font family recommended for Material Design */

}

button .material-symbols-outlined{
    margin-right:5px;
}

/* Add this CSS class for the snapshot animation */
.snapshot-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1000;
    animation: flash 0.5s;
    display: none;
}

@keyframes flash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
/* Modify these CSS classes for the confirmation popup */
.confirmation-popup {
    display: none;
    position: fixed;
    bottom: 5%; /* Adjust this value to position the popup higher or lower from the bottom */
    left: 50%; /* Center the popup horizontally */
    transform: translateX(-50%); /* This is necessary for true centering */
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.confirmation-popup-content {
    text-align: center;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: black;
    justify-content: center;
    display: inline-grid;
    width: 80vw; /* This line makes the popup wider */

}

.confirmation-popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: black;
}

/* Add these styles for the buttons inside the confirmation popup */
.confirmation-popup-content button {
    font-size: 16px;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    background-color: #4caf50;
    color: #ffffff;
}

.confirmation-popup-content button:hover {
    background-color: #2b2b2b;
    color: #ffffff;
}

/* Make the retry button red */
.confirmation-popup-content button.retry-button {
    background-color: #f44336; /* Red color */
}

.confirmation-popup-content button.retry-button:hover {
    background-color: #d32f2f; /* Darker red on hover */
}

.confirmation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999; /* Make sure this is below the z-index of your dialog */
}

.centered-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spaced-container{
    justify-content:space-between;
}

@media (max-width: 480px) {

    .container {
        width: 100%;
        padding:0;
    }

    .camera-bg {
        width: 100%;
        height: 100%;
    }

    .popup-content {
        width: 90vw;
    }

    .confirmation-popup-content {
        width: 90vw;
    }

    #ytplayer {
        height: 50vw;
    }
}

#loading-overlay {
    position: fixed; /* Fixed positioning makes the overlay cover the whole page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex; /* Using flex to center the spinner */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* High z-index to make sure it's on top of other elements */
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db; /* Blue color for the spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

#loading-overlay-upload {
    position: fixed; /* Fixed positioning makes the overlay cover the whole page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Using flex to center the spinner */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* High z-index to make sure it's on top of other elements */
}

#upload-text{
    font-weight:500;
}

.loading-spinner-upload {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db; /* Blue color for the spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.confirm-step-text {
    text-align: center;
    padding-top: 5px;
    color: black;
    font-weight: 500;
    font-size: 16px;
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.confirmation-step-content {
    text-align: center;
    padding: 5px;
    color: black;
}

.confirmation-step-content button {
    font-size: 15px;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    background-color: #4caf50;
    color: #ffffff;
    width:100%;
}


.confirmation-step-content button:hover {
    background-color: #2b2b2b;
    color: #ffffff;
}

.confirmation-step-content button.retry-button {
    background-color: #f44336;
}

.confirmation-step-content button.retry-button:hover {
    background-color: #d32f2f; 
}

.confirmation-step-content button.retry-submit-button {
    background-color: #4583c8;
}

.confirmation-step-content button.retry-submit-button:hover {
    background-color: #2d5c91; 
}

.confirm-button, .submit-button {
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: blue;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 3s linear;
}

.progress-bar.hide {
    transform: scaleX(0);
}

@keyframes flash-text {
    0%, 100% {
        text-shadow: none;
    }

    50% {
        text-shadow: 0 0 1px #000, 0 0 2px #000, 0 0 3px #000, 0 0 3px #000;
    }
}

.flash-text {
    animation: flash-text 0.5s;
}

.step{
    background-color:white;
    border-radius:5px;
}

.confirm-step-text .material-symbols-outlined {
    vertical-align: bottom;
}

#step-instruction-popup button {
    background-color: #4583c8;
    color: #ffffff;
}

.tooltip {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    font-size: 14px;
    z-index: 100;
    opacity: 0.8;
    bottom: 2em;
    right: 4.5em;
}


.camera-bg {
    width: 100%;
    height: 100%;
}

.typed-text {
    white-space: nowrap;
    overflow: hidden;
    text-align: center; /* Center-align the text */
    animation: typing 1s steps(30, end) forwards;
    border-right: .15em solid black; /* Add a blinking cursor effect */
}

@keyframes typing {
    0% {
        width: 50%; /* Start from 50% width */
    }

    100% {
        width: 100%;
    }
}

.slide-in-text {
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.show-text {
    transform: translateX(0);
}

#thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* space between thumbnails */
    padding: 10px; /* optional, adds some space inside the container */
}

#thumbnail-container img {
    width: 80px; /* fixed width for all thumbnails */
    height: 100px; /* fixed height for all thumbnails */
    object-fit: cover; /* ensures images cover the area */
    border-radius: 5px; /* rounded corners for a modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* subtle shadow for depth */
    border: 1px solid #ddd; /* optional, adds a light border */
}

#thumbnail-fish-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* space between thumbnails */
    padding: 10px; /* optional, adds some space inside the container */
}

#thumbnail-fish-container img {
    width: 80px; /* fixed width for all thumbnails */
    height: 100px; /* fixed height for all thumbnails */
    object-fit: cover; /* ensures images cover the area */
    border-radius: 5px; /* rounded corners for a modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* subtle shadow for depth */
    border: 1px solid #ddd; /* optional, adds a light border */
}

#thumbnail-themes-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* space between thumbnails */
    padding: 10px; /* optional, adds some space inside the container */
}

#thumbnail-themes-container img {
    width: 80px; /* fixed width for all thumbnails */
    height: 100px; /* fixed height for all thumbnails */
    object-fit: cover; /* ensures images cover the area */
    border-radius: 5px; /* rounded corners for a modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* subtle shadow for depth */
    border: 1px solid #ddd; /* optional, adds a light border */
}

#thumbnail-bphoto-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* space between thumbnails */
    padding: 10px; /* optional, adds some space inside the container */
}

#thumbnail-bphoto-container img {
    width: 80px; /* fixed width for all thumbnails */
    height: 100px; /* fixed height for all thumbnails */
    object-fit: cover; /* ensures images cover the area */
    border-radius: 5px; /* rounded corners for a modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* subtle shadow for depth */
    border: 1px solid #ddd; /* optional, adds a light border */
}

#thumbnail-dphoto-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* space between thumbnails */
    padding: 10px; /* optional, adds some space inside the container */
    margin-bottom:5px;
}

#thumbnail-dphoto-container img {
    width: 80px; /* fixed width for all thumbnails */
    height: 100px; /* fixed height for all thumbnails */
    object-fit: cover; /* ensures images cover the area */
    border-radius: 5px; /* rounded corners for a modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* subtle shadow for depth */
    border: 1px solid #ddd; /* optional, adds a light border */
}

.thumbnail-placeholder {
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    font-size: 24px; /* Adjust the size of the plus icon */
    cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
}

.image-button {
    background-size: cover;
    background-position: center;
    width: 110px; /* Reduced width */
    height: 100px; /* Reduced height */
    border-radius: 10px; /* Rounded corners */
    cursor: pointer;
    display: flex;
    align-items: flex-end; /* Align text to the bottom */
    justify-content: center;
    margin: 5px; /* Adjust margin as needed */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Drop shadow for depth */
    position: relative;
    overflow: hidden;
}

.button-label {
    color: white;
    font-size: 16px; /* Adjust font size as needed */
    padding: 5px 0; /* Padding at the bottom */
    width: 100%; /* Full width */
    text-align: center; /* Center the text */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
}


.popup-content-species {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.species-button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.others-button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.radio-button-container {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.radio-button-label {
    position: relative;
    display: flex;
    align-items: flex-end;
    border: 3px solid #0000;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    width: 100px;
    height: 120px;
    overflow: hidden;
    margin-left:5px;
    margin-right:5px;
}

    .radio-button-label img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .radio-button-label span {
        position: absolute;
        bottom: 0;
        width: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        padding: 1px;
        z-index: 1;
    }

    .radio-button-label.selected {
        border-color: #60ba69;
    }

input[type="radio"] {
    display: none;
}

/* Styling for collapsibles */
.collapsible {
    margin-bottom: 10px;
}

.collapsible-header {
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
    margin: 5px 0;
    display: inline-block;
}

.collapsible-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 5px 0;
}


.collapsible-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 5px 0;
    border: 1px solid #ddd;
    text-align: center; /* Center the content */
}

    .collapsible-content .image-button {
        margin: 5px auto; /* Center the image buttons */
    }


#dphoto-facing-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

#dphoto-facing-picker{
    display:block;
    width:100%;
    margin-bottom:5px;
}

#dphoto-facing-example{
    display:block;
    width:100%;
    max-width:180px;
}