* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --color-main: #263d42;
    --color-sec: #8e6c88;
    --color-third: #63c7b2;
    --color-fourth: #80ced7;
    --color-fifth: #ccdbdc;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: auto;
}
h1 {
    text-transform: capitalize;
}
.game {
    margin: 2rem;
}
.cont {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
}

.row {
    background-color: var(--color-fifth);
    height: 100px;
    width: 100px;
}

.square {
    height: 30px;
    width: 30px;
}

.tied1 {
    background-color: var(--color-sec);
}
.tied-1 {
    background-color: var(--color-third);
}

.bar {
    position: absolute;
    border: 1rem solid red;
    transition: 1000ms;
    background-color: red;
}

.horizontal {
    width: 450px;
    transform: translate(-13%, 100%);
}
.vertical {
    width: 450px;
    transform: rotate(90deg) translate(30%, 550%);
}
.diagonal {
    width: 450px;
}

.left {
    transform: translate(-40%, 100%) rotate(45deg);
}
.right {
    transform: translate(-40%, 100%) rotate(-45deg);
}

.hidden {
    display: none;
}

dialog {
    width: 300px;
    border: 2rem solid transparent;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

@media (width <=600px) {
    .row {
        /* background-color: var(--color-fifth); */
        height: 70px;
        width: 70px;
        gap: 0px;
    }
    .game {
        margin: 2rem 0px;
    }
}
