* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
}

.headerrules {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: darksalmon;
    padding: 20px;
    font-size: 20px;
}

.rules1 {
    padding: 40px;
    text-align: center;
}

.head2, .head3, .hed3, .hd4, .hd5, .hd6 {
    margin-left: 20px;
    margin-top: 20px;
    color: #333;
}

.uldesign, .uld2, .paracon, .nld, .mld {
    margin-left: 40px;
    margin-top: 10px;
    list-style: none;
}

.lis {
    margin-top: 10px;
}

.container, .cont2, .continent {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
    padding: 20px;
}

.rules2, .rules3, .rules4, .rules5, .rules6, .rules7, .member, .imgr {
    flex: 1 1 calc(50% - 20px); /* Two columns */
    box-sizing: border-box;
    margin: 10px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 50%;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container, .cont2, .continent {
        flex-direction: column;
        align-items: center;
    }

    .rules2, .rules3, .rules4, .rules5, .rules6, .rules7, .member, .imgr {
        flex: 1 1 100%; /* Full width */
        margin: 15px 0;
    }

    .headerrules {
        font-size: 18px;
        padding: 15px;
    }

    .head2, .head3, .hed3, .hd4, .hd5, .hd6 {
        margin-left: 10px;
        text-align: center;
    }

    .uldesign, .uld2, .paracon, .nld, .mld {
        margin-left: 20px;
    }

    .content {
        max-width: 250px;
    }
}

/* Small Devices */
@media (max-width: 480px) {
    .headerrules {
        font-size: 16px;
        padding: 10px;
    }

    .head2, .head3, .hed3, .hd4, .hd5, .hd6 {
        font-size: 14px;
    }

    .uldesign, .uld2, .paracon, .nld, .mld {
        margin-left: 10px;
        font-size: 14px;
    }

    .rules2, .rules3, .rules4, .rules5, .rules6, .rules7, .member, .imgr {
        padding: 15px;
    }

    .content {
        max-width: 200px;
    }
}
