body {
    background: linear-gradient(to bottom right, #ffffff, #a0e7e5, #cdb4db);
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 30px;
}


#rule {
    position: relative;
    margin: 40px 0 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #e0f7fa);
    border: 3px dashed #cdb4db;
    border-radius: 20px;
    box-shadow: 0 4px 12px #b4b4ff4d;
}

#rule .rule-title {
    position: absolute;
    display: inline-block;
    top: -25px;
    left: -3px;
    padding: 0 15px;
    height: 30px;
    line-height: 30px;
    font-size: 20px;
    background: linear-gradient(to right, #a0e7e5, #cdb4db);
    color: #ffffff;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    box-shadow: 2px 2px 5px #0000001a;
}

#rule p {
    margin: 5px 0;
    font-size: 16px;
}

/*クリック後のボタンの縁取りが？*/
button {
    font-weight: bold;
    padding: 12px 30px;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(to right, #bde0fe, #cdb4db);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(173, 216, 230, 0.4);
    transition: all 0.3s ease;
    margin: 20px 0;
}

/*問題欄*/
p {
    font-size: 18px;
    line-height: 2;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 12px;
}

span[id^="question"] {
    font-weight: bold;
    color: #6a5acd; 
}

span[id^="ans"] {
    margin-left: 10px;
    color: #333333;
}

#time {
    display: inline-block;
    background: linear-gradient(to right, #bde0fe, #cdb4db);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 8px #add8e680;
    margin-top: 30px;
    text-align: center;
    letter-spacing: 1px;
}
