/*
 ** Valley Steel LLC
 ** Site Developed by Agency 220
 ** For inquiries, visit: agency220.com
 */

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

main {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    height: -webkit-fill-available;
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
}

#right {
    overflow: auto;
    width: calc(100vw - 360px);
}

/**
* Image Area
*/
.image-container {
    position: relative;
    display: inline-block;
}

#houseImage {
    width: 100%;
    height: 100%;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

#overlay path,
#overlay polygon {
    opacity: .9;
    mix-blend-mode: multiply;
}

#twoStory #overlay #roof path,
#twoStory #overlay #roof polygon {
    opacity: .7;
}

.disclaimer {
    font-size: 12px;
    position: absolute;
    top: 10px;
    left: 230px;
    line-height: 12px;
}

/**
* Sidebar
*/

#sidebar {
    width: 360px;
    overflow-y: auto;
    min-height: 100vh;
}
    
label {
    margin-right: 10px;
}

/**
* Buttons
*/

.color-button {
    width: 45%;
    border: unset !important;
    margin: 5px;
    font-size: .9rem !important;
    border-radius: 10px !important;
}

.color-button.active {
    box-shadow: 0 0 0 .25rem rgba(255, 255, 255, 0.5) !important;
    outline: 0;
}

.popular {
    text-shadow: #000 0px 0 7px;
}

#selection-text {
    font-size: 1rem;
    font-weight: bold;
}

.selected-colors {
    position: absolute;
    top: 10px;
    left: 10px;
}

.selected-colors div {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    min-width: 200px;
}

.print-only {
    display: none;
}

@media print {
    @page {
        size: landscape;
    }
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    #right {
        overflow: hidden;
        width: auto;
    }
    .print-only {
        display: flex;
    }
    .image-container {
        max-width: 95vw;
    }
}

/* Loader styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it is on top */
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}