#layout_generator_block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 860px;
    aspect-ratio: 1.62;
    border-radius: 15px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
    background-color: #242428;
    cursor: grab;
    user-select: none;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7);
    border: 1px solid #ebebeb6c;
}
#layout_generator_container {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(50, 50px);
    grid-template-rows: repeat(50, 50px);
    background-color: green;
    background-image: 
        repeating-linear-gradient(
            0deg, 
            #ebebeb30, 
            #ebebeb30 3px, 
            transparent 3px, 
            transparent 50px  
        ),
        repeating-linear-gradient(
            90deg, 
            #ebebeb30, 
            #ebebeb30 3px, 
            transparent 3px, 
            transparent 50px);
    background-size: 50px 50px;
    background-blend-mode: overlay;
    transform-origin: center center;
    transition: transform 300ms;
    border: 5px solid #ebebeb;
    cursor: grab;
    user-select: none;
}
.layout_line_preview_point{
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
}
.layout_line_preview{
    background-color: white;
}
.vertical_line{
    width: 8px;
    height: 58px;
    position: relative;
    top: -6px;
    left: -2px;
    z-index: 2;
}
.horizontal_line{
    width: 58px;
    height: 8px;
    position: relative;
    top: -6px;
    left: -2px;
    z-index: 2;
}
.diagonal_1_line{
    clip-path: polygon(88% 0, 100% 0, 100% 12%, 12% 100%, 0 100%, 0 88%);
    width: 58px;
    height: 58px;
    position: relative;
    top: -6px;
    left: -2px;
    z-index: 2;
}
.diagonal_2_line{
    clip-path: polygon(88% 100%, 100% 100%, 100% 88%, 12% 0, 0 0, 0 12%);
    width: 58px;
    height: 58px;
    position: relative;
    top: -6px;
    left: -2px;
    z-index: 3;
}
.square_line{
    width: 51px;
    height: 51px;
    position: relative;
    top: -2.1px;
    left: 1.2px;
    z-index: 1;
}
.layout_text{
    font-family: 'Bebas Neue', cursive;
    color: white;
    font-weight: normal;
    font-size: 3em;
    text-align: center;
    user-select: none;
    padding-left: 15px;
    padding-right: 15px;
}
.triangle_1{
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.triangle_2{
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.triangle_3{
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.triangle_4{
    clip-path: polygon(0 0, 0 100%, 100% 0);
}
.line_animation{
    animation: scaleOpacity 400ms infinite alternate ease-in-out;
}
.square_animation{
    animation: squareAnimation 1000ms infinite alternate ease-in-out;
    background-image: 
        repeating-linear-gradient(
            -45deg, 
            #ebebeb30, 
            #ebebeb30 5px, 
            transparent 5px, 
            transparent 10px  
        );
}
.layout_button_container{
    width: 90%;
    max-width: 860px;
    margin-top: 30px;
    column-gap: 20px;
    row-gap: 20px;
}
.layout_button_text{
    font-family: 'Bebas Neue', cursive;
    color: black;
    font-weight: normal;
    font-size: 1.4em;
    text-align: center;
    position: relative;
}
.layout_button_text_0{
    margin-top: 6px;
}
.layout_button_text_1{
    top: 4px;
}
.layout_button_text_2{
    top: 2px;
    left: 1px;
}
.layout_select_text{
    font-family: 'Bebas Neue', cursive;
    color: black;
    font-weight: normal;
    font-size: 1.2em;
    text-align: center;
}
.layout_button{
    width: 100%;
    height: 40px;
    background-color: #ebebeb;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 200ms ease;
}
.layout_button_0{
    max-width: 860px;
}
.layout_button_1{
    max-width: 108px;
}
.layout_button_2{
    max-width: 40px;
}
.layout_button_3{
    max-width: 108px;
}
#layout_remove_object{
    width: 50px;
    height: 50px;
    border: 4px solid #ff0000b0;
    border-radius: 29px;
    background-color: #ff00004f;
    z-index: 6;
    position: absolute;
    pointer-events: none;
    box-shadow: 0 0 10px 2px #ff0000;
    transition: background-color 300ms ease;
}
#canvas_container{
    width: 100%;
    max-width: 860px;
    height: fit-content;
    margin-top: 25px;
    border: 1px solid #ebebeb6c;
    border-radius: 15px;
    background: repeating-linear-gradient(
                -45deg, 
                #ebebeb10, 
                #ebebeb10 5px, 
                transparent 5px, 
                transparent 10px
            );
    overflow: hidden;
    column-gap: 51px;
}
#canvas_house_layout{
    width: 100%;
    max-width: 354px;
    aspect-ratio: 2/3;
    border-left: 1px solid #ebebeb6c;
    border-right: 1px solid #ebebeb6c;
}
#share_layout_buttons_container{
    width: 100%;
    max-width: 354px;
    height: fit-content;
}
.canvas_layout_button_container{
    width: 100%;
    column-gap: 20px;
    row-gap: 20px;
}
.change_canvas_layout_color_button{
    width: 100%;
    max-width: 68px;
    height: 35.2px;
    background-color: #ebebeb;
    border: 3px solid #646464;
    border-radius: 15px;
    cursor: pointer;
    user-select: none;
}
.change_canvas_layout_color_button_responsive{
    width: 165.6px;
    column-gap: 20px;
    row-gap: 20px;
}
.change_canvas_layout_text_square{
    width: calc(100% - 15px);
    padding-left: 15px;
    background-color: #ebebeb;
    height: 36.8px;
    border-radius: 10px;
}
.change_canvas_layout_text{
    font-family: 'Bebas Neue', cursive;
    color: white;
    font-weight: normal;
    font-size: 1.5em;
    text-align: left;
    user-select: none;
}
.change_canvas_layout_text_container{
    width: 100%;
    margin-top: 24px;
    margin-bottom: 7px;
}
#share_layout_button_social{
    width: 100%;
    min-height: 60px;
    background-color: #ebebeb;
    margin-top: 25px;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
}
.share_layout_button_social_img{
    width: 40px;
    height: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.canvas_layout_button_check{
    width: 40px;
    height: 40px;
    background-color: #ebebeb;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 10px;
}
.canvas_layout_button_check_text{
    font-size: 2em;
    user-select: none;
    position: relative;
    top: -3px;
    left: 6px;
}
.canvas_layout_button_check_block{
    column-gap: 50px;
    row-gap: 15px;
    margin-top: 24px;
    margin-bottom: 25px;
}
.change_canvas_layout_span{
    font-family: 'Bebas Neue', cursive;
    color: gray;
    font-weight: normal;
    font-size: 0.7em;
    text-align: left;
    user-select: none;
    margin-left: 10px;
}
#download_house_layout_container{
    width: 100%;
    max-width: 860px;
    row-gap: 20px;
    column-gap: 20px;
    margin-top: 25px;
}
#download_house_layout{
    width: 90%;
    max-width: 720px;
    min-height: 50px;
    background: linear-gradient(to top right, #096709, #00a000);
    border: 1px solid #ebebeb6c;
    border-radius: 15px;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
    transition: 100ms;
}
#download_house_layout:hover{
    transform: scale(1.01);
}
#download_house_layout_text{
    font-size: 1.5em;
    font-family: 'Bebas Neue', cursive;
    color: white;
    font-weight: normal;
    text-align: center;
    margin-top: 9px;
}
#download_house_layout_format{
    width: 100%;
    max-width: 118.4px;
    min-height: 50px;
    background-color: white;
    border: 2px solid black;
    border-radius: 15px;
    user-select: none;
    cursor: pointer;
    font-size: 1.5em;
    font-family: 'Bebas Neue', cursive;
    color: black;
    font-weight: normal;
    text-align: center;
}
.share_layout_button_social_text{
    font-size: 1.5em;
    font-family: 'Bebas Neue', cursive;
    color: #14141a;
    font-weight: normal;
    text-align: center;
    margin: 15px 15px 0px 15px;
}
#house_layout_link_container{
    width: 90%;
    max-width: 860px;
    background-color: #242428;
    height: 40px;
    margin-top: 25px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #5d5d5d;
}
#house_layout_link_text_container{
    width: calc(100% - 101px);
    height: 40px;
    background-color: #242428;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}
