@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fredericka+the+Great&family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


.ribbon {
    height: 160px;
    position: relative;
    margin-bottom: 30px;
    background: url(https://smpn2grogol.sch.id/kbm/page/back1.jpg);
    background-size: cover;
    text-transform: uppercase;
    color: white;

}

.ribbon3 {
    font-family: "Poppins", serif;
    width: 100px;
    height: 50px;
    line-height: 50px;
    padding-left: 15px;
    position: absolute;
    left: -8px;
    top: 20px;
    background: #3e5e8f;
}

.ribbon3:before,
.ribbon3:after {
    content: "";
    position: absolute;
}

.ribbon3:before {
    height: 0;
    width: 0;
    top: -8.5px;
    left: 0.1px;
    border-bottom: 9px solid black;
    border-left: 9px solid transparent;
}

.ribbon3:after {
    height: 0;
    width: 0;
    right: -14.5px;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 15px solid #3e5e8f;
}

.ribbon4 {
    font-family: "Poppins", serif;
    color :#800080;
    width: 100px;
    height: 50px;
    line-height: 50px;
    padding-left: 15px;
    position: absolute;
    left: -8px;
    top: 20px;
    background: #e4de50;
}

.ribbon4:before,
.ribbon4:after {
    content: "";
    position: absolute;
}

.ribbon4:before {
    height: 0;
    width: 0;
    top: -8.5px;
    left: 0.1px;
    border-bottom: 9px solid black;
    border-left: 9px solid transparent;
}

.ribbon4:after {
    height: 0;
    width: 0;
    right: -14.5px;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 15px solid #e4de50;
}

.ribbon5 {
    font-family: "Poppins", serif;
    width: 100px;
    height: 50px;
    line-height: 50px;
    padding-left: 15px;
    position: absolute;
    left: -8px;
    top: 20px;
    background: #4a5f59;
}

.ribbon5:before,
.ribbon5:after {
    content: "";
    position: absolute;
}

.ribbon5:before {
    height: 0;
    width: 0;
    top: -8.5px;
    left: 0.1px;
    border-bottom: 9px solid black;
    border-left: 9px solid transparent;
}

.ribbon5:after {
    height: 0;
    width: 0;
    right: -14.5px;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 15px solid #4a5f59;
}

.wrap {
    width: 100%;
    height: 188px;
    position: absolute;
    top: -8px;
    left: 8px;
    overflow: hidden;
}

.wrap:before,
.wrap:after {
    content: "";
    position: absolute;
}

.wrap:before {
    width: 40px;
    height: 8px;
    right: 100px;
    background: #4D6530;
    border-radius: 8px 8px 0px 0px;
}

.wrap:after {
    width: 8px;
    height: 40px;
    right: 0px;
    top: 100px;
    background: #4D6530;
    border-radius: 0px 8px 8px 0px;
}

.ribbon6 {
    font-family: "Fira Sans", serif;
    width: 200px;
    height: 40px;
    line-height: 40px;
    position: absolute;
    top: 30px;
    right: -50px;
    z-index: 2;
    overflow: hidden;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px dashed;
    box-shadow: 0 0 0 3px #FF0000, 0px 21px 5px -18px rgba(0, 0, 0, 0.6);
    background: #FF0000;
    text-align: center;
}

.ribbon7 {
    font-family: "Fira Sans", serif;
    width: 200px;
    height: 40px;
    line-height: 40px;
    position: absolute;
    top: 30px;
    right: -50px;
    z-index: 2;
    overflow: hidden;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px dashed;
    box-shadow: 0 0 0 3px #1DB954, 0px 21px 5px -18px rgba(0, 0, 0, 0.6);
    background: #1DB954;
    text-align: center;
}

.ribbon8 {
    font-family: "Fira Sans", serif;
    width: 200px;
    height: 40px;
    line-height: 40px;
    position: absolute;
    top: 30px;
    right: -50px;
    z-index: 2;
    overflow: hidden;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px dashed;
    box-shadow: 0 0 0 3px #4D4DFF, 0px 21px 5px -18px rgba(0, 0, 0, 0.6);
    background: #4D4DFF;
    text-align: center;
}

.ribbon9 {
    font-family: "Fira Sans", serif;
    width: 200px;
    height: 40px;
    line-height: 40px;
    position: absolute;
    top: 30px;
    right: -50px;
    z-index: 2;
    overflow: hidden;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px dashed;
    box-shadow: 0 0 0 3px #800080, 0px 21px 5px -18px rgba(0, 0, 0, 0.6);
    background: #800080;
    text-align: center;
}

@media (min-width: 500px) {
    .ribbons-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .ribbon {
        width: 48%;
    }
}

.status {
    text-align: center;
    margin-left: 90px;
    margin-right: 50px;
}

.mapel {
    text-align: center;
    margin-left: 90px;
    margin-right: 50px;
    font-family: "Pacifico", serif;
    font-weight: 400;
    font-style: normal;
    text-transform: capitalize;
}

.guru {
    text-align: center;
    margin-left: 90px;
    margin-right: 50px;
    font-family: "Fredericka the Great", serif;
    font-size: 18px;
    font-style: normal;
    text-transform: capitalize;
}

.avataria {
    vertical-align: middle;
    margin-top: 70px;
    margin-left: 10px;
    height: 80px;
    border-radius: 50%;
    border-top-left-radius: 0%;
    border-top-right-radius: 0%;
    position: relative;
}

.typewriter {
    font-size: 20px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid black;
    color: #002244;
    width: 0;
    word-wrap: break-word;
    animation: typing 3s steps(20, end) forwards, blink 0.7s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}