.model-background { position: absolute; left: 1em; bottom: 4dvh; right: 0; grid-column: 1/2; grid-row: 1/2; padding-bottom: 1px; overflow: hidden; background-color: var(--history-background-color); padding: 1em; margin-right: 0; border-radius: 1em; height: 45dvh; } .models { display: flex; flex-direction: column; height: 100%; overflow: hidden; overflow-y: scroll; } .models .title { display: flex; justify-content: center; align-items: center; font-size: 1.5em; margin-bottom: 0; } .model-dropdown { display: flex; justify-content: center; margin-bottom: 1em; /* Space between dropdown and models */ } .model-dropdown label { margin-right: 0.5em; /* Space between label and dropdown */ } .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5vh; width: 100%; /* Ensure grid takes full width */ } .model-box { display: flex; align-items: center; justify-content: center; color: var(--text-color); /* Use variable for text color */ border-radius: 5%; overflow: hidden; position: relative; height: 18vh; width: 18vh; margin: auto; /* Center each model box in the grid cell */ } .model-box.selected { box-shadow: 0 0 25px 5px var(--apply-button-hover-color); /* Glowing border */ border-color: var(--apply-button-hover-color); } .overlay { position: absolute; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); color: var(--overlay-text-color); /* Use variable for overlay text color */ display: flex; justify-content: center; align-items: center; font-size: large; transition: opacity 0.5s ease; pointer-events: none; opacity: 0; border-radius: 5%; } .overlay img { align-self: flex-end; justify-self: end; height: 3vh; width: 3vh; position: absolute; right: 15px; bottom: 15px; } .model-box:hover .overlay { opacity: 1; } /* Model background styles */ .code-model { background-image: url(/img/code.jpg); background-repeat: no-repeat; background-size: cover; } .math-model { background-image: url(/img/math.jpg); background-color: var(--background-color); background-position: center; background-repeat: no-repeat; background-size: contain; } .language-model { background-image: url(/img/language.jpg); background-color: #72cce4; background-repeat: no-repeat; background-size: contain; background-position: center; } .weather-model { background-image: url(/img/weather.jpg); background-color: #72cce4; background-repeat: no-repeat; background-size: contain; background-position: center; } .custom1-model, .custom2-model { background-image: url(/img/default.jpg); background-repeat: no-repeat; background-size: cover; background-position: center; } .model-dropdown { display: flex; flex-direction: column; /* Stack label and dropdown */ align-items: center; /* Center the content */ margin-bottom: 1em; /* Space between dropdown and models */ } .model-dropdown label { margin-bottom: 0.5em; /* Space between label and dropdown */ font-size: large; /* Increase font size for visibility */ color: var(--text-color); /* Use variable for text color */ } #model-select { padding: 0.5em; /* Padding for better touch targets */ border-radius: 5px; /* Rounded corners */ border: 1px solid var(--input-border-color); /* Border color */ background-color: var(--input-background-color); /* Background color */ color: var(--text-color); /* Text color */ font-size: medium; /* Font size for dropdown */ cursor: pointer; /* Cursor change on hover */ transition: all 0.3s ease-in-out, border 0.3s ease; /* Smooth transition */ } #model-select option:hover{ background-color: gray; }