@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

*{
    box-sizing: border-box;
}

@media (max-width: 480px) { 
    body {
        font-size: calc(20px - 10px);
        
      }
      .lg-gif{
        width: calc(30dvw - 1dvw);
        border: solid;
        border-radius: 10px;
        
    }
    
}

body {
    margin: 0 auto;
    background: url("https://images.pexels.com/photos/13553571/pexels-photo-13553571.jpeg") no-repeat center center fixed;
    background-site: cover;
    aspect-ratio: 16 / 9;
    font-family: 'Syne', sans-serif;
}

#langForm, #learnForm{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.langInput, .learnInput{
    height: 40px;
    width: auto;
    border: solid 1px black;
    border-radius: 4px;
}

.filterInput{
    height: 40px;
    width: 66%;
    border: solid 1px black;
    border-radius: 4px;
}

#time-input, #grammar-input, #mood-input, #type-input{
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    text-decoration: none;
    padding: 8px;
    border-color: #000000;
    outline-style: none;
    width: 66%;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
}

#ans-container, #ans2-container{
    display:flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.abc-container, #history {
    border: solid;
    border-size: 4px;
    border-radius: 10px;
    background-color: #d2d2d2;
    margin: 0 auto;
    width:100%;
    height: 100%;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
.abc-input-container, .history-search-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.abc-input-container{
    flex-direction: column;
    align-items: center;
}


.abc-text{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 5px;
}

.popup-body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.container-MAIN{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    justify-content: center;
    padding: 10px;
    gap: 10px;
    width: 95dvw;
}

.container{
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: rgba( 0, 0, 0, .5);
}


h1,h2,h3,h4,h5,h6 {
    margin: 0;
    padding: 0;
}

.note{
    font-size: 3.5vw;
}


hr {
    width: 80vw;
    height: 1px;
    background-color: black;
    border: none;
}

#params-container{
    display:flex;
    justify-content: center;
    align-items:center;
    text-wrap: pretty;
    padding: 10px 0px;
    font-size: 130%;    
    font-weight: 500;
}

.lg-gif{
    width: 30%;
    border: solid;
    border-radius: 10px;
    
}

.lg-img{
    width: 70%;
    border: solid;
    border-radius: 10px;
    
}

.welcome-container{
    text-wrap: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba( 145,145, 145, .9);    
    border: solid;
    border-color: black;
    border-radius: 10px;
    padding: 10px;
    font-size: 3vw; 
}
.welcome-container > *{
    width: max-content;
}
.alr{
    display: flex;
    text-wrap: balance;
    width: 70%;
    margin: 10px auto;
}

.api-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba( 145,145, 145, .9);    
    border: solid;
    border-color: black;
    border-radius: 10px;
    padding: 10px;
    font-size: 3vw; 
}

.popup-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba( 145,145, 145, .9);    
    border: solid;
    border-color: black;
    border-radius: 10px;
    padding: 10px;
    padding-top: 30px;
    padding-bottom: 30px;
}


.img-container{
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
    width: 100%;
    margin: 10px;
    margin-bottom:20px;
}

button {
    background-color: rgba( 145,145, 145, .8);
    border-radius: 10px;
    padding:8px;   
    cursor: pointer;
    width: auto;
    height: 35px;
    padding: 0 5px;
}


button:hover{
    background-color: white;
    transition: .5s;
}

.submit-btn {
    display: flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-size: 100%;
}

.title{
    text-wrap: nowrap;
    margin-top: 1rem;;
    margin-bottom: 1rem;
}
.title:hover{
    text-decoration: underline;
    
}

.--title-lang {
    text-align: center;
    font-size: 400%;
}

.--title-lang:hover{
    text-decoration: underline;
}

#abc-button, #history-button{
    font-size: 10px;
    letter-spacing: 0.15em;
    width: min-content;
}

.button{
    color: black;
    border-style: solid;
    border-width : 1px;
    border-radius: 16px;
    text-decoration : none;
    padding : 4px;
    border-color : #000000;
    cursor: pointer;
    width: auto;
    margin: 0 auto
}

.link:hover{
    cursor:pointer;
    text-decoration: underline;
    color:blue;
    transition: 1s;
}

#noun-input, #history-search{
    width: 66%;
}

input {
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    text-decoration: none;
    padding: 8px;
    border-color: #000000;
    outline-style: none;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 5px;
}

.footer-container{
    background-color: #3d3d3d;
    padding: 10px 20px;
}
.footer-container > span{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
}
footer{
    position: fixed;
    bottom: 0;
    width: 100%;
}

.popup-mainContainer> div {
    display: none;
    opacity: 0;
}

/* LLM container styles */
.llm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    position: absolute;
    z-index: 1000;
    transition: all .5s ease;
    scale: 1;
}

.progress-bar-container {
    width: 80%;
    background: #333;
    height: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: rgba(73, 73, 73, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    background: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgb(255, 255, 255) 100%);
    transition: width 0.3s;
    border-radius: 10px;
    padding: 5px;
}
.model-name {
    font-size: 1.5em;
}

.progress-text{
    display: flex;
    flex-direction: row;
    width: auto;
    margin: 10px 12px;
    font-size: .8rem;
}


.llm-container .progress-bar-container,
.llm-container .model-name,
.llm-container .progress-text {
    transition: all 0.3s cubic-bezier(0.45, -1.36, 0.64, -0.58);  
}

.toggle-btn-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 2000;
}

/* Button styles */
.toggle-dialog-btn {
    text-align: center;
    background: #444;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
    animation: fadeInButton 0.3s ease-in-out;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Words (content) inside llm-container */
.llm-container-content {
    opacity: 0; /* Initially hide content */
    transition: opacity 0.5s ease-in-out;
}

/* When the container is open, make the words visible */
.llm-container.open .llm-container-content {
    opacity: 1; /* Make the content visible */
}

/* Scale effect for children when closing */
.llm-container.closing .llm-container-content {
    transform: scale(0); /* Shrink children */
    transition: transform 0.5s ease-in-out; /* Smooth scaling */
}

/* Close button styles */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: block; /* Ensure the close button is displayed */
}