﻿@import '../common.scss';

GameRules {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;

    &.hide {
        opacity: 0;
    }

    .control-wrap {
        background-color: darken(rgb(233, 239, 232), 35%);
        padding: 12px;
        border-radius: 4px;
        justify-content: center;
        flex-shrink: 0;
        flex-grow: 1;
        box-shadow: 2px 2px 8px black;

        > .label {
            width: 50%;
            align-items: center;
            text-shadow: 1px 1px 1px black;
            margin: 0px;
        }
    }

    .side {
        flex-direction: row;
        flex-shrink: 0;
        width: 100%;
        gap: 12px;
        z-index: 100;

        > div {
            width: 50%;
        }
    }

    .upper-bar {
        position: absolute;
        width: 100%;
        padding-right: 32px;
        align-items: center;
        top: -32px;

        button {
            width: 135px;
            height: 50px;
            justify-content: center;
            align-items: center;
            border-radius: 4px;
            box-shadow: 2px 2px 8px black;
            text-shadow: 2px 2px black;
            font-size: 22px;

            &:hover {
                sound-in: ui_button_hover;
            }

            > i {
                font-size: 42px;
            }

            &.selected {
                background-color: darken(rgb(127, 79, 130), 35%);
            }
        }

        .close-button {
            width: 125px;
            height: 50px;
            justify-content: center;
            align-items: center;
            border-radius: 4px;
            background-color: rgb(200, 25, 0);
            box-shadow: 2px 2px 8px black;
            text-shadow: 2px 2px black;
            font-size: 22px;
            margin-right: 36px;

            &:hover {
                background-color: lighten(rgb(200, 25, 0), 25%);
                sound-in: ui_button_hover;
            }

            > i {
                font-size: 42px;
            }
        }

        .tabs {
            margin-left: 36px;
            margin-right: auto;
            gap: 24px;

            > button {
                background-color: rgb(127, 79, 130);

                &:hover {
                    background-color: lighten(rgb(127, 79, 130), 35%);
                }

                &.selected {
                    background-color: darken(rgb(127, 79, 130), 35%);
                }
            }
        }
    }

    .rules-title {
        left: -32px;
        padding: 8px 16px;
        background-color: rgb(66, 118, 62);
        margin-bottom: 8px;
        transform: skewX(-4px);
        box-shadow: 2px 2px 8px black;
        z-index: 10;

        > label {
            font-size: 48px;
            transform: skewX(4px);
            text-shadow: 2px 2px black;
        }
    }

    .scrollable {
        overflow: scroll;
        flex-direction: column;
        gap: 12px;
        margin-top: 64px;
        padding-bottom: 32px;
        width: 100%;
        flex-grow: 1;
    }

    .rules-container {
        position: absolute;
        flex-direction: column;
        width: 1400px;
        height: 600px;
        padding: 0 32px;
        border-radius: 8px;
        background-color: rgb(233, 239, 232);
    }
}
