/*
* 品德教育資源網自訂的CSS
*/

a:hover {
	text-decoration:underline;
}
.commonlinks{
	display:flex; 
	justify-content: center;
	padding: 60px 0;
}
.ab_flex{
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding-bottom:20px;
}
.ab_button{
	display:flex; 
	justify-content: center;
	/*align-items:center;*/
	border:1px solid #0277c2;
	border-radius: 10px;
	padding:25px 30px 25px 30px;
	width:385px;
	height: 110px;
	flex-direction:column;
	flex-wrap:wrap;	
}
.commonlink_style{
	padding-left: 0px;
	margin-left: auto;
	margin-right: auto;
}
.commonlinkc_fs {
	font-size: 1.5rem;
	font-weight: bold;
	color: #0277c2;
}
.commonlinke_fs {
	font-size: 1rem;
	color:#0277c2;
}
.news {
	background-color: #E8E8E8;	
	margin-left:0px !important;	
}
.picture {
	background-color: #E8E8E8;
	padding-top:20px;
	padding-bottom:40px;
}
.picture_txt {
	font-size: 3.5rem;
	color: #0277C2;
}
.news_flex{
	margin-left:50px;
	margin-bottom:70px;
	display:flex;
	flex-wrap:wrap;
	justify-content: flex-start;
}
.news_line{
	border-bottom: 1px dashed #0277C2;
	display: flex;
	align-items: center;
	margin-bottom: 50px;
	padding-bottom:10px;
	
}


.more{
	background-color: #0277C2;
	color:#fff;
	padding: 8px 30px 8px 30px;
	border-radius: 5px;
	width:100px;
	heihgt:30px;
	text-align:center;
}
.h1_ctxt {
	color: #0277C2;
	font-size:2rem;
	font-weight:bold;
	padding-bottom:10px;
}
.h1_etxt {
	color: #0277C2;
	font-size:1.2rem;
	font-weight:bold;
	margin-left:10px;
}
.readmore{
	background-color: #0277C2;
	color:#fff;
	padding: 5px 20px 5px 20px;
	border-radius: 5px;
	width:100px;
	heihgt:30px;
}
.news > .row > .row {
	margin: 30px 0px 30px 50px;
	border-bottom: 1px dotted #0277C2;
	width:90%;
	padding-bottom:20px;
}
.video{
	margin-top:60px;
}
.video_line{
	border-bottom: 1px dashed #0277C2;
	display: flex;
	align-items: center;
	padding-bottom:10px;
}
.ratio{
	margin:80px auto;
	width:80%;
}
.ratio img  {
	border-radius: 22px;
	width: 100%;
}
.video_txt {	
	text-align: center;
	font-weight: 400;
	font-size: 1rem;
	padding-top:10px;
	color:#000;
}
.video_txt:hover {
	color: blue;
}
.container{
	max-width:1500px !important;
}
.pic_block{
	display: block;
	justify-content: center;
	margin-bottom: 50px;
	width:20%;
	padding-top:30px;
	padding-left:30px;
}
.pic_more{
	margin-top:20px;
	margin-left:20px;
	color:#fff;	
	border-radius: 5px;
	width:300px;
	heihgt:200px;
	padding:20px 50px 20px 50px;
}
.pic_div img{
	object-fit: cover;
	padding-left:10px;	
	width: 100%;
	min-height: 200px;
}
.pic_div{
	 overflow: hidden; 
	 width: 100%;
	 height: 200px;
}
.pic_div img:active{
	transform:scale(2,2);
}
.links{
	display:flex;
	align-content: center;
	justify-content: center;
}
.links_div{
	padding-top:20px;
	padding-bottom:20px;	
	border:2px solid #575757;
	background-color:#fed463;	
	display:flex;
	align-content: center;
	justify-content: center;
}
.links_txt{
	margin-left:20px;
	display:flex;
	flex-direction: column;
	justify-content: center;
	color:#575757;
	font-size:2rem;
}
.links_txt:hover{
	text-decoration:underline;
}
.links_txt:active{
	text-decoration: none;
}
.links_en{
	font-size:2rem;
}
.links_div img{
	height:120px;
}
/*圖文專區彈跳視窗效果Start*/
.pic_div img{
    width: 400px;
    height:400px;
    cursor: pointer;
}
#lightbox{
    position: fixed;
    z-index: 1000;
    top:0;
    width:100%;
    height: 100%;
    background-color: rgba(0,0,0,.8);
    display: none;
}
#lightbox.active{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.lightbox-container {
    width: auto; 
    height:100%;
}
.lightbox-image{
    max-width: 100%;
    max-height: 93%;
    padding:4px;
    background-color: black;
    border: 2px solid white;
}
#lightbox div{
	background-color:#fff;
	font-size:1.5rem;
	padding:10px;	
	display:flex;
	flex-direction:column;
	align-items:center;
}
/*圖文專區彈跳視窗效果End*/
@media screen and (max-width:1877px){
	.news_flex{
		display:flex;
		justify-content: flex-start;
		min-width:100%;
	}
}
@media screen and (max-width:1757px){
	.news_flex{
		min-width:120%;
	}
}
@media screen and (max-width:1469px){
	
	.news_flex{
		display:flex;
		justify-content: center;
		min-width:100%;
	}
}
@media screen and (max-width:1277px){
	.ab_button{
		flex-direction: column;		
		width:300px;
		min-height: 230px;
		text-align: center;
		position: relative;
		margin-top:30px; 
	}
	.ratio {
		margin-top:50px;
	}
}
@media screen and (max-width:991px){
	.ab_button{
		width:100%;
	}		
	.links_div{
		padding-top:30px;
		padding-bottom:30px;
		border:1.5px solid #575757;
	}
	.links_txt{
		margin-left:20px;
		display:flex;
		flex-direction: column;
		justify-content: center;
		color:#575757;
		font-size:2rem;
	}	
	.links_en{
		font-size:1.8rem;
	}	
	.links_div img{
		height:80px;
	}
	.col-more{
		width:50%;
	}
}
@media screen and (max-width:768px){
	.ratio {
		margin-top:20px;
	}
	.ratio img{
		margin-top:20px;
	}
	.col-commonlink{
		width: 50%;
	}
	.col-carousel{
		width: 80%;
		margin-left:-30px;
	}
	.links{
		display:flex;
		flex-direction:column;
		justify-content: center;
		align-items: center;
	}
	.links_div{
		max-width:100%;
	}
	.links_txt{
		font-size:1.5rem;
	}
	.links_en{
		font-size:1.5rem;
	}
}
@media screen and (max-width:460px){
	.col-carousel{
		width: 70%;
		margin-left:-30px;
	}
}
@media screen and (min-width:768px){
	.col-md-1{
		max-width:100%;
	}
}
@media screen and (max-width:414px){
	.col-auto{
		display:flex;
		flex-direction:column;
	}
	.readmore{
		margin: 10px 0px 10px auto;
		width: 50%;
	}
}

