#TradingPost {

    .insurance-banner {
        position: absolute;
        color: black;
        font-weight: bold;
        font-size: 32px;
        left: 400px;
        top: 360px;
        width: 270px;
        text-align: center;
    }

    .scrollView {
        position: absolute;
        width: 1024px;
        height: 768px;
        left: 0px;
        top: 0px;
        background-image: url('../images/tradingpost/background.png');

        .rollover {
            position: absolute;
            border-radius: 30px;
            width: 300px;
            height: 300px;

            &.automart {
                top: 280px;
                right: 10px;
            }

            &.insurance {
                top: 260px;
                left: 380px;
            }

            &.supply-exchange {
                top: 280px;
                left: 10px;
            }
        }

        .service {
            position: absolute;
            filter: brightness(50%);

            &.tab-highlighted {
                filter: brightness(100%);
                outline: none;
            }

            &.automart {
                width: 478px;
                height: 675px;
                top: -20px;
                right: 0px;
                background-image: url('../images/tradingpost/auto.png');
            }

            &.insurance {
                width: 380px;
                height: 318px;
                top: 235px;
                left: 305px;
                background-image: url('../images/tradingpost/insurance.png');
            }

            &.supply-exchange {
                width: 389px;
                height: 397px;
                top: 250px;
                left: -20px;
                background-image: url('../images/tradingpost/supply.png');
            }

        }

    }

    .instructions {
        position: absolute;
        top: 10px;
        left: 350px;
        right: 350px;
        background-color: rgba(0, 0, 0, 0.9);
        color: rgb(62, 202, 169);
        border: 4px solid rgb(20, 100, 120);
        font-size: 20px;
        padding: 10px 20px 10px;
        border-radius: 10px;
        text-align: center;

        &:before {
            content: '';
            display: block;
            background: transparent;
            position: absolute;
            top: -24px;
            height: 10px;
            width: 100px;
            left: Calc(50% - 60px);
            border: 10px solid rgb(20, 100, 120);
            border-bottom: 0px;
            /*            border-top:0px;*/
        }
    }

    .button-rack {
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 130px;
        height: 97px;
        display: flex;
        gap: 10px;
        justify-content: space-around;
        align-items: center;

        .button {
            width: 165px;
            height: 97px;
            background-image: url('../images/buttons/button-green.png');
            font-size: 24px;
            padding: 20px;
            text-align: center;
        }
    }

}

#Education {
    width: 1024px;
    height: 768px;
    background-image: url('../images/education/background-en.png');
}

#Insurance {
    width: 1024px;
    height: 768px;
    background-image: url('../images/insurance/background.png');

    .insurance-banner {
        position: absolute;
        color: black;
        font-weight: bold;
        font-size: 55px;
        left: 240px;
        top: 227px;
        width: 388px;
        height: 73px;
        text-align: center;
        display: grid;
        align-items: center;
        justify-items: center;
    }

}

#Education,
#Insurance,
#AutoMart {
    .dialog {
        position: absolute;
        left: 50px;
        right: 50px;
        top: 50px;
        background-color: white;
        border-radius: 20px;
        padding: 20px;
        font-size: 26px;
        color: var(--body-color);
        box-shadow: 4px 4px 4px 1px rgba(0, 0, 0, .4);


        &:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 70%;
            width: 0;
            height: 0;
            border: 43px solid transparent;
            border-top-color: #ffffff;
            border-bottom: 0;
            border-right: 0;
            margin-left: -21.5px;
            margin-bottom: -43px;
        }

        &.horizontal {
            display: flex;
            gap: 40px;
            align-items: center;
            justify-content: space-between;
        }

        &.vertical {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;

            :nth-child(2) {
                display: flex;
                justify-content: center;
                gap: 20px;
            }
        }

        .button.tab-highlighted {
            outline-color: black;
        }

    }



}

#Education .dialog:after {
    left: 50%;
}

#Insurance .dialog:after {
    left: 20%;
}

