.r1 {
    rotate: 90deg;
}
.r2 {
    rotate: 180deg;
}
.r3 {
    rotate: -90deg;
}

.D {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(45deg);
    transform-origin: center;
    scale: 1.4;
}
.D_M {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(26deg);
    transform-origin: bottom;
    position: relative;
    top: -15.5px;
    scale: 1.1;
}
.D_M_r1 {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(65deg);
    transform-origin: bottom;
    position: relative;
    left: -16px;
    scale: 1.1;
}
.D_M_mirror_r1 {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(65deg);
    transform-origin: bottom;
    position: relative;
    left: 16px;
    scale: 1.1;
}
.M_D {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(26deg);
    transform-origin: bottom;
    position: relative;
    top: 16px;
    scale: 1.1;
}
.M_D_flip {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(-65deg);
    transform-origin: bottom;
    position: relative;
    left: 16px;
    scale: 1.1;
} 
.M_D_mirror_flip {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(-65deg);
    transform-origin: bottom;
    position: relative;
    left: -16px;
    scale: 1.1;
}

.TH {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(0deg);
    transform-origin: bottom;
    position: relative;
    top: -30px;
}
.BH {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(0deg);
    transform-origin: bottom;
    position: relative;
    bottom: -30px;
}
.RV {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(90deg);
    transform-origin: bottom;
    position: relative;
    right: -30px;
    top: -2px;
}
.LV {
    width: calc(100px*1.35);
    border-bottom: 4px solid rgb(0, 0, 0);
    transform: rotate(90deg);
    transform-origin: bottom;
    position: relative;
    left: -32px;
    top: -2px;
}

.mirror {
    transform: rotate(-26deg);
}
.grid {
    display: grid;
    margin: 10px auto;
    width: max-content;
}
.grid_demo img {
    margin: 15px 0;
    width: 350px;
    height: auto;
    
}
.grid {
    grid-template-columns: repeat(10, 65px);
    grid-template-rows: repeat(10, 65px);
}
.grid-cell {
    border: 1px solid rgba(0, 0, 0, 0.211);
}

#tile-list {
    display: flex;
    flex-direction: row;
    margin: 2px;
    gap: 2px;
}
.tile {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    cursor: grab;
    border: 1px solid rgb(117, 188, 255);
}

.new_btn {
    margin-top: calc((-65*4.5px));
    padding: 20px;
    border: none;
    background-color: greenyellow;
    font-size: large;
    border-radius: 5px;
    cursor: pointer;
    transition: .4s;
}

.new_btn:hover {
    background-color: rgb(171, 255, 35);
}