/* certificate */

.certificate {
    position: relative;
    padding: 20px;
}
.certificate .certificate_form {
	margin: 2em auto;
	background: url(img/certificate-preview.png);
	height: 620px;
	width: 877px;
	background-size: 100%;
	display: flex;
	justify-content: center;
	border: 1px solid #103521;
	box-shadow: 0 0 20px #09321c;
}
.certificate .certificate_form.teacher {
	background: url(img/certificate-preview_2.png);
}
.certificate .certificate_form .data {width: 100%;height: 100%;position: relative;}
.certificate .certificate_form .data input {position: absolute;border: none;}
.certificate .certificate_form .data textarea {position: absolute;border: none;}
.certificate .certificate_form .data input:focus-visible {
	outline:none;
}
.certificate .certificate_form .data textarea:focus-visible {
	outline:none;
}
.certificate .certificate_form .data textarea.event_name {
	top: 367px;
	font-weight: 600;
	width: 252px;
	left: 50px;
	line-height: 1;
	background: transparent;
	font-size: 14px;
	resize: none;
	overflow: hidden;
	opacity: 1;
}
.certificate .certificate_form .data textarea.event_author {
	top: 241px;
	width: 800px;
	font-size: 28px;
	left: 50px;
	line-height: 1;
	background: transparent;
	overflow: hidden;
	resize: none;
	font-weight: 600;
	}
.certificate .certificate_form .data textarea.event_teacher {
	top: 367px;
    font-weight: 600;
    width: 325px;
    left: 335px;
    line-height: 1;
    background: transparent;
    font-size: 14px;
    resize: none;
    overflow: hidden;
    opacity: 1;
}
.certificate .certificate_form .data textarea.event_job {
    opacity:0;
}
.certificate .certificate_form .data textarea.event_organisation {
    opacity: 0;
}
.certificate .certificate_form.teacher .data textarea.event_organisation {}
.certificate .certificate_form.teacher .data textarea.event_author {
	display:none;
}
.certificate .certificate_form.teacher .data textarea.event_name {
	display:none;
}
.certificate .certificate_form.teacher .data textarea.event_teacher {
	top: 242px;
	width: 800px;
	font-size: 28px;
	left: 50px;
	line-height: 1;
	background: transparent;
	overflow:hidden;
	resize: none;
	font-weight: 600;
}
.certificate .certificate_form.teacher .data textarea.event_teacher::placeholder {
	color:#ffffff85;
}
.certificate .certificate_form.teacher .data textarea.event_job {
	top: 367px;
	font-weight: 600;
	width: 250px;
	left: 50px;
	line-height: 1;
	background: transparent;
	font-size: 14px;
	resize: none;
	opacity:1;
	overflow: hidden;
}
.certificate .certificate_form.teacher .data textarea.event_job::placeholder {
	color:#ffffff85;
}
.certificate .certificate_form.teacher .data textarea.event_organisation {
	top: 367px;
	font-weight: 600;
	width: 325px;
	left: 335px;
	line-height: 1;
	background: transparent;
	font-size: 14px;
	resize: none;
	overflow:hidden;
	opacity: 1;
}
.certificate .certificate_form.teacher .data textarea.event_organisation::placeholder {
	color:#ffffff85;
}
.certificate .download {
    
}
.certificate .download button {
	width: 300px;
	margin: 50px auto;
}
.certificates {
    display: flex;
    margin: 25px 0 0;
    flex-wrap: wrap;
    gap: 1em;
}
.certificates .item_cert {
    background: transparent;
    border-radius: 5px;
    color: #FA0B0B;
    font-size: 16px;
    font-weight: 700;
    width: auto;
    cursor: pointer;
    display: flex;
    padding: 0 20px;
    height: 34px;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid #FA0B0B;
}
.certificates .item_cert:hover, .certificates .item_cert.active {
    background: #FA0B0B;
    color: #ffffff;
}
.shadow {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    align-items: center;
    justify-content: center;
}
.warning {
    max-width: 460px;
    background: #920000;
    color: #ffffff;
    font-size: 25px;
    padding: 40px;
    font-weight: 100;
    border-radius: 5px;
    position: relative;
}
.warning p a {border-bottom: 1px dotted #ffffff;font-weight: 300;color: #ffffff;text-decoration: none;}
.warning p a:hover {border-bottom: 1px solid #ffffff;}
.warning .close_warning {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	line-height: 1em;
	font-size: 60px;
	font-weight: 100;
	width: 60px;
	height: 60px;
	text-align: center;
	cursor: pointer;
	transform: rotate(45deg);
	transition: all 0.3s ease;
}
.warning .close_warning:hover {
	transform: rotate(135deg);
}
.certificate_draft_wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(15px);
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
}
.certificate_draft_wrap.show {
	display: flex;
}
.certificate_draft_wrap .certificate_draft {
    background: #ffffff;
    padding: 20px;
    color: #000;
}
.certificate .certificate_img_mobile {
	display:none;
}
@media all and (max-width:1000px) {
	.certificate {
    padding: 0;
}
	.certificate .certificate_form {
		display:none;
	}
	.certificate .certificate_img_mobile {
	display:flex;
	margin: 2em auto;
	border: 1px solid #5d0808;
	box-shadow: 0 0 20px #3d3d3d;
	aspect-ratio: 1.4;
	background-size: 100% !important;
	}
	.certificate .certificate_img_mobile img {}
	.certificate .download button {
    max-width: 300px;
    margin: 50px auto;
    padding: 0 30px;
	width: auto;
	}
}