

#main_section{
	position: relative;
	padding-top: 20px;
	padding-bottom: 20px;
	width: 100%;
	max-width: 730px;
	color:rgb(255, 255, 255);

	margin-left: auto;
	margin-right: auto;
}

#main_section img{
	width: 100%;
	height: 100%;
	border-radius: 7px;
	object-fit: cover;
}

#main_section .content_container{
	font-size:20px;
	position: absolute;
  	top: 160px;
  	left: 50px;
	width: 80%;
}

#main_section .text_background{
	background-color:  rgba( 130, 64, 139 , 0.8);
	border-radius: 2px;
}

#main_section h1{
	-webkit-text-stroke-width: 2px;
  	-webkit-text-stroke-color: #753b7d;
	font-family: sans-serif;
}

#main_section p{
	margin-top:10px;
}

#main_section button{
	font-size: 20px;
	padding: 10px;
	margin: 10px;
}


/* TEXT PARTS including text and images*/
.text_section{
	width: 100%;
}

.text_section .text{
	background-color: antiquewhite;
	margin-top: 30px;
	margin-bottom: 30px;
	width: 80%;
	padding: 25px;

	margin-left: auto;
	margin-right: auto;
}

.text_section .image{
	margin-top: 30px;
	margin-bottom: 30px;
	width: 80%;

	text-align: center;

	margin-left: auto;
	margin-right: auto;
}

.text_section .img1{
	width: 40%;
	margin: 5px;
}

.text_section .img2{
	width: 40%;
	margin: 5px;
}

.text_section .img3{
	width: 26%;
	margin: 5px;
}

.text_section h1{
	font-size: 40px;
	margin-bottom: 20px;
}

.text_section h3{
	font-size: 25px;
	margin-bottom: 10px;
}

.text_section h4{
	font-size: 20px;
	margin-bottom: 10px;
	margin-top: 40px;
}

.text_section p{
	font-size: 20px;
	line-height:1.5;
	margin-bottom: 10px;
}

.text_section div ul{
	padding-left: 40px;
	font-size: 20px;
	margin-top: 10px;
	margin-bottom: 10px;
}
.text_section div ul li{
	margin: 5px;
}

.pop_up_tausta span{
	position: absolute;
	top: 0; right: 10px;
	font-size: 60px;
	font-weight: bolder;
	color: white;
	cursor: pointer;
}

.pop_up_tausta img{
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 450px;
	object-fit: cover;
}

/*----------------------------*/

main{
    width: 85vw;
    margin:auto;
}

.text-image-section{
    background-color: transparent;
    height: 500px;
    padding: 0;
    margin: 40px 10%;
    position: relative;
}

.text-image-section img{
    width:100%;
    height: 100%;
    object-fit: cover;
}

.text-container{
    top:0px;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-container div{
	width: 80%;
	margin: auto;
	padding: 10px;
	border-radius: 5px;
    background-color: rgba(211, 147, 197, 0.8);
    container-type: inline-size;
}

.text-container div h2{
	font-size: clamp(0rem, 8cqi, 2rem);
	margin-bottom: 10px;
}

/*---------------------------------*/

#avoimet_linkki{
	overflow-wrap:break-word;
}

/*Erityiselementit*/

#kevatmessut{
	background-color: antiquewhite;
	margin-top: 30px;
	margin-bottom: 30px;
	width: 80%;
	padding: 25px;

	margin-left: auto;
	margin-right: auto;

	border: 5px;
	border-style: solid;
	border-color:red;

	color: red;

	container-type: inline-size;
}

#kevatmessut h2{
    font-size: clamp(0rem, 7cqi, 1.875rem);
}

#kevatmessut p{
	color:blue;
    font-size: clamp(0rem, 5.5cqi, 1.25rem);
}


.er3{
	display:flex;
	flex-direction:row;
	align-self: center;
	flex-wrap: wrap;
}

.er3 img{
	width:300px;
	height:auto;
	align-self: start;
}

.er3 div{
	width: 400px;
}
.er3 div p{
	font-size: clamp(0rem, 5.5cqi, 1.25rem);
}
