* {
    box-sizing: inherit;
    touch-action: manipulation;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    color: inherit;
    overflow-x: hidden;
    overflow-y: auto;
    letter-spacing: 0.05vw;
}
html {
    scroll-behavior: smooth;
  }
#rulesContainer {
    position: relative;
    z-index: 1;
    padding: 2vw;
    top: 3%;
    left: 10%;
    width: 80%;
    height: 85%;
}

.rulesSection {
    overflow: hidden;
    background-image: url('img/mainRules.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 2vw;
    margin-bottom: 3vw;
    border-radius: 0.5vw;
    box-shadow: 0 0 1vw rgba(0,0,0,0.4);
}
.rulesSection p,
.rulesSection span {
    font-family: Arial, Helvetica, sans-serif !important;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
}
::-webkit-scrollbar {
    width: 5px;
    scrollbar-width: thin;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #969696a6;
    scrollbar-color: #969696a6 transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(167, 167, 167);
}

h2 {
    font-size: 1.7vw;
    margin-bottom: 0.2vw; /* větší mezera pod H2 */
    color: rgb(224, 224, 224);
}
h3 {
    font-size: 1.3vw;
    margin-bottom: 0.2vw;
    margin-top: 0.5vw;
    color: rgb(224, 224, 224);
    padding-left: 5%;
}

p {
    margin-top: 0.3vw;
    margin-bottom: 2vw;
    line-height: 1.0vw;
    padding-left: 7%;
    font-size: 0.8vw;
    color: rgb(224, 224, 224);
}

.rule-red {
    color: rgb(212, 155, 155);
    font-weight: bold;
}

.rule-green {
    color: rgb(155, 212, 160);
    font-weight: bold;
}
