﻿

* {
    box-sizing: border-box;
}

.top {
    display: flex;
    justify-content:space-between;
}

.container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 90%;
}

.outer-container {
    height: 100%;
}

.section {
    box-sizing: border-box;
}

body {
    min-height: calc(100vh - 65px);
    overflow-y: auto; /* allows scrolling when content exceeds the body's height */
    background-color: var(--background-color);
}

main {
    width: 100%;
    min-height: 100%;
    display: table-column;
    box-sizing: border-box;
    padding: 20px;
}

button {
    border-radius: 5px;
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.section-left {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* to center content horizontally */
    margin-top: 10%;
    margin-right: 1%;
}

.section-center {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center; /* to center content horizontally */
    height: 30%;
    margin-top: 10%;
    max-width: 400px;
}

.section-right {
    width: 30%;
    display: flex;
    justify-content: center; /* to center the image horizontally */
    margin-top: 10%;
}

/* New styles */
.input-button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* aligns children to the right */
    width: 100%; /* take up the full width of the parent */
    max-width: 400px;
}

.container-rightalign {
    margin-top: 2%;
    width: 30%; /* adjust width as needed to match the textarea */
    min-width: 90px;
    /* remove margin-left and margin-right from the original style */
}

.aspect-ratio-box {
    position: relative;
    width: 100%; /* you can adjust this to your liking */
    max-width: 400px;
    padding-bottom: 56.25%; /* For 16:9 ratio. Adjust if necessary */
}

    .aspect-ratio-box > textarea {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 5px;
        padding: 10px;
        resize: none;
        box-sizing: border-box;
        background-color: var(--secondary-color);
        color: var(--text-color);
    }


#aiModelDropdown {
    margin-bottom: 3px;
}

.box-scaling {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* aligns children to the right */
}


/* Media Query for Mobile Screens */
@media (max-width: 888px) {
    .top {
        flex-direction: column;
    }

    .section-center {
        order: 1;
        align-self: center;
    }

    .section-right {
        order: 2;
    }

    .section-left {
        order: 3;
    }

    .section {
        width: 100%;
    }
}

.design-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* space between items */
    justify-content: center;
    width: 90%; /* or whatever you like, can also be fixed like 1200px */
    margin-bottom: 100px; /* space below the chevron image */
}

.design-card {
    position: relative;
    flex: none; /* this will prevent them from growing or shrinking */
    box-shadow: 0 4px 6px var(--primary-color); /* optional shadow for cards */
    transition: transform 0.3s; /* smooth hover effect */
    width: 256px; /* Original size */
    height: 256px; /* Original size */
}

.design-card-thumbnail {
    position: relative;
    flex: none; /* this will prevent them from growing or shrinking */
    box-shadow: 0 4px 6px var(--primary-color); /* optional shadow for cards */
    transition: transform 0.3s; /* smooth hover effect */
    width: 128px;
    height: 128px;
}

.design-card-thumbnail img {
    width: 128px;
    height: 128px;
}

/* Responsive behavior for narrower screens */
@media screen and (max-width: 738px) { /* Adjust 600px to the appropriate breakpoint */
    .design-card {
        width: 128px; /* Half of the original size */
        height: 128px; /* Half of the original size */
    }

    .design-grid img {
        width: 128px; /* Half of the original size */
        height: 128px; /* Half of the original size */
    }
}

.design-card:hover {
    transform: translateY(-5px); /* lift the card a bit on hover */
}

.designs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* Adjust the following margin-top value as needed */
    margin-top: calc(23vh - 20px - 5vh); /* 100vh is the full height, 256px is the chevron height, and 5vh is the desired space above the chevron */
}



.chevron-image {
    position: relative;
    /* your existing styles, but remove the absolute positioning */
    width: 256px;
    height: 20px;
    margin-bottom: 5vh;
}

.bottom-text {
    position: relative;
}

/* Generated image block */
.gen-image {
    border-radius: inherit;
}

#generated-image-container {
    border-radius: 20px;
    transition: transform .5s ease, border-radius .75s ease;
    transform: scale(1);
}

    #generated-image-container:hover {
        transform: scale(1.1);
        border-radius: 0px;
    }

.grey-circle {
    cursor: pointer;
}

#predictedImageWrapper {
    border-radius: inherit;
}

/* Modal styles */
.image-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Make sure it appears on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Black background with opacity */
}

/* Modal content (the expanded image) */
.image-modal-content {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.floating-text {
    position: absolute;
    display: flex;
    width: 20%;
    height: auto;
    padding: 10px;
    opacity: .8;
    background-color: #292929;
    border-radius: 10px;
    color: var(--text-color);
    top: 100px;
    right: 100px;
    flex-direction: column;
    margin-bottom: 10px;
}


