@import url("https://use.typekit.net/xke2zip.css");


#landing-page h1{
    font-family: "guildhall", sans-serif;
    font-weight: 500;
    font-style: italic;
}

/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

.page {
    display: none;
    height: 100%;
}

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

.upload-container, .controls {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF6231;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.drop-zone {
    border: 2px dashed #ccc;
    padding: 2rem;
    margin-top: 1rem;
    cursor: pointer;
}

/* Editor Page Styles */
.editor-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 90%;
}

.canvas-container {
    /* flex-basis: 100%; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 20px;
    /* flex: 1; */
}

.thumbnails-container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Responsive grid */
    gap: 10px;
    width: 100%;
}

/* Thumbnail Styling */
.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #f0f0f0; /* Optional */
}

.thumbnail:hover {
    border-color: #FF6231;
}

/* Controls Styling */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    position: fixed;
bottom: 0;

}

button {
    padding: 10px 20px;
    background-color: #FF6231;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#deleteBtn {
    background-color: #FF6231;
    transition: .2s;
}

#deleteBtn:hover {
    background-color: #ae0e0e;
}

/* Add unique styles to Back button if needed */
#backBtn {
    background-color: #FF6231; /* Black background for distinction */
}

#backBtn:hover {
    background-color: #b0350f; /* Darker black on hover */
}

/* Media Queries */

/* Extra-large screens (1200px and above) */
@media (min-width: 1200px) {
    .editor-container {
        flex-direction: row;
    }

    .canvas-container {
        width: 70%;
    }

    .thumbnails-container {
        width: 30%;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
    }
}

/* Large screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .editor-container {
        flex-direction: row;
    }

    .canvas-container {
        width: 70%;
    }

    .thumbnails-container {
        width: 30%;
        padding: 1rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for large screens */
    }
}



/* Small screens (up to 767px) */
@media (max-width: 767px) {
    #landing-page {
        padding: 100px 50px !important;
    }

    #landing-page h1 {
        margin-bottom: 50px !important;
    }

    .page {
        height: auto;
        overflow-x: hidden;
    }

    .editor-container {
        flex-direction: column;
        height: auto;
    }

    .canvas-container {
        width: 95%;
        padding: 10px 10px 0; 
        position: fixed;
        top: 0;
    }

    .thumbnails-container {
        width: 100%;
        padding: 10px;
        max-height: 46vh; /* Adjust thumbnail grid height */
        overflow-y:visible;
        margin-top: 100%;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr); /* Smaller thumbnails on mobile */
    }

    .controls {
        position: fixed;
        bottom: 0;
    }
}
