:root{
    --main-color: #282828;
    --sec-color:#fff;
    --thir-color:#7b7b7b;
    --hover-color:#edc840;
}
* {
    margin: 0; /* 移除預設外邊距 */
    padding: 0; /* 移除預設內邊距 */
    box-sizing: border-box; /* 設定 box-sizing 為 border-box */
}
html{
    font-size: 16px;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex; 
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: var(--main-color);
    font-size: 1.1rem;
}
.calendar{
    /* border: 1px solid #fde935; */
    display: grid;
    grid-template-rows: 1fr 1fr 14fr;
    width: 80%;
    padding: 2%;
    background-color: var(--main-color);
    border-radius: 10px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--sec-color);
}
button{
    color: var(--sec-color);
}
button:hover{
    color: var(--hover-color);
}
.header button{
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}
.days{
    margin: 4% 0;
    color: var(--sec-color);
}

.day{
    text-align: center;
}
.dates{
    /* border: 1px solid #df6666; */
}
.days, .dates{
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 5px;
    /* align-items: stretch; */
}
.dates div {
    color: var(--sec-color);
    cursor: pointer;
    padding: 10px;
    text-align: center;
}
.dates div.today {
    color: var(--man-color);
    cursor: pointer;
    padding: 10px;
    text-align: center;
    background-color: var(--sec-color);
}
.dates div:hover {
    color: var(--main-color);
    background-color: var(--hover-color);
}
.dates div.otherMonth{
    color: var(--thir-color);
}
.dates div.otherMonth:hover{
    color: var(--main-color);
    background-color: #545454;
}

/* @media (min-width:768px) and (max-width:1023px) {
    body{
        font-size: 0.9rem;
        width: 100vw;
        height: 100vh;
        align-items: center;
}
    .calendar{
        height: 90%;
        width: 90%;
        margin-top: 4vh;
}
}

@media (max-width: 767px){
    body{
        font-size: 0.9rem;
        width: 100vw;
        height: 100vh;
        align-items: center;
}
    .calendar{
    height: 85%;
    width: 85%;
    margin-top: 6vh;
}
} */




/* a{
    align-items: baseline;
    flex: auto;
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 5px;
    text-align: center;
    justify-content: center;
    cursor: copy;
} */