:root {
    --bgColor: #0c111c;
    --text: #fff;
    --bgModal: #121a29;
    --borderModal: #465063;
    --topLine: #212f44;
    --lines: #475774;
    --btnDark: #192232;
    --blue: #2b90fe;
    --blueDark: #2b91fe56;
    --lightBtn: #232c43;
    --secondary: #192232;
    --textSecondary: #677a9d;
    --textDark: #677a9d;
    --line: #273140;
    --iconColor: #475774;
    --slotHover: #10131fbf;
    --accent: #1a2534;
    --blueSecond: #1e6cfd;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bgColor);
    color: var(--text);
    text-align: center;
    margin: 5%;
    padding: 0;
}

#background {
    width: 100vw;
    height: calc(100vw * 0.1);
    background-image: url('../images/rules.jpg');
    background-size: 86% auto;
    background-repeat: no-repeat;
    background-position: left center;
    cursor: pointer;
}

@media (max-width: 768px) and (orientation: portrait) {
    #background {
        background-image: url('../images/rules2.jpg');
        width: calc(100vw + 2px);
        height: calc((200vw + 2px) * 0.1);
        margin-left: -1px;
        margin-right: -1px;

    }
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
    color: var(#fff);
    background-color: var(--bgModal);
    padding: 10px;
    display: inline-block;
    border-radius: 10px;
}

.ruleContainer {
    width: 80%;
    margin: 20px auto;
}

.ruleBlock {
    background: var(--bgModal);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    border: 1px solid var(--borderModal);
    text-align: left;
}

.ruleBlock h3 {
    color: var(#fff);
    margin-bottom: 10px;
}

.ruleBlock p {
    color: var(--textSecondary);
    font-size: 14px;
    line-height: 1.5;
}

.ruleBlock,
h1,
h2,
h3 {
    transition: transform 0.7s ease-in-out;
}

.ruleBlock:hover,
h1:hover,
h2:hover,
h3:hover {
    transform: scale(1.01);
}