@charset "utf-8";
:root{
}

.history{ width: 100%; min-height: 10rem;  box-sizing: border-box; background: url('/web/img/custom/History-bg.webp') repeat-x; background-size: 50%; background-position: center; padding: 10rem 20% 2rem 20%; display: flex;
  flex-direction: column;}
.history_link{  display: flex;
  flex-direction: column;
  width: 100%; position: relative; }
.history_img{ width: 100%; min-height: 10rem; border-top: 5px solid var(--gray_dark); border-bottom: 5px solid var(--bg_color); background-color: #ccc}
.history_title{
 position: absolute; font-weight: 200; top: -2.5rem; color: white; font-size: 2rem; text-align: center;line-height: 5rem; width: 20ch; left: calc(50% - 10ch); text-transform: uppercase; background-color: var(--gray_dark); display: block;
}
.history_title::after{ content: '';  background: url('/web/img/custom/History-book.webp') no-repeat ; background-size: contain; width: 100%; background-position: center; height: 8rem; left: 0; top:-8rem; position: absolute;}
.history_subtitle{ position: absolute; font-weight: 200; bottom: -2.5rem; color: white; font-size: 2rem; text-align: center;line-height: 5rem; width: 80%; left:10%; text-transform: uppercase; background-color: var(--bg_color); display: block;
}

@media only screen and (max-width: 1200px){
	.history{ padding: 6rem 5% 2rem 5%;}
	.history_title{ line-height: 4rem; font-size: 1.6rem; top: -2rem;}
	.history_title::after{ height: 4.5rem; top: -4.5rem}
	.history_subtitle{ line-height: 4rem; font-size: 1.6rem; bottom: -2rem;}
}

@media only screen and (max-width: 1000px){
.history{ padding: 10rem 10% 1.5rem 10%;}
}

@media only screen and (max-width: 800px){
.history{ padding: 5.5rem 5% 1.5rem 5%;}
.history_title{ line-height: 3rem; font-size: 1.4rem; top: -1.5rem;}
.history_title::after{ height: 4rem; top: -4rem}
.history_subtitle{ line-height: 3rem; font-size: 1.4rem; bottom: -1.5rem;}
.history_img{ border-top-width: 3px; border-bottom-width: 3px;}

}