/* css/ascii.css */

/* Disable all clickable/selectable elements except buttons */
body {
    pointer-events: none;
    user-select: none;
    background-color: #000;
    color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    transition: background 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* ASCII view container */
#asciiView {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
    transition: opacity 0.5s ease-in-out; /* Added transition */
}

.hidden {
    opacity: 0;
}

/* Solid black background with fade-out effect behind ASCII output */
#asciiArtWrapper {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    padding: 20px;
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* ASCII Output Styling */
#asciiOutput {
    font-family: monospace;
    font-size: 6px;
    line-height: 1;
    white-space: pre;
    letter-spacing: 2;
}

/* Background ASCII Layer */
#asciiBackground {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    font-family: monospace;
    font-size: 10px;
    white-space: pre;
    line-height: 1;
    color: rgba(207, 207, 207, 0.063);
    background-color: #000;
    overflow: hidden;
    pointer-events: none;
}

/* Bottom Right Buttons */
.bottom-right-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    pointer-events: auto;
    user-select: auto;
}

.home-btn,
.calendar-btn {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-btn:hover,
.calendar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.home-btn img,
.calendar-btn img {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

/* Bottom Left Button */
.bottom-left-button-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    pointer-events: auto;
    user-select: auto;
}

.plus-btn {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.plus-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.plus-btn img {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

/* Style for the file input container */
.file-upload-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    pointer-events: auto;
    user-select: auto;
    display: flex;
    align-items: center;
}

/* Hide the default file input */
#imageUpload {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Keep it behind the styled button */
    cursor: pointer;
}

/* Style for the custom file choose button */
.choose-file-btn {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.choose-file-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.choose-file-btn img {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    #asciiOutput {
        font-size: 4px;
        padding: 5px;
    }

    .home-btn,
    .calendar-btn,
    .plus-btn,
    .choose-file-btn {
        padding: 8px;
    }

    .home-btn img,
    .calendar-btn img,
    .plus-btn img,
    .choose-file-btn img {
        width: 35px;
        height: 35px;
    }

    #asciiBackground {
        background-size: cover;
    }

    #asciiView {
        margin-top: -15%;
    }

    .file-upload-wrapper {
        top: 10px;
        left: 10px;
        opacity: 0;
    }

    .bottom-left-button-container,
    .bottom-right-buttons-container {
        bottom: 10px;
        gap: 5px;
    }
}

@media (min-width: 769px) {
    #asciiOutput {
        font-size: 6px;
        padding: 10px;
    }

    .home-btn,
    .calendar-btn,
    .plus-btn,
    .choose-file-btn {
        padding: 12px;
    }

    .home-btn img,
    .calendar-btn img,
    .plus-btn img,
    .choose-file-btn img {
        width: 45px;
        height: 45px;
    }

    #asciiBackground {
        background-size: contain;
    }

    .file-upload-wrapper {
        top: 20px;
        left: 20px;
        opacity: 0;
    }

    .bottom-left-button-container,
    .bottom-right-buttons-container {
        bottom: 20px;
        gap: 10px;
    }
}