body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}
.bg-container {
    height: 100vh;
    background-image: url(img/bg.png);
}
h1 {
    color: #333;
}
p{
    text-align: justify;
    margin: 20px;
}
.custom-h1 {
    font-size: 100px;
    padding-top: 50px;
}
#header {
    z-index: 997;
    background-color: #fff;
    height: 0px;
    position: fixed; 
    width: 100%; 
}
#refresh-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000; /* Ensure it is on top of other elements */
}
.refresh-container{
    border: none;
    background-color: white;
    padding-top: 15px;
    padding-left: 15px;
}
.btn-start{
    height: 50px;
    width: 140px;
    background-color: #80CC28 !important;
}
.btn-capture, .btn-recapture, .btn-generate, .btn-flip {
    height: 50px;
    width: 50px !important;
    background-color: #80CC28 !important;
    border-radius: 50px !important;
}

.btn:hover {
    background-color: #ffb524 !important;
}
.span-btn {
    color: white;
    font-size: 20px;
}
#webcam-container, #label-container, #output-container {
    margin-top: 20px;
    text-align: center;
}
#label-container div, #output-container div {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}
#webcam-container canvas, #capture-container img {
    display: block;
    margin: 0 auto;
}
/* #webcam-container {
    overflow: hidden;
    max-width: 1024px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
} */
#webcam-container img {
    height: auto;
    width: 100%;
}
#capture-container img{
    width: 100%;
    height: auto;
    max-height: 300px; /* Initial max height */
}
#capture-container img.small {
    max-height: 50px !important; /* Reduced max height when generating content */
}
.webcam-img {
    width: 100%;
    height: 50vh;
    border-radius: 20px;
}
.btn-onclick {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.btn-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other content */
}

button {
    margin: 5px;
}
.output-box{
    height: auto;
    width: 100%;
    box-shadow: #333;
    background-color: #F4F4F4;
    border-radius: 20px;
    box-shadow: 10px 12px 10px rgba(71, 71, 71, 0.1);
    margin-bottom: 100px !important;
    
}
@media only screen and (max-width: 1220px){
    .webcam-img {
        width: 80%;
        height: 50vh;
        border: 2px solid #ccc;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(32, 32, 32, 0.1);
    }
    h1{
       font-size: 50px !important;
    }
    .custom-h1{
        margin-top: 100px;
    }
}
@media only screen and (max-width: 995px){
    .custom-h1{
        margin-top: 100px !important;
    }
}
@media only screen and (max-width: 770px){
    .custom-h1{
        padding-top: 50px !important;
    }
    p{
        font-size: 12px;
    }
}
@media only screen and (max-width: 767px){
    .custom-h1{
       font-size: 10px;
    }
    .output-box{
        font-size: 13px !important;
    }
    p{
        font-size: 12px;
    }
    #webcam-container{
        margin-top: none !important;
    }
}