#house_layout_link_text{
    all: unset;
    width: 100%;
    height: 40px;
    font-size: 1em;
    font-family: 'Exo 2', sans-serif;
    color: #cecece;
    font-weight: normal;
    text-align: left;
    padding: 9px 0px 0px 15px;
    resize: none;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#house_layout_link_text::-webkit-scrollbar {
    display: none;
}
#house_layout_link_copy{
    width: 100px;
    border-left: 1px solid #5d5d5d;
    cursor: pointer;
    user-select: none;
}
#house_layout_link_copy_symbol{
    font-size: 1.5em;
    font-family: 'Bebas Neue', cursive;
    color: white;
    font-weight: normal;
    text-align: center;
    position: relative;
    top: 5px;
    transition: 200ms;
}
#house_layout_link_copy:hover{
    background-color: #14141a;
}
#house_layout_link_copy:hover #house_layout_link_copy_symbol{
    transform: scale(1.1);
}
.layout_button:hover{
    background-color: #ababab;
}

@media (max-width: 426px) {
    #layout_generator_block{
        aspect-ratio: 1;
    }
}
@media (max-width: 769px) {
    #layout_generator_block{
        border-radius: 0px;
    }
    #canvas_container{
        border-radius: 0px;
    }
    #share_layout_buttons_container{
        margin-left: 25px;
        margin-right: 25px;
    }
    #layout_button_container{
        order: 1;
    }
    #house_layout_link_container{
        order: 2;
    }
    #canvas_container{
        order: 3;
    }
    #download_house_layout_container{
        order: 4;
    }
    #layout_generator_block{
        order: 5;
    }
}
@keyframes scaleOpacity {
    0% {
        transform: scale(0.98);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.02);
        opacity: 1;
    }
}
@keyframes squareAnimation {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}