body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    font-family: Arial, sans-serif;
    touch-action: none;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.back-icon {
    color: white;
    font-size: 24px;
    visibility: hidden;
}

.back-icon.visible {
    visibility: visible;
}

.upload-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    cursor: pointer;
}

.upload-icon:hover {
    color: rgba(255, 255, 255, 0.9);
}

.camera-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.outer-circle {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.middle-circle {
    width: 60px;
    height: 60px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-circle {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
}

canvas {
    display: none;
}

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

#captured-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#progress-container {
    position: absolute;
    bottom: 100px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    display: none;
}

#progress-bar {
    width: 0%;
    height: 40px;
    line-height:40px;
    padding-left:20px;
    background-color: rgba(255, 215, 0, 0.8);
    transition: width 0.5s ease; /* Smooth transition for progress bar */
}

#results {
    position: absolute;
    top: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    width: 90%;
    display: none;
    padding: 0px; 
    box-sizing: border-box; 
    overflow: hidden;
}

#name {
    position: relative;
    color: white;
    font-size: 24px;
    text-align: left;
    width: 100%; 
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 15px 15px 0 0;
    padding: 20px 20px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    box-sizing: border-box; 
}

#confidence {
    position: absolute; 
    top: 22px;
    right: 20px;
    padding: 6px 10px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
}

.social-links {
    padding-top: 20px;
}

.social-link {
    display: inline-block;
    margin: 0px 10px 10px 20px; 
    align-items: center;
    min-width:40%;
}

.social-link a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin-left: 5px;
}

.social-link i {
    font-size: 18px;
    color: white;
}




#facts {
    color:white;
    font-size:18px;
    text-align:left;
    width:100%;
    list-style-type: circle;
    line-height:30px;
}

.scrolling-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    scroll-behavior: smooth; /* Optional: smooth scrolling */
}

.image-grid {
    display: flex;
    flex-wrap: nowrap;
}

.image-container {
    position: relative;
    margin: 5px;
    width: 100px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    overflow: hidden;
    border-radius: 5px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Translucent black */
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.domain {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-bubble {
    background-color: red; /* Default color, will be overridden */
    border-radius: 10px;
    padding: 2px 2px;
    font-size: 12px;
    color: white;
    min-width: 40px;
    text-align: center;
}
