* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f5f5f5;
}

.folder {
    width: 100%;
    max-width: 700px;
    height: auto;
    min-height: 600px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.ribbon {
    /* تنسيق المستطيل الأساسي */
    display: inline-block;
    background-color: #00897b; /* اللون الأخضر */
    color: white;
    padding: 10px 25px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 24px;
    position: relative; /* ضروري عشان نحدد مكان المثلث بالنسبة للمستطيل */
    margin-left: 20px; /* مسافة عشان المثلث يظهر */
    top: -250px;
    right: 1px;
    white-space: nowrap;
}

/* عمل المثلث (الطيّة) */
.ribbon::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px; /* ننزله تحت المستطيل */

    /* رسم المثلث باستخدام الحدود */
    border-left: 15px solid transparent;
    border-top: 15px solid #004d40; /* لون أغمق شوية عشان يدي ظل */
}

.content {
    transform: translate(-170px, -160px);
    margin: 20px;
    padding: 50px;
    white-space: normal;
    width: 100%;
}

.checkbox1 {
    display: block;
    margin-bottom: 40px;
    padding-bottom: 10px;
    font-size: 18px;
    font-family: sans-serif;
}

.txt-checkbox {
    font-family: sans-serif;
    font-size: 18px;
    text-decoration: line-through;
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============ Tablets (768px and below) ============ */
@media (max-width: 768px) {
    .folder {
        width: 100%;
        min-height: auto;
        padding: 15px;
    }

    .ribbon {
        font-size: 20px;
        padding: 8px 20px;
        top: -200px;
        margin-left: 15px;
    }

    .content {
        transform: translate(-120px, -120px);
        margin: 10px;
        padding: 30px;
        white-space: normal;
    }

    .checkbox1 {
        margin-bottom: 30px;
        font-size: 16px;
    }

    .txt-checkbox {
        font-size: 16px;
    }

    .checkbox-group {
        flex-direction: column; /* يخليهم تحت بعض */
        gap: 10px;
    }
}

/* ============ Small Tablets & Large Phones (480px and below) ============ */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .folder {
        width: 100%;
        min-height: 500px;
        padding: 10px;
    }

    .ribbon {
        font-size: 18px;
        padding: 8px 15px;
        top: -180px;
        margin-left: 10px;
    }

    .ribbon::before {
        border-left: 12px solid transparent;
        border-top: 12px solid #004d40;
        bottom: -12px;
    }

    .content {
        transform: translate(-80px, -100px);
        margin: 5px;
        padding: 20px;
        white-space: normal;
    }

    .checkbox1 {
        margin-bottom: 25px;
        padding-bottom: 8px;
        font-size: 15px;
    }

    .txt-checkbox {
        font-size: 15px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============ Very Small Phones (320px and below) ============ */
@media (max-width: 320px) {
    .ribbon {
        font-size: 16px;
        padding: 6px 12px;
        top: -150px;
        margin-left: 8px;
    }

    .content {
        transform: translate(-60px, -80px);
        padding: 15px;
        margin: 0;
    }

    .checkbox1 {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .txt-checkbox {
        font-size: 14px;
    }
}

/* ============ Large Screens (1024px and above) ============ */
@media (min-width: 1024px) {
    .folder {
        width: 700px;
        height: 600px;
    }

    .content {
        padding: 50px;
    }
}
