.demo {
    background: #ebe4df;
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 2000px;
    height: 100vh;
    min-height: 700px;
    margin: auto;
    padding-top: 90px;
    padding-bottom: 15px;
    .demo-left {
	    background: #38261b;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        width: 500px;
        max-width: calc(100vw - 3em);
        padding: 15px;
        .progress {
            display: flex;
            width: 100%;
            gap: 4px;
            padding: 2px;
            margin-bottom: 15px;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
            .round {
                background: #4b4b4b;
                border: 1px solid #585858;
                flex: 1;
                height: 5px;
                border-radius: 10px;
                &.active {
                    background: #cf6317;
                    border: 1px solid #e27425;
                }
            }
            #round-2 { display: none; };
        }
        .buttons {
            gap: 10px;
            height: 60px;
            position: relative;
            #button-prev {
                position: absolute;
                top: 0px;
                left: 0px;
            }
            #button-next {
                position: absolute;
                top: 0px;
                right: 0px;
            }
            .price-roller {
                background: #a14b0d;
                background: #1f1916;
                color: white;
                position: absolute;
                top: 0px;
                left: 0px;
                padding: 5px 10px;
                border-radius: 5px;
                font-size: 17px;
                font-weight: 600;
                display: flex;
                align-items: center;
                overflow: hidden;
                .slot-machine {
                    display: flex;
                    height: 20px; /* Vastaa fontin korkeutta */
                    overflow: hidden;
                    margin-left: 5px;
                }
                .slot-column {
                    display: flex;
                    flex-direction: column;
                    transition: transform 1.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
                }
                .is-spinning {
                    filter: blur(1px);
                }
                .slot-digit {
                    height: 20px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            }
        }
        .step {
            position: relative;
            height: calc(100% - 80px);
            min-height: 0;
            h3 {
                color: #ebe4df;
                font-size: 21px;
                font-weight: 300;
                text-align: center;
                margin-bottom: 15px;
            }
            #step1-container {
                height: calc(100% - 40px);
                overflow: scroll;
                overscroll-behavior: contain;
                .cards-mobile-buttons {display: none;}
                .card-item {
                    background: #5a5a5a;
                    background-size: cover;
                    background-position: 50% 50%;
                    background-repeat: no-repeat;
                    height: 130px;
                    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
                    margin-bottom: 20px;
                    position: relative;
                    border-radius: 20px;
                    .image-overlay {
                        background: rgba(36, 25, 15, 0.7);
                        position: absolute;
                        display: flex;
                        flex-direction: column;
                        flex-wrap: nowrap;
                        justify-content: center;
                        align-items: center;
                        align-content: center;
                        top: 2px;
                        left: 2px;
                        width: calc(100% - 4px);
                        height: calc(100% - 4px);
                        border-radius: 20px;
                        .title {
                            color: #ebe4df;
                            font-size: 11px;
                            font-weight: 600;
                            text-transform: uppercase;
                            letter-spacing: 3px;
                            text-shadow: 0px 0px 25px #000;
                            margin-bottom: 5px;
                        }
                        h3 {
                            color: #ebe4df;
                            font-size: 26px;
                            font-weight: 500;
                            text-shadow: 0px 0px 25px #000;
                            margin-bottom: 5px;
                        }
                        .desc {
                            color: #ebe4df;
                            font-size: 16px;
                            font-weight: 300;
                        }
                    }
                    &.active {
                        box-shadow: inset 0 0 0 4px #cf6317;
                        filter: brightness(1.2);
                    }
                    &:hover {
                        cursor: pointer;
                        filter: brightness(0.85);
                    }
                }
            }
            #step3-container {
                height: calc(100% - 40px);
                overflow: scroll;
                overscroll-behavior: contain;
                .card-item {
                    background: #1f1916;
                    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
                    margin-bottom: 20px;
                    padding: 15px;
                    position: relative;
                    border-radius: 20px;
                    h3 {
                        color: #ebe4df;
                        font-size: 28px;
                        font-weight: 500;
                        margin-bottom: 10px;
                        text-align: left;
                    }
                    .price {
                        color: #e07122;
                        font-family: "Inter", sans-serif;
                        font-size: 19px;
                        font-weight: 600;
                    }
                    p {
                        color: #ebe4df;
                        font-size: 16px;
                        font-weight: 300;
                        margin-top: 3px;
                        margin-bottom: 3px;
                    }
                    &.active {
                        box-shadow: inset 0 0 0 2px #cf6317;
                        filter: brightness(1.2);
                    }
                    &:hover {
                        cursor: pointer;
                        filter: brightness(0.85);
                    }
                }
            }
            #step5-container {
                
            }
            .card-info {
                background: #1f1916;
                height: calc(100% - 40px);
                overflow: scroll;
                overscroll-behavior: contain;
                box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
                margin-bottom: 20px;
                padding: 15px;
                border-radius: 20px;
                .title {
                    color: #ebe4df;
                    font-size: 20px;
                    font-weight: 600;
                    margin-top: 3px;
                    margin-bottom: 3px;
                }
                p {
                    color: #ebe4df;
                    font-size: 16px;
                    font-weight: 300;
                    margin-top: 3px;
                    margin-bottom: 3px;
                }
            }
        }
    }
    .demo-right {
	    background: #38261b;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        position: relative;
        width: calc(100% - 550px);
        padding: 15px;
        padding-top: 75px;
        #demo-right-title {
            position: absolute;
            top: 13px;
            left: 15px;
            color: #ebe4df;
            font-family: "Playfair Display", serif;
            font-size: 19px;
            font-weight: 500;
        }
        #demo-right-desc {
            position: absolute;
            top: 45px;
            left: 15px;
            color: #ebe4dfaa;
            font-size: 15px;
            font-weight: 400;
        }
        #top-button-clear {
            position: absolute;
            top: 15px;
            right: 320px;
        }
        #top-button-live-demo {
            position: absolute;
            top: 15px;
            right: 15px;
        }
        .size-buttons {
            position: absolute;
            top: 15px;
            right: 170px;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: space-between;
            align-items: baseline;
            align-content: stretch;
            gap: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            padding: 4px;
            .size-button {
                padding: 2px 9px;
                border-radius: 30px;
                height: 33px;
                svg {margin-top: 6px;}
                &:hover {
                    cursor: pointer;
                    background: rgb(70, 58, 47);
                }
                &.active {
                    background: rgb(70, 58, 47);
                    border: 1px solid rgb(82, 67, 52);
                    filter: brightness(1.1);
                }
            }
        }
        #iframe-site {
            background: radial-gradient(rgb(57, 57, 61), rgb(30, 30, 31));
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 25px;
            zoom: 0.7;
            margin: auto;
            overscroll-behavior: contain;
            isolation: isolate; 
            -webkit-mask-image: -webkit-radial-gradient(white, black);
            transition: width 0.2s;
        }
        .iframe-tablet {
            width: 900px !important;
            max-width: 100%;
            zoom: 0.8 !important;
            margin: auto;
            transition: width 0.2s;
        }
        .iframe-mobile {
            width: 480px !important;
            max-width: 100%;
            zoom: 0.9 !important;
            margin: auto;
            transition: width 0.2s;
        }
    }
}
hr {
    color: #ebe4dfaa;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (min-width: 1200px) and (max-width: 1599px) {
    /*l*/
}
@media (max-width: 1199px) {
    /*sm*/
    .demo {
        padding-bottom: 10px;
        .demo-left {
            width: 600px;
            max-width: calc(100vw - 1em);
            padding: 10px;
            .progress { #round-2 { display: block; }; }
            .step {
                #step1-container {
                    height: calc(100% - 50px);
                    .cards-mobile-buttons {
                        background: #38261b;
                        display: block;
                        z-index: 5;
                        position: absolute;
                        left: 0px;
                        bottom: 0px;
                        width: 100%;
                        padding-top: 15px;
                        .cards-mobile-buttons-container {
                            background: #271b14;
                            display: flex;
                            gap: 10px;
                            border-radius: 30px;
                            padding: 0px 5px 0px 5px;
                            div {
                                color: white;
                                width: 50%;
                                height: 45px;
                                display: flex;
                                align-items: center;
                                align-content: center;
                                justify-content: center;
                                text-align: center;
                                border-radius: 30px;
                                font-weight: 500;
                                &.active {
                                    background: #cf6317;
                                }
                            }
                        }
                    }
                }
                #iframe-site-mobile {
                    background: radial-gradient(rgb(57, 57, 61), rgb(30, 30, 31));
                    width: 100%;
                    height: calc(100% - 57px);
                    border: none;
                    border-radius: 25px;
                    zoom: 0.9;
                    overscroll-behavior: contain;
                    isolation: isolate; 
                    -webkit-mask-image: -webkit-radial-gradient(white, black);
                }
            }
        }
        .demo-right {
            display: none;
        }
    }
}