#Realty {
    width: 1024px;
    height: 768px;
    background-image: url('../images/rent/index-backdrop-en.png');

    .home-listing {
        position: absolute;
        top: 245px;
        bottom: 120px;
        left: 60px;
        right: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-column-gap: 20px;
        align-items: start;

        .home-entry {
            position: relative;
            background-color: white;
            color: black;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            height: 100%;

            .home-title {
                color: white;
                font-weight: bold;
                font-size: 30px;
                width: 100%;
                height: 170px;
                border: 1px solid black;
                background-color: #333;
                background-size: cover;
                padding: 10px;
            }

            .home-stat {
                display: flex;
                justify-content: space-between;
            }

            .home-rent {
                font-size: 30px;

                :nth-child(2) {
                    font-weight: bold;
                }
            }

            .home-minimum-credit {
                font-size: 20px;

                :nth-child(2) {
                    font-weight: bold;
                }
            }

            .more-info-container {
                align-self: center;
            }

            .button {
                outline-color: black;
            }

            .current-home {
                background-color: rgba(0, 0, 0, 0.75);
                color: white;
                position: absolute;
                left: 0px;
                top: 0px;
                right: 0px;
                bottom: 0px;
                background-image: url('../images/rent/current.png');
                background-repeat: no-repeat;
                background-position: center;
                font-size: 22px;
                display: flex;
                flex-direction: column-reverse;
                padding: 40px;
                text-align: center;
                border: 2px solid black;
                font-weight: bold;
            }

        }

        #home-entry-0 .home-title {
            background-image: url('../images/rent/home-0-photo.png');
        }

        #home-entry-1 .home-title {
            background-image: url('../images/rent/home-1-photo.png');
        }

        #home-entry-2 .home-title {
            background-image: url('../images/rent/home-2-photo.png');
        }

    }

}

#HomeDetail {
    width: 1024px;
    height: 768px;
    background-image: url('../images/rent/detail-backdrop-en.png');

    #more-homes {
        position: absolute;
        right: 40px;
        top: 45px;
    }

    .home-title {
        position: absolute;
        bottom: 555px;
        left: 90px;
        width: 410px;
        font-family: var(--heading-font-family);
        font-weight: bold;
        text-align: center;
        font-size: 56px;
    }

    .home-detail {
        position: absolute;
        top: 220px;
        bottom: 120px;
        left: 90px;
        width: 410px;
        color: black;

        .home-desc {
            font-size: 20px;
        }

        .credit-score-warning {
            background-color: rgba(255, 0, 0, 0.25);
            padding: 20px;
            border-radius: 20px;
        }

    }

    .home-display {
        width: 480px;
        height: 400px;
        border: 10px solid white;
        box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.6);
        position: absolute;
        right: 30px;
        top: 150px;
        transform: rotate(5deg);

        &.home-display-0 {
            background-image: url('../images/rent/home-0-photo.png');
        }

        &.home-display-1 {
            background-image: url('../images/rent/home-1-photo.png');
        }

        &.home-display-2 {
            background-image: url('../images/rent/home-2-photo.png');
        }
    }

    .button-bar {
        display: flex;
        gap: 20px;
        justify-content: center;

        .tab-highlighted {
            outline-color: black;
        }

    }
}

#trading-post-exit,
#home-exit,
#automart-exit,
#realty-exit {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 80px;
    height: 81px;
    background-image: url('../images/buttons/button_exit.png');
    background-repeat: no-repeat;
    text-transform: uppercase;
    display: grid;
    align-items: center;
    justify-items: center;
    padding-left: 6px;
    padding-right: 0px;
    font-size: 12px;
    color: black;
    font-weight: bold;
    text-align: center;
    filter: brightness(0.8);
    transform-origin: left top;
    transition: all .2s ease-in-out;

    &.tab-highlighted {
        filter: none;
        outline: none;
        transform: scale(1.1);
        filter: brightness(1.1);
    }
}