/*news info CSS*/
.news-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 20px;
}
.news-card {
	background-color: #efefef;
	width: 48%;
	margin-bottom: 20px;
}
.news-date {
	font-size: 0.875rem;
	font-weight: bold;
	color: #666666;
	padding: 10px;
}
.news-tag {
	font-size: 0.875rem;
	font-weight: bold;
	padding: 10px;
	border-radius:20px;
}
.news-title {
	font-size: 1.125rem;
	font-weight: bold;
	color: #333333;
	padding: 10px;
	margin: 0;
}
.date_info{
	display:flex;
	margin-top:15px;
}
.title_info{
	display:flex;
	justify-content: space-between;
	margin-top:10px;
	margin-bottom:5px;
}
.read-more {
	background-color: #0277C2;
	border: none;
	color: #fff;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
	margin: 10px;
	cursor: pointer;
	border-radius:8px;
}
.read-more:hover {
	background-color: #5fc9d3;
	color: #fff;
	text-decoration:none;
}
.separator {
	width: 100%;
	height: 1px;
	background-color: #cccccc;
	margin: 20px 0;
}
@media (min-width: 869px) {
	.hide-in-lg{
		display:none;
	}
}
@media (max-width: 768px) {
	.news-card {
		width: 100%;
		margin-right:0px;
	}
}
/*首頁最上方快速選單*/
#top_buttons {
	display: flex;
	flex-wrap: wrap;
}
#top_buttons > div{
	max-width:205px;
}
#top_buttons > div > a{
	padding:10px;
}
#top_buttons .button{
	width:100%;
	height:180px;
	aspect-ratio:4/3;
	color:rgb(2 119 194);
	border: 1px solid rgb(2 119 194);
	border-radius:5px;
	text-decoration: none;
	transition: .3s;	
}
#top_buttons .button:hover {
	background-color: rgb(2 119 194);
	color: white;
}
.button:hover .hover img:nth-of-type(2) {
  opacity: 0; 
}
.hover{
	position:relative;		
}
.hover img {
  position:absolute;
}
.hover img:nth-of-type(2):hover{
  opacity:0; /*滑鼠滑入時，透明度變0*/
}
.txt{
	margin-top:50px;	
}


