/*標題*/
.top-of-page{
    	position: relative;
   	max-width: 95%;
    	margin: 10px;
   	font-family: Times New Roman;
}
table{
	border:none;
	background-color:#FFF;
	}
th{
	border:none
		}
ul{
	list-style-type: none;
	margin: 0;
	padding: 1px;
	overflow: hidden;
}
li{
	float: left;

}

li a {
	color:#000;
	padding:16px 18px;
	display: inline-block;
	text-decoration:none;
}
li>a.active{
		background-color:#CCC;
}

li>a:hover:not(a.active),
.dropbtn:hover {
	background-color:#555;
}

.dropdown-content {
	display:none;
	position:absolute;
	background-color:#f9f9f9;
	min-width:100px;
	box-shadow : 0 8px 16px rgba(0,0,0,.2);
	z-index:100;}

.dropdown-content a{
	color:blcak;
	display: block;
	
}

.dropdown-content a:hover {
     background-color: #f1f1f1;
     color: deepskyblue;
 }
.dropdown:hover .dropdown-content {
     display: block;
}
/*timetable*/
body {
    margin: 0;
    font-family: 'Tangerine', cursive;
    background-size: cover;
    background-position: center;
	height:800px;
}

body::-webkit-scrollbar {
    width: 7px;
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(128, 128, 128, 0.6);
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(128, 243, 243);
}

body::-webkit-scrollbar-track {
    background-color: rgba(128, 128, 128, 0.2);
    border-radius: 6px;
}

.background-image {
    z-index: -1;
    width: 100vw;
    height: 100vh;
    background-image: url('Background.jpg');
    background-size: cover;
}

.header {
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content: space-evenly;
    background: rgba(255, 255, 255, 0.6);
}

.addevent-style {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.6);
}

.button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background: rgba(246, 88, 16, 0.8);
    transform: scale(1.05);
}

#closepage {
    background: rgba(0, 0, 255, 0.1);
}

#closepage:hover {
    background: rgba(246, 88, 16, 0.8);
}

.calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.month-display {
    font-size: 36px;
    margin: 10px 0;
}

.weekdays,
.dates {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.dates {
    flex-wrap: wrap;
    transition: transform 0.5s ease;
}

.weekday,
.day {
    width: calc(100% / 7);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    font-weight: bold;
    font-size: x-large;
}

.day {
    height: 100px;
    background: transparent;
    transition: background 0.3s;
    cursor: pointer;
    overflow-y: auto;
    border-radius: 5px;
}

.day:hover {
    background: #2196f3a3;
}

.today {
    background: lightblue;
    border-radius: 5px;
}

.event {
    background: #F07857;
    color: black;
    margin-top: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.form-container input {
    margin: 5px;
    padding: 10px;
    font-size: 14px;
    width: calc(100% - 22px);
    border: 1px solid #ccc;
    border-radius: 4px;
}

.event-list {
    text-align: left;
}

.event-list span {
    margin: 5px;
    font-size: large;
    background-color: coral;
    border-radius: 8px;
    padding: 5px;
    font-family: fangsong;
}

.repeat-checkbox {
    margin: 10px 0;
}

.repeat-options {
    display: none;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .button {
        width: 100%;
        margin: 5px;
    }
}