#PolicyDetail {
    width: 1024px;
    height: 768px;
    background-image: url('../images/insurance/insurance-detail.png');
    padding-left: 410px;
    padding-right: 95px;
    padding-top: 70px;
    padding-bottom: 170px;
    color: black;
    display: flex;
    gap: 20px;
    flex-direction: column;
    justify-content: space-around;

    .policy-title {
        font-size: 40px;
        text-align: center;
        border-bottom: 4px dashed black;
        font-weight: bold;
    }

    .policy-description,
    .action-description {
        font-size: 24px;
    }

    .button-bar {
        display: flex;
        gap: 20px;
        justify-content: center;

        .tab-highlighted {
            outline-color: black;
        }
    }
}

#AutoMart {
    position: absolute;
    width: 1024px;
    height: 768px;
    background-image: url('../images/auto/backdrop-en.png');

    .instructions {
        position: absolute;
        top: 10px;
        left: 350px;
        right: 350px;
        background-color: rgba(0, 0, 0, 0.9);
        color: rgb(62, 202, 169);
        border: 4px solid rgb(20, 100, 120);
        font-size: 20px;
        padding: 10px 20px 10px;
        border-radius: 10px;
        text-align: center;
        animation-duration: 0.5s;
        animation-direction: forwards;
        animation-iteration-count: once;
        animation-fill-mode: both;
        animation-timing-function: ease-out;
        animation-name: automart-instructions;

        &:before {
            content: '';
            display: block;
            background: transparent;
            position: absolute;
            top: -24px;
            height: 10px;
            width: 100px;
            left: Calc(50% - 50px);
            border: 10px solid rgb(20, 100, 120);
            border-bottom: 0px;
            /*            border-top:0px;*/
        }
    }

    .auto {
        position: absolute;
        width: 420px;
        height: 230px;
        transform: scale(0.95);
        filter: brightness(0.7);
        border-radius: 30px;

        &.tab-highlighted {
            transform: scale(1.0);
            filter: brightness(1.0);
        }

    }

    #auto-4 {
        left: -50px;
        bottom: 250px;
        background-image: url('../images/auto/auto-4.png');
    }

    #auto-3 {
        left: 200px;
        bottom: 200px;
        background-image: url('../images/auto/auto-3.png');
    }

    #auto-2 {
        left: 410px;
        bottom: 180px;
        background-image: url('../images/auto/auto-2.png');
    }

    #auto-1 {
        left: 650px;
        bottom: 150px;
        background-image: url('../images/auto/auto-1.png');
    }

    #salesman {
        position: absolute;
        width: 344px;
        height: 488px;
        right: 0px;
        bottom: 0px;
        transform: translateX(172px);
        opacity: 0;
        transition: all 0.5s ease;
        background-image: url('../images/auto/salesman.png');

        &.approach {
            transform: translateX(0px);
            opacity: 1.0;
        }

    }

}

#CarDetail {
    position: absolute;
    width: 1024px;
    height: 768px;
    background-image: url('../images/auto/auto_prompt.png');

    padding-left: 85px;
    padding-right: 415px;
    padding-top: 120px;
    padding-bottom: 140px;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 30px;

    ul {
        margin: 0px;
    }

    .car {
        position: absolute;
        right: 20px;
        top: 40px;
        width: 420px;
        height: 230px;
        transform: scale(1.05);
        transform-origin: 100% 0%;

        &.auto-1 {
            background-image: url('../images/auto/auto-1.png');
        }

        &.auto-2 {
            background-image: url('../images/auto/auto-2.png');
        }

        &.auto-3 {
            background-image: url('../images/auto/auto-3.png');
        }

        &.auto-4 {
            background-image: url('../images/auto/auto-4.png');
        }
    }
}
#CarDetail {
     & .car-title {
        font-family: var(--heading-font-family);
        font-weight: bold;
        font-size: 48px;
        border-bottom: 3px dashed black;
         line-height:1.2;
    }

    & .car-description {
        font-style: italic;
        padding-right: 50px;
        /* Some cars overlap the dialog	*/
    }

    & .button-bar {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding:32px 0 14px;
    }
    & div {
        /*font-size:42px;*/
    }
    & ul {
        list-style:square;
    }

    & .button.tab-highlighted {
        outline-color: black;
    }

}

@keyframes automart-instructions {
    0% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(0px);
    }
}
