@font-face {
    font-family: 'Area InkTrap';
    src: url("../fonts/AreaInktrapSemibold/AreaInktrap-Semibold.woff2") format('woff2'),
        url("../fonts/AreaInktrapSemibold/AreaInktrap-Semibold.woff") format('woff');
    font-weight: 400;
    font-style: normal;
}

.lang-en {
    display: block;
}
.lang-nl {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Area InkTrap';
    overflow: hidden;
    color: #00f256;
}

body::before {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(28, 98, 42, 1), rgba(0, 0, 0, 1) 18%);
    pointer-events: none;  
    z-index: -1; 
}

#container {
    display: flex;
    justify-content: space-between;
    /* Space between the two columns */
    gap: 20px;
    /* Space between columns */
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#prompt-interface {
    flex: 1;
    width: 500px;
    margin: 40px 0px;
}

#text2imagepanel {
    flex: 3;
    margin: 0px 0px;
    height: 100%;
}



#text2image_output {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
}

#output-image {
    opacity: 0; /* Start invisible */
    transition: opacity 0.5s ease-in-out; /* Smooth transition for fading */
}

#output-image.fade-in {
    opacity: 1; /* Fully visible */
}

#output-image.fade-out {
    opacity: 0; /* Fully invisible */
}

.image_model_div {
    height: 100%;
    display: flex;  /* Enables centering */
    /* justify-content: center; Horizontal centering */
    align-items: flex-end; 
    overflow: hidden; /* Prevents overflow */
    margin-right: 10%;

}

.image_model_div img {
    height: 100%;  /* Occupies full height */
    width: auto;   /* Maintains aspect ratio */
    max-width: 100vh; /* Ensures the image remains square based on viewport height */
    max-height: 100vh; /* Limits height to viewport height */
    object-fit: contain; /* Ensures the image scales properly within bounds */
    align-items: flex-end; 

}

#sentence {
    margin: 75px 0 0 0px;
    position: relative;
    text-align: left; /* Aligns buttons to the left */
    overflow: block;
    /* mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) calc(100% - 150px), rgba(0, 0, 0, 0)); */
    /* -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) calc(100% - 150px), rgba(0, 0, 0, 0)); */

}

h1 {
    font-size: 30px;
    margin: 0px 0px 4px 0px;
}

.button {
    background-color: #005927;
    border: none;
    color: black;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 26px;
    font-weight: 400;
    margin: 15px 0; 
    border-radius: 5px;
    white-space: nowrap; 
    text-align: left; 
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Active button styles */
.button.active {
    background-color: #0fec6a; /* Change to a ligther green */
    transform: translateX(40px); /* Move slightly to the right */
}

.indented {
    margin-left: 40px;
    position: relative; 
}

.indented-active {
    margin-left: 80px;
    position: relative; 
}


.small {
    font-size: 16px;
}

#text2image_queue_progress_bar {
    background-color: #0fec6a;
    height: 5px;
    width: 0%;
    bottom: 0px;
    margin: -4px 0 0px 0;
    position: absolute;
}

/* === Language dropdown === */
#language-toggle-container {
    padding: 3px ;
    display: flex;
    align-items: center;
    z-index:9999 ;
}

/* Base select styling */
#language-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    font-family: 'Area InkTrap';
    font-size: 16px;
    line-height: 1;
    color: #00f256;                 /* green text */
    background: #000;               /* black background */
    border: none;                   /* no border */
    border-radius: 6px;
    padding: 8px 40px 8px 12px;     /* right padding for arrow */
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;

    /* Custom arrow (green) */
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"%3E%3Cpath fill="%2300f256" d="M7 10l5 5 5-5z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

/* Hover/active feedback */
#language-select:hover {
    box-shadow: 0 0 0 1px #0fec6a inset; /* subtle inner glow using your lighter green */
}

/* Disabled state */
#language-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Option styling (note: popup styling varies by OS/browser) */
#language-select option {
    background: #000;   /* many browsers respect this */
    color: #00f256;
    z-index: 999;
}


/* Align header and toggle */
#scenario-header {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between text and toggle */
}

.header-icon {
  width: 54px;
  flex: 0 0 54px; /* reserves space; no wrap-through */
}

