@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* @media only screen and (max-width: 43em){
    *{
        font-size: 14px ;
    }
    .main{
        width: 90vw !important;
    }
    .box{

        max-height: 20vh !important;
        max-width: 70vw !important;

    }
    .heading{
        color: #5029ff !important;
    }
}

@media only screen and (min-width: 43.01em) and (max-width: 65em) and (min-height: 60em) {
    *{
        font-size: 32px;
    }
    .main{
        width: 90vw !important;
    }
    .box{
        max-height: 20vh !important;
        max-width: 70vw !important;

    }
    .heading{
        color: #5bff09 !important;
    }
}

@media only screen and (min-width: 43.01em) and (max-height: 60em) {
    *{
        font-size: 17px;
    }
    .main{
        width: 75vw !important;
    }
    .box{
        max-height: 20vh !important;
        max-width: 70vw !important;
    }
    .heading{
        color: #ff1f1f !important;
    }
} */

@media all and (min-width: 1280px) { 
    *{
        font-size: 22px;
    }
    .main{
        width: 65vw !important;
    }
    .box{
        max-height: 25vh !important;
        max-width: 70vw !important;
    }
    .heading{
        /* color: #0044ff !important; */
    }
}

@media all and (min-width: 1024px) and (max-width: 1280px) {
    *{
        font-size: 17px;
    }
    .main{
        width: 75vw !important;
    }
    .box{
        max-height: 25vh !important;
        max-width: 70vw !important;
    }
    .heading{
        /* color: #ff1f1f !important; */
    }
 }

@media all and (min-width: 1024px) and (orientation:portrait) {
    *{
        font-size: 17px;
    }
    .main{
        width: 75vw !important;
    }
    .box{
        max-height: 25vh !important;
        max-width: 70vw !important;
    }
    .heading{
        /* color: #ff1f1f !important; */
    }
 }
 
@media all and (min-width: 768px) and (max-width: 1024px) {
    *{
        font-size: 15px;
    }
    .main{
        width: 80vw !important;
    }
    .box{
        max-height: 25vh !important;
        max-width: 70vw !important;
    }
    .heading{
        /* color: #00ff33 !important; */
    }
 }
@media all and (min-width: 768px) and (max-width: 1024px) and (orientation:portrait) {
    *{
        font-size: 29px;
    }
    .main{
        width: 90vw !important;
        gap: 2rem !important;
    }
    .box{
        max-height: 25vh !important;
        max-width: 70vw !important;
    }
    .heading{
        /* color: #ffee00 !important; */
    }
    .input{
        flex-direction: column  !important  ;
    }
 }
 
@media all and (min-width: 480px) and (max-width: 768px) and (orientation: portrait) {
    *{
        font-size: 30px;
    }
    .main{
        width: 85vw !important;
        gap: 2rem !important;
    }
    .box{
        max-height: 25vh !important;
        max-width: 70vw !important;
    }
    .heading{
        /* color: #fb00ff !important; */
    }
    .input{
        flex-direction: column  !important  ;
    }
 }
 
@media all and (max-width: 480px) and (orientation: portrait) {
    *{
        font-size: 13px;
    }
    .main{
        width: 90vw !important;
        gap: 2rem !important;
    }
    .box{
        max-height: 30vh !important;
        max-width: 65vw !important;
    }
    .heading{
        /* color: #00ff1e !important; */
    }
    .input{
        flex-direction: column  !important  ;
    }
 }

/* Reset default margin and padding */
*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;

}

/* Set a background color */
body {
    /* overflow: hidden; */
    background: url("bg.jpg") no-repeat center center fixed; 
  /* -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover; */
  background-size: cover;
}

/* .main{
    margin: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */

.container{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* overflow: visible; */
}

/* .top{
    /* display: flex; */
    /* gap: 30px; */
/* }  */

/* Center the container */
.main {
    background-color: rgba(255, 255, 255, .15);  
    backdrop-filter: blur(0.625rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    width: 60vw;
    gap: 0.8rem;
    /* min-width: 40rem; */
    /* padding: 2rem 0; */
    /* font-family: Arial, sans-serif; */
    /* background-color: whitesmoke; */
    border-radius: 2rem;
}

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

/* Style the header */
.heading{
    font-size: 2.25rem;
    font-weight: 700;
    /* margin-bottom: 1.25rem; */
    color: whitesmoke;
    margin: 0;
}

.tagline{
    color: rgba(245, 245, 245, 0.859);
    font-size: 0.75rem;
    margin: 0;
}

/* Style the file input */
#inputImage {
    /* margin-bottom: 1.25rem; */
    padding: 0.625rem;
    border: 0.125rem solid #333;
    border-radius: 0.313rem;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

/* Style the file input hover effect */
#inputImage:hover {
    background-color: #eee;
}

#refreshButton{
    /* margin-top: 0.625rem; */
}

/* Style the output text */
#outputText {
    font-size: 1.3rem;
    font-weight: 400;
    /* margin-top: 1.25rem; */
    color: whitesmoke;
}
.output{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* Style the confidence text */
#confidence {
    font-size: 1.1rem;
    /* margin-top: 0.625rem; */
    color: rgb(225, 221, 221);
}

/* Style the output image */
#outputImage {
    width: 100%;
    height: 100%;
    /* margin-top: 30px; */
    border: 0.063rem solid #ccc;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    border-radius: 0.313rem;
    /* aspect-ratio: auto; */
    object-fit: cover;
}

.input{
    display: flex;
    gap: 1rem;
}

.box{
    /* max-width: 60vw;
    max-height: 40vh; */
    /* object-fit: contain; */
}

.me{
    color: #000000;
    /* position: fixed;
    bottom: 5vh; */
    margin-top: 1rem;
}

#learnMoreButton{
    color: #000000;
    font-weight: 600;
    font-size: 1.35rem;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above everything */
    display: none; /* Initially hidden */
}

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

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


