*{
    box-sizing:border-box;
}

body{
    margin:0;
    padding:20px;
    background:#ffffff;
    color:#000000;
    font-family:sans-serif;
}

.container{
    max-width:500px;
    margin:auto;
}

h1{
    text-align:center;
    margin-bottom:20px;
}

h2{
    margin:0;
    font-size:20px;
}

.card{
    border:1px solid #cccccc;
    padding:15px;
    margin-bottom:20px;
}

#today{
    margin-top:0;
    margin-bottom:15px;
    font-weight:bold;
}

label{
    display:block;
    margin-bottom:8px;
}

input{
    width:100%;
    padding:10px;
    font-size:18px;
    margin-bottom:15px;
}

.targetInput{
    width:90px;
    text-align:right;
    margin:0;
}

button{
    width:100%;
    padding:12px;
    font-size:17px;
    cursor:pointer;
}

.item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:10px 0;
}

.historyTitle{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

#deleteModeBtn{
    width:auto;
    padding:8px 16px;
}

#history .row{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid #dddddd;
}

#history .row:last-child{
    border-bottom:none;
}

#deleteArea{
    margin-top:15px;
}

#deleteArea button{
    margin-top:10px;
}

.hidden{
    display:none;
}

.savedMessage{

    text-align:center;

    color:#008000;

    font-weight:bold;

    margin-top:10px;

    opacity:0;

    transition:opacity .3s;

}

.savedMessage.show{

    opacity:1;

}

.timeInput{

    display:flex;

    align-items:center;

    gap:8px;

    margin-bottom:15px;

}

.timeInput input{

    width:70px;

    margin:0;

    text-align:center;

}

.timeInput span{

    white-space:nowrap;

    font-size:16px;

}

.monthBar{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

    margin-bottom:15px;

}

.monthBar button{

    width:40px;

    height:40px;

    border:none;

    border-radius:8px;

    font-size:18px;

    cursor:pointer;

}

#currentMonth{

    font-size:18px;

    font-weight:bold;

    min-width:120px;

    text-align:center;

}