body {
    overflow-x: hidden;
}

body:after {
	content: "";
	position: fixed;
	z-index: -1;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: url("../media/corkboard.jpg") no-repeat 50% 50%;
	background-size: cover;
}

#page-title {
    background-image: url("/media/faculties-3.png");
    z-index: 1;
}

#page-title::before {
    background-color: rgba(0, 0, 0, 0.35);
}

#container {
    padding: 100px 0px;
    text-align: center;
}

.sectionTitle {
    display: block;
    width: 40%;
    margin: 0 auto;
}

#testimonialsTitle {
    width: 60%;
}

.testimonial {
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 75%;
    margin: 0 auto;
}

.testimonial > * {
    margin: 50px 2%;
}

.infocard {
    background-color: rgb(99, 69, 58);
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 45%;
    max-width: 45%;
}

.personalpic {
    display: flex;
    padding: 40px 5% 0px 5%; 
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain;
}

.personalname {
    padding: 5px 20%;
    margin: 25px 30px 0 30px;
    background-color: rgb(155, 118, 104);
    color: white;
    font-size: 30px;
    font-family: 'Nanum Pen Script', cursive;
    border-radius: 20px;
    font-weight: bold;
}

.personaldetails {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.personaldetails-column {
    color: white;
    font-size: 24px;
    font-family: 'Nanum Pen Script', cursive;
    text-align: left;
    padding: 0;
    margin: 0;
}

.personalfooter {
    color: yellow;
    font-size: 12px;
    font-family:'Times New Roman';
    margin: 0 auto;
    padding-bottom: 7px;
}

.some-tape {
    position: relative;
}

.some-tape::before, .tape::after {
    background: rgba(255, 255, 235, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    content: "";
    display: block;
    height: 30px;
    position: absolute;
    margin: auto;
    width: 100px;
}

.some-tape-type-1::before {
    left: 50%;
    margin-left: -50px;
    top: -10px;
    transform: rotate(1deg);
}

.diary {
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    flex: 0 0 55%;
    max-width: 55%;
}

.the-event-one, .the-event-two {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.the-event-pic-background-one {
    padding: 5px;
    background-color: white;
    transform: rotate(-5deg);
    width: 600px;
    flex: 0 0 30%;
    max-width: 30%;
}

.the-event-pic-background-two {
    padding: 5px;
    background-color: white;
    transform: rotate(5deg);
    width: 600px;
    flex: 0 0 30%;
    max-width: 30%;
}

.the-event-pic-one, .the-event-pic-two {
    max-width: 100%;
    display: block;
}

.the-event-details-one, .the-event-details-two {
    background-color: antiquewhite;
    padding: 10px;
    font-size: 14px;
}

.the-event-details-one {
    margin-left: -4px;
    flex: 0 0 70%;
    max-width: 70%;
}

.the-event-details-two {
    margin-right: -4px;
    flex: 0 0 70%;
    max-width: 70%;
}


@media only screen and (min-width: 1240px) and (max-width : 1550px){
    .infocard {
        background-color: rgb(99, 69, 58);
        padding: 10px;
        border-radius: 30px;
    }
}

@media only screen and (min-width: 1550px){
    .infocard {
        background-color: rgb(99, 69, 58);
        padding: 10px;
        border-radius: 30px;
    }
}


@media only screen and (max-width: 1240px) {
    #container {
        padding: 50px 0;
    }

    .infocard {
        font-size: 0.7em;
        margin: 5px 20px;
    }

    .infocard {
        background-color: rgb(99, 69, 58);
        padding: 10px;
        border-radius: 30px;
    }

    .diary {
        font-size: 0.7em;
        margin: 5px 20px;
    }

    .testimonial {
        padding: 20px;
    }

    .testimonial > * {
        margin: 20px 0;
    }
    
    .testimonial:nth-child(even) {
        flex-direction: column;
    }

    .testimonial:nth-child(odd) {
        flex-direction: column-reverse;
    }

    .sectionTitle {
        width: 50%;
        padding: 0 20px;
    }

    #testimonialsTitle {
        width: 70%;
    }
    .the-event-details-one, .the-event-details-two {
        padding: 7px;
    }
    .the-event-pic-background-one {
        padding: 4px;
    }
    .the-event-pic-background-two {
        padding: 4px;
    }
}

@media only screen and (max-width: 1024px) {
    .sectionTitle, #testimonialsTitle, .testimonial{
        width: 100%;
    }
    .testimonial {
        padding: 10px;
    }    
    .the-event-pic-background-one {
        padding: 3px;
    }
    .the-event-pic-background-two {
        padding: 3px;
    }
    
}

@media only screen and (max-width: 768px) {
    .infocard {
        flex: 0 0 60%;
        max-width: 60%;
    }
    .personalname {
        padding: 5px 10%;
        margin: 25px 20px 0 20px;
        font-size: 30px;
        font-family: 'Nanum Pen Script', cursive;
    } 
    .diary {
        flex: 0 0 70%;
        max-width: 70%;
    }
    .the-event-details-one, .the-event-details-two {
        padding: 5px;
        font-size: 11px;
    }

}

@media only screen and (max-width: 425px) {

    #container {
        padding: 30px 0;
    }
    .infocard {
        flex: 0 0 90%;
        max-width: 90%;
    }
    .diary {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .personaldetails {
        flex-direction: column;
        padding-top: 1em;
        padding-bottom: 1em;
    }
    .personaldetails-column ul {
        margin-top: 0; 
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    .personalfooter {
        font-size: 10px;
    }
}