/* --------------------Sidebar-------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Shade&display=swap');

* {
	box-sizing: border-box;
}
body {
	background-image: url(../img/floor-tile.png);
	display: flex;
	justify-content: left;
	margin: 0px;
	font-family: 'Montserrat', sans-serif;
    /* align-items: center; */
	/* flex-direction: column; */
}

.sidebar{
    background-color: #333;
    height: 100%;
    position: fixed;
    width: 251px;
    z-index: 2;
}
.logo-sidebar {
    background-color: rgb(187, 235, 116);
    width: inherit;
    height: 200px;
    display: grid;
    place-content: center;
    margin-bottom: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
}
.menu-sidebar{
    padding: 10px;
    margin: 15px 10px;
    border-radius: 5px;
    background-color: rgb(90, 87, 87);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: aliceblue;
    font-size: 21px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.menu-sidebar:hover {
    background-color: red;
}
.sidebar .sidebar-home, .sidebar-admin, .sidebar-diniyah {
    cursor: pointer;
}
.sidebar .sidebar-home:active, .sidebar-admin:active, .sidebar-wasra:active, .sidebar-diniyah:active {
    transform: scale(0.95);
}
/* --------------------Dropdown-------------------- */
.dropdown-walas, .dropdown-mapel, .dropdown-ujian {
    position: relative;
    cursor: context-menu;
}
/* --------------------Konten Dropdown1 (walas & mapel)-------------------- */
.dropdown-walas-content, .dropdown-mapel-content, .dropdown-ujian-content {
    position: absolute;
    min-width: 145px;
    top: 0px;
    right: -141px;
    display: none;
}
.css-konten-dropdown div {
    color: black;
    padding: 13px 15px;
    display: block;
    background-color: rgb(156, 148, 148);
    font-family: 'Montserrat', sans-serif;
    border-radius: 5px;
}
.dropdown-walas-content div:hover, .dropdown-mapel-content div:hover, .dropdown-ujian-content div:hover {
    background-color: red;
    cursor: pointer;
    text-align: right;
}
.fa-caret-down-walas, .fa-caret-down-mapel, .fa-caret-down-ujian {
    transition: 0.2s;
}
/* -------------------- PAGE -------------------- */
.page {
    margin-left: 251px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.page h1 {
    font-family: 'Bungee Shade', cursive, sans-serif;
    font-size: 45px;
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(-24px);
    transition: 2s;
}
h1.muncul {
    opacity: 1;
    transform: translateY(0px);
}
p {
    /* text-indent: 35px; */
    word-spacing: 5px;
    line-height: 35px;
    text-align: justify;
    font-size: medium;
    padding: 0px 20px;
    opacity: 0;
    transform: translateY(-24px);
    transition: 2s;
}
p.muncul {
    opacity: 1;
    transform: translateY(0px);
}
.pertanda {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: flex-end;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-24px);
    transition: 2s;
    margin-bottom: 30px;
}
.pertanda p {
    line-height: 25px;
}
.pertanda.muncul {
    opacity: 1;
    transform: translateY(0px);
}
.page-walas-content {
    margin: 75px 0px;
    display: flex;
    justify-content: space-evenly;
}
h2 {
    text-align: center;
    color: rgb(138, 24, 24);
    font-size: 25px;
    margin-top: 3px;
    text-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.page img:hover {
    filter: drop-shadow(7px 7px 7px rgba(0, 0, 0, 0.5));
    cursor: pointer;
}

/* ------------------ Mapel --------------------------- */
.kumpulan-mapel {
    /* width: 100%; */
    margin: 35px 185px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    column-gap: 50px;
    row-gap: 50px;
}
.mapel {
    height: 161px;
    width: 150px;
    background-color: rgb(19, 146, 231);
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
    box-sizing: border-box;
    border-radius: 5%;
    box-shadow: 0px 30px 10px -20px rgba(0, 0, 0, 0.7);
    transition: 0.3s;
    display: grid;
    text-align: center;
    place-content: center;
}
.mapel:hover {
    transform: translateY(-20px);
    box-shadow: 0px 80px 10px -40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.mapel:active {
    transform: scale(0.95);
}

.fa-angle-double-right {
    opacity: 0;
}
/* tambahan baru */
.icon-menu{
    font-size: 20px;
    margin-left: 15px;
    margin-top: 10px;
    cursor: pointer;
}
.sidebar,.page{
    transition: 0.5s;
}
.setting-lebar-sidebar{
    width: 0;
    overflow: hidden;
}
.setting-j-ki-page{
    margin-left: 0;
}
.page img {
    width: 300px;
    height: 250px;
}
/* ------------------ Diniyah --------------------------- */
.kumpulan-diniyah{
    margin: 0px 50px 50px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}
.diniyah {
    height: 161px;
    width: 150px;
    background-color: rgb(161, 231, 19);
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
    box-sizing: border-box;
    border-radius: 5%;
    box-shadow: 0px 30px 10px -20px rgba(0, 0, 0, 0.7);
    transition: 0.3s;
    display: grid;
    text-align: center;
    place-content: center;
}
.diniyah:hover {
    transform: translateY(-20px);
    box-shadow: 0px 80px 10px -40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.diniyah:active {
    transform: scale(0.95);
}
@media only screen and (max-width: 500px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .page{
        margin-left: 0;
    }
    .page h1{
        font-size: 25px;
        width: 100%;
    }
    .page h2{
        font-size: 20px;
    }
    .page-walas-content{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
    }
    .page img {
        margin-top: 30px;
        width: 200px;
        height: 150px;
    }
    .setting-lebar-sidebar{
        width: 251px;
        overflow: visible;
    }
    .setting-j-ki-page{
        margin-left: 251px;
    }
    .kumpulan-diniyah{
        margin: 0px 10px 20px 10px;
        gap: 20px;
    }
}