* {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main {
    font-family: Noto, sans-serif;
    color: #565656;
    font-size: 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.buttons-wrap {
    margin-top: 40px;

    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.button {
    background: #52969d;
    padding: 12px 24px;
    font-size: 1.1rem;
    color: #E7F2F8;
    border: none;
    border-radius: 5px;
}

.button:hover, .button.stop {
    cursor: pointer;
    background: #565656;
}

.button-mute {
    width: 32px;
    object-fit: cover;
    filter: opacity(20%);
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.3ms linear;
}

.button-mute.active {
    filter: opacity(80%);
}


.save-button[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 90px;
    /*right: 10px;*/
    font-size: 1rem;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #565656;
    background: rgba(86, 86, 86, 0.8);
    transition: all 0.3s linear;
}

.button-result.active {
    background: #565656;
}


.info {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-end;
    justify-content: center;
}


.time-wrap, .moves-wrap {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
}

.timer-wrap {
    display: flex;
    flex-direction: row;
    /*gap: 1px;*/
    user-select: none;
}

.timer-style, .moves-number {
    font-size: 1.4rem;
    color: #52969d;
    width: 30px;
    text-align: center;
}

.timer-style.colon {
    width: 12px;
}

.button:nth-child(2).stop {
    background: #565656;
}


.field {
    /*width: 600px;*/
    /*height: 600px;*/
    background: #e7e7e7;
    border: 1px solid #b0b0b0;
    position: relative;
    /*margin: 0 auto;*/
}

.field.fixed {
    pointer-events: none;
    user-select: none;
}

.cell {
    box-sizing: border-box;
    /*width: 150px;*/
    /*height: 150px;*/
    border: 1px solid #b0b0b0;
    background: #ffffff;
    position: absolute;
    color: #909090;
    font-size: 1.3rem;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: all 0.3s ease-in;
    cursor: pointer;

    flex-shrink: 0;

}

.frame-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.frame-link-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;

}

.frame-description {
    /*font-size: 0.9rem;*/
    color: #52969d;
    font-size: 1.1rem;
    margin-bottom: 24px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.chosen-frame-title {
    color: #565656;
    font-size: 1.1rem;
    margin-right: 6px;

}

.first-number, .second-number {
    text-align: center;
    font-size: 1.2rem;

}

.frame-link {
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    padding: 10px 16px;
    background: transparent;
    text-decoration: none;
    color: #52969d;
    font-size: 1.1rem;
}

.frame-link:hover {
    cursor: pointer;
    color: #565656;
    box-shadow: 5px 5px 15px #e7e7e7;
}

#results {
    display: none;
}

#results.active {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52969d;
}


.results-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.title-result {
    margin-bottom: 10px;
}

.line-result {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    color: #565656;
    padding: 10px 0;
    width: 240px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
}

.line-result:hover {
    border: 1px solid #52969d;
}

.result_strong {
    margin-right: 20px;
}


@media screen and (min-width: 320px) and (max-width: 767px) {


    .buttons-wrap {
        margin-top: 20px;

        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 12px;
        column-gap: 10px;
        justify-content: center;
        align-items: center;

    }

    .save-button[title]:hover::after {
        content: attr(title);
        position: absolute;
        top: 70px;
        /*right: 10px;*/
        font-size: 1rem;
        color: #ffffff;
        padding: 10px 20px;
        border-radius: 5px;
        border: 1px solid #565656;
        background: rgba(86, 86, 86, 0.8);
    }


    .button-mute {
        width: 24px;
        object-fit: cover;
        filter: opacity(20%);
        padding: 9px 10px;
        border: 1px solid #565656;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3ms linear;
    }

    .button-mute:hover {
        box-shadow: 5px 5px 15px #b0b0b0;
    }

    .button-mute.active {
        border: 1px solid #e7e7e7;
    }


    .frame-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    .frame-link-wrap {
        /*width: 320px;*/
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;

    }

    .frame-description {
        color: #52969d;
        font-size: 1.1rem;
        margin-bottom: 16px;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .chosen-frame-title {
        color: #565656;
        font-size: 1.1rem;
        margin-right: 6px;

    }

    .first-number, .second-number {
        text-align: center;
        font-size: 1.2rem;

    }

    .frame-link {
        border: 1px solid #e7e7e7;
        border-radius: 5px;
        padding: 10px 16px;
        background: transparent;
        text-decoration: none;
        color: #52969d;
        font-size: 1.1rem;
    }

    .frame-link:hover {
        cursor: pointer;
        color: #565656;
        box-shadow: 5px 5px 15px #e7e7e7;
    }
}

