.main-content {
    text-align: left;
    padding-top: 50px;
}

.rules {
    padding-top: 30px;
}

.rules-content {
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    background: #f8f8fbf7;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #2b3052;
    counter-reset: section;
}

.rules h1 {
    text-align: center;
    font-size: 45px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    margin: 0px 0px 20px 0px;
    background: linear-gradient(180deg, #FEB603 0%, #E88A1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color:transparent;
}

.dates {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    color: grey;
    text-align:center;
    margin-bottom: 50px;
}

.rules h2 {
    font-size: 30px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    margin-top: 35px;
    margin-bottom: 10px;
    margin-left: 25px;
    counter-increment: section;
    counter-reset:sub-section;
    position: relative;
}

.rules h2::before {
    content: counter(section) ". ";
    position: absolute;
    left: -35px;
}

.rules h3 {
    font-size: 20px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    margin-top: 35px;
    margin-bottom: -10px;
    position: relative;
    counter-increment: sub-section;
    padding-left: 50px;
}

.rules h3::before {
    content: counter(sub-section, upper-alpha) ". ";
    position: absolute;
    left: 25px;
}

.rules p {
    font-size: 18px;
    padding-left: 30px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
    hyphens: auto;
}

.rules h3 + p {
    margin-left: 45px;
}

.rules-content a {
    background: linear-gradient(180deg, #FEB603 0%, #E88A1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-decoration: none;
}

.rules-content a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul ul {
    padding-left: 20px;
}

li {
    position: relative;
    padding-left: 45px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
    hyphens: auto;
}

li::before {
    content: '\2022';
    position: absolute; 
    left: 25px;
    color: #FEB603;
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='21' viewBox='0 0 23 21' fill='none'%3E%3Cg clip-path='url(%23clip0_441_259)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3078 0.106942C11.9084 -0.440432 11.0916 -0.440433 10.6922 0.106942L0.349316 14.2805C-0.093917 14.8879 0.262806 15.6319 0.848577 15.827L10.4666 2.53277C10.9776 1.82237 12.0224 1.82237 12.5334 2.53277L22.1514 15.827C22.7372 15.6319 23.0939 14.8879 22.6507 14.2805L12.3078 0.106942Z' fill='%23C08A04'/%3E%3Cpath d='M10.6922 5.10697C11.0916 4.5596 11.9084 4.5596 12.3078 5.10697L22.6507 19.2806C23.2638 20.1208 22.3462 21.2223 21.4091 20.771L11.9338 16.2089C11.6597 16.0769 11.3403 16.0769 11.0662 16.2089L1.59092 20.771C0.653774 21.2223 -0.2638 20.1208 0.349317 19.2806L10.6922 5.10697Z' fill='%23FEB603'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_441_259'%3E%3Crect width='23' height='21' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

#back-to-top:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='21' viewBox='0 0 23 21' fill='none'%3E%3Cg clip-path='url(%23clip0_441_259)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3078 0.106942C11.9084 -0.440432 11.0916 -0.440433 10.6922 0.106942L0.349316 14.2805C-0.093917 14.8879 0.262806 15.6319 0.848577 15.827L10.4666 2.53277C10.9776 1.82237 12.0224 1.82237 12.5334 2.53277L22.1514 15.827C22.7372 15.6319 23.0939 14.8879 22.6507 14.2805L12.3078 0.106942Z' fill='%23FEB603'/%3E%3Cpath d='M10.6922 5.10697C11.0916 4.5596 11.9084 4.5596 12.3078 5.10697L22.6507 19.2806C23.2638 20.1208 22.3462 21.2223 21.4091 20.771L11.9338 16.2089C11.6597 16.0769 11.3403 16.0769 11.0662 16.2089L1.59092 20.771C0.653774 21.2223 -0.2638 20.1208 0.349317 19.2806L10.6922 5.10697Z' fill='%23C08A04'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_441_259'%3E%3Crect width='23' height='21' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}