/*!
 * CSS Stylesheet
 * Project: eQuran
 * Author: Md Rasheduzzaman
 * Email: jmrashed@gmail.com
 * Version: 1.0.0
 * Last Updated: September 24, 2023
 * Description: This stylesheet controls the styling of the website.
 */

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

* {
    box-sizing: border-box;
}

#myInput {
    background-size: 2em 2em;
    background-image: url('../images/search.png');
    background-position: 10px 12px;
    background-repeat: no-repeat;
    width: 100%;
    font-size: 16px;
    padding: 15px 20px 12px 55px;
    margin-bottom: 12px;
    background-color: #6c6b6b;
    border: none;
    color: #f1f1f1;
}

#myInput::placeholder {
    color: #f1f1f1;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
}

.bg-color1 {
    background: #000 !important;
    color: #ddd !important;
    border: 1px solid #ddd !important;
}

.bg-color1:hover {
    background: #ffffff !important;
    color: #000 !important;
    border: 1px solid #ddd !important;
}

.bg-color2 {
    background: #525252 !important;
    color: #fff !important;
    border: 1px solid #ddd !important;
}

.bg-color2:hover {
    background: #ffffff !important;
    color: #000 !important;
    border: 1px solid #ddd !important;
}

.bg-color2 {
    background: #6b6b6b !important;
    color: #fff !important;
    border: 1px solid #ddd !important;
}

#sidebar {
    width: 20em;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: #525252;
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -20em;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #525252;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #525252;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #2b2b2b !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: calc(100% - 20em);
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}

#content.active {
    width: 100%;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -20em;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #content {
        width: 100%;
    }

    #content.active {
        width: calc(100% - 20em);
    }

    #sidebarCollapse span {
        display: none;
    }
}

.loader {
    border-radius: 50%;
    border-top: 16px solid rgb(0, 0, 255);
    border-right: 16px solid rgb(0, 255, 0);
    border-bottom: 16px solid red;
    border-left: 16px solid pink;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

ul.list-unstyled.components li {
    border-bottom: 1px solid #ddd;
}

.w3-section {
    text-align: right;
    position: fixed;
    right:0;
}

/* Style the buttons */
.w3-button {
    background-color: #f1f1f1;
    border: none;
    color: #333;
    padding: 10px 20px;
    cursor: pointer;
    margin-bottom: 15px;
}

/* Position the buttons to the right */
.w3-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#quranDiv {
    text-align: center;
    display: block;
    align-items: center;
}

/* Logo container styling */
.logo-container {
    text-align: center;
}

/* First part of the logo ("e") styling */
.logo-first-part {
    font-size: 20px;
    font-weight: bold;
    color: #88b5ff;
}

/* Last part of the logo ("Quran") styling */
.logo-last-part {
    font-size: 20px;
    font-weight: bold;
    color: #fbcd02;
}

.select-page {
    padding-left: 1em;
    width: 200px;
}