body{
	margin-top:85px;
	margin-left:10%;
	margin-right:10%;	
	margin-bottom:10%;
}

header{
 font-size:150%;
 display: flex;
 justify-content: space-between;
 
  border-bottom:3px solid #5151A2;
  
  background-color:#ffffff;
  padding-top:30px;
  padding-bottom:10px;
  
  position: fixed;
  top: 0;
  width: 80%;
}
nav.header{
 display: flex;	
}
div a.header {
  text-decoration: none;
}
nav div a.header{
	text-align: center;
	padding: 10px;
	text-decoration: none;
}
nav div a.header:hover{
	background-color:#AAAAAA;
	color:#FFFFFF;
}

.logo{
  margin-left:2%;
}
.logo:hover{
	background-color:#AAAAAA;
	color:#FFFFFF;
}

nav.body{
	display:flex;
}




.mainsubject{
	width:80%;
	border-bottom:3px solid yellow;
	box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.2), 0 6px 0 0 rgba(0, 0, 0, 0.19);
	text-align:center;
	margin-bottom:5px;
}
.subject{	
	text-align:center;
}
.wrap{
	display: table;
	margin: 0 auto;
}

.paddingleft32{
	justify-content: center; 
}

#panel, #flip {
  padding: 5px;
  text-align: center;
  background-color: #e5eecc;
  border: solid 1px #c3c3c3;
}
#panel {
  padding: 50px;
  display: none;
}

div.row{
  display: flex;
  flex-wrap: wrap;
  padding: 0 2px;
}
.column {
  flex: 24%;
  max-width: 24%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width:100%;
}

nav.footer{
	list-style-type: none;
	overflow: hidden;
	background-color:#FF1493;
	display:flex;
	height:3%;
	width:auto;
	
	position: fixed;
	bottom: 0;
	animation-name: example;
    animation-duration: 4s;
    opacity: 0.8;
}
div.footer {
	float: left;
}
div a.footer{
	color: #ffc0cb;
	text-align: center;
	padding: 16px;
	text-decoration: none;
}
div a.footer:hover {
	background-color: #999999;
}


@media screen and (min-width: 1024px) {
	a{
		font-size:105%;
	}
	li{
		font-size:110%;
	}
	.subject{
		font-size:100%;
	}
	.dropbtn{
	  background-color: #ffffff;
	  color:#ffffff;
	  border:#ffffff;
	}
}
@media (max-width: 1024px) and (min-width:600px) {
  
	header {
		display: block;
		text-align: center;
		padding-top:0; 
		padding-bottom:0;
		width:100%;
		position:none;
	}
	
	nav.header{
		display:block;
		text-align:center; 
	}
	nav div a.header{
		text-align: center;
		padding: 10px;
		text-decoration: none;
	}
	nav.body{
		display:block;
		text-align:center; 
	}
	
	body{
		margin-top:90px;
		margin-left:0;
		margin-right:0;
	}
	.column {
		flex: 48%;
		max-width: 48%;
	}
	.dropbtn{
	  background-color: #ffffff;
	  color:#ffffff;
	  border:#ffffff;
	}
}
@media screen and (max-width: 600px) {
	
	
	header {
		padding-top:0; 
		padding-bottom:0;
		width:100%;
	}
	
	nav.header{
		margin-right:40%;
		display:block;
	}
	nav.body{
		display:block;
		text-align:center; 
	}
	
	body{
		margin-top:40px;
		margin-left:0;
		margin-right:0;
	}
	.column {
		flex: 98%;
		max-width: 98%;
	}
	.dropbtn {
	  border: none;
	  cursor: pointer;
	  font-size:30px;	
	}
	.dropdown {
	  position: relative;
	}
	.dropdown-content {
	  display: none;
	  position: absolute;
	  background-color: #f9f9f9;
	  min-width: 100px;
	  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	  z-index: 1;
	}
	.dropdown:hover .dropdown-content {
	  display: flex;
	}
}

/* footer */
.Cfooter{
	list-style-type: none;
	overflow: hidden;
	background-color:#FF1493;
	display:flex;
	height:3%;
	width:auto;
	
	position: fixed;
	bottom: 0;
	animation-name: example; 
	animation-duration: 4s;
	opacity: 0.8;
}
.Rfooter {
	float: left;
}
.afooter{
	color: #ffc0cb;
	text-align: center;
	padding: 16px;
	text-decoration: none;
}
.afooter:hover {
	background-color: #999999;
}
@keyframes example {
  from {background-color: white;}
  to {background-color: #FF1493;}
}



/*置頂*/
#myBtn {
  display: none; /*初始化不顯示*/
  border-radius: 50px; /*半徑圓*/
  background-color: black; /*背景色*/
  opacity:0.99; /*透明度*/
  cursor: pointer; /*游標指過去會變手指*/
}


