
@font-face {
    font-family: certificateHeading;
    src: url(../fonts/OLDENGL.TTF);
}

@font-face {
    font-family: certificateSubHeading;
    src: url(../fonts/rengkoxpersonal.otf);
}

@font-face {
    font-family: certificateName;
    src: url(../fonts/SCRIPTBL.TTF);
}

.searchField	{
    font-size: 16px;
    font-weight: 500;
	color:#333 !important;
	place-items: flex-start !important;
	border: 1px solid #00aeef;
}

.certificateContainer {
    position: relative;
    margin: 40px auto;
    background: #fff; /* light cream */
    padding: 60px;
    box-sizing: border-box;
}

/* Main Double Border */
.certificateContainer::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 6px double #00aeef; /* dark brown */
    pointer-events: none;
}

/* Inner Thin Border */
.certificateContainer::after {
    content: "";
    position: absolute;
    top: 45px;
    left: 45px;
    right: 45px;
    bottom: 45px;
    border: 2px solid #00aeef;
    pointer-events: none;
}

.buttonContainer {
    margin: 40px auto;
    padding: 0px 0px 0px 20px;
}

.searchContainer {
    margin: 40px auto;
    padding: 0px 0px 0px 20px;
}


.corner {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 6px solid #00aeef;
}

.corner.top-left {
    top: 25px;
    left: 25px;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 0 0 0;
}

.corner.top-right {
    top: 25px;
    right: 25px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 20px 0 0;
}

.corner.bottom-left {
    bottom: 25px;
    left: 25px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 20px;
}

.corner.bottom-right {
    bottom: 25px;
    right: 25px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 20px 0;
}

.certificateHeader {
	text-align: center;
	margin-bottom: 20px;
}

.certificateHeader h1 {
	font-family:certificateHeading;
	margin: 0;
	font-size: 42px;
	color: #00aeef;
	letter-spacing: 2px;
}

.certificateHeader h2 {
	font-family:certificateName;
	margin: 5px 0;
	font-size: 24px;
	font-weight: normal;
	color: #555;
}

.certificate-title {
	font-family:certificateName;
	text-align: center;
	font-size: 32px;
	margin: 30px 0;
	font-weight: bold;
	text-transform: uppercase;
	color: #00aeef;
}

.certificateContent {
	font-size: 22px;
	line-height: 1.8;
	margin-top: 30px;
	text-align: center;
}

.certificateContent strong {
	font-family:certificateName;
	font-size: 28px;
	color: #00aeef;
}

.certificateDetailsTable {
	width: 100%;
	margin-top: 20px;
	font-size: 18px;
}

.certificateDetailsTable td {
	padding: 8px 5px;
	vertical-align: top;
}

.certificateLabel {
	font-weight: bold;
	width: 200px;
	color: #00aeef;
}

.certificatePhoto {
	max-width: 150px;
	border: 2px solid #00aeef;
}

.certificateDescription {
	margin-top: 30px;
	font-style: italic;
}

.certificateFooter {
	padding: 30px 0px 0px 0px;
}

.certificateSeal {
	text-align: center;
}

.certificateSeal img {
	max-width: 120px;
	text-align: center;
}

.certificateSignature {
	text-align: center;
}

.certificateSignature img {
	width: 200px;
}

.certificateBottomLine {
	border-top: 2px solid #000;
	width: 250px;
	margin-top: 10px;
}




@media (min-width: 768px) { 
	
	.certificateContainer, .buttonContainer {
		width: 70%; /* A4 Landscape */
	}

	.certificateFooter {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	
	.certificatePhotoContainer	{
		float: right
	}

	.certificatePhoto {
		position: absolute;
		top: 40%;
		right: 90px;
		object-fit: cover;
	}

	
}

@media (max-width: 768px) { 
	
	.certificateContainer, .buttonContainer {
		width: 95%; /* A4 Landscape */
	}
	
	.certificateFooter {
		justify-content: space-between;
		align-items: center;
	}
	
	.certificatePhotoContainer	{
		text-align: center;
	}

	.certificatePhoto {
		text-align: center;
	}

	
}

@media print {
	body {
		background: none;
	}
	.certificateContainer {
		margin: 0;
	}
}
