/*
Website: CDMW TarbiyaApp
Developer: Abubakr Akkari

version: 0.0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.cdnfonts.com/css/gotham-rounded');

@font-face{
    font-display:swap;
    font-family:UthmanicHafs1;
    font-style:normal;
    font-weight:700;
    src:url(fonts/UH1_Ver17.woff2)
}


:root {
    --fsize-xs: 8px;
    --fsize-s: 10px;
    --fsize-r: 12px;
    --fsize-l: 14px;
    --fsize-xl: 20px;
	--fsize-xxl: 26px;
    --primary-color: #d4a66c;
    --secondary-color: #363333;
    --tertiary-color: #476F9A;
    --green-color: #3BB273;
    --red-color: #C5283D;
    --grey-color: #D6D6D6;
}

@media only screen and (min-width:992px) {
    :root {
        --fsize-xs: 10px;
        --fsize-s: 12px;
        --fsize-r: 14px;
        --fsize-l: 16px;
        --fsize-xl: 24px;
		--fsize-xxl: 32px;
    }
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #f3f3f9;
    font-family: 'Poppins', sans-serif;
    font-size: var(--fsize-r);
}

a {
    color: inherit;
    text-decoration: inherit;
}

/*-----------------------------------------------------------------
    General
-------------------------------------------------------------------*/
.hidden {
	display: none !important;
}

.m-hidden {
    display: none !important;
}

@media only screen and (min-width:992px) {
    .b-hidden {
        display: none !important;
    }

    .m-hidden {
        display: inherit !important;
    }
}

.d-center {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.t-center {
    text-align: center;
}

.size100 {
    height: 100%;
    width: auto;
}

@media only screen and (max-width:500px) {
    .m-width100 {
        width: 100% !important;
    }
}

/*-----------------------------------------------------------------
    Wrapper
-------------------------------------------------------------------*/
#wrapper {
    opacity: 0;
}

.wrapper {
    padding: 0 50px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

@media only screen and (max-width:500px) {
    .wrapper {
		padding: 0 20px;
        max-width: 100%;
    }
}

/*-----------------------------------------------------------------
    Loader
-------------------------------------------------------------------*/
.overlay{
	position: absolute;
	z-index:9999;
	height: 100%;
	width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
	flex-direction: column;
	text-align: center;
	transition: all .1s linear;
}

.loader-text {
	width: 100%;
	font-size: var(--fsize-l);
	font-weight: 600;
}

.rubix-cube{
	width:48px;
	height:48px;
	position:relative;
	margin-bottom:20px
}
.rubix-cube .layer{
	width:14px;
	height:14px;
	background-color:#363333;
	position:absolute;
	
}
.rubix-cube .layer-1{
	left:0px;
	top:0px;
	animation: rubixcube4 2s infinite linear;
}
.rubix-cube .layer-2{
	left:16px;
	top:0px;
	animation: rubixcube3 2s infinite  linear; 
}
.rubix-cube .layer-3{
	left:32px;
	top:0px;
	background-color:#d4a66c !important;
}
.rubix-cube .layer-4{
	left:0px;
	top:16px;
	animation: rubixcube5 2s infinite linear; 
	
}
.rubix-cube .layer-5{
	left:16px;
	top:16px;
	animation: rubixcube2 2s infinite linear; 
}
.rubix-cube .layer-6{
	left:32px;
	top:16px;
	animation: rubixcube1 2s infinite linear; 
}
.rubix-cube .layer-7{
	left:0px;
	top:32px;
	animation: rubixcube6 2s infinite linear; 
}
.rubix-cube .layer-8{
	left:16px;
	top:32px;
	animation: rubixcube7 2s infinite linear; 
	
}
@keyframes rubixcube1{
	20%{ top:16px; left:32px;}
	30%{ top:32px; left:32px; }
	40%{ top:32px; left:32px; }
	50%{ top:32px; left:32px; }
	60%{ top:32px; left:32px; }	
	70%{ top:32px; left:32px; }	
	80%{ top:32px; left:32px; }	
	90%{ top:32px; left:32px; }	
	100%{ top:32px; left:16px; }
	
}
@keyframes rubixcube2{
	30%{ left:16px;}
	40%{ left:32px;}
	50%{ left:32px;}
	60%{ left:32px;}
	70%{ left:32px;}
	80%{ left:32px;}
	90%{ left:32px;}
	100%{ left:32px;}
}

@keyframes rubixcube3{
	30%{ top:0px;}
	40%{ top:0px;}
	50%{ top:16px;}
	60%{ top:16px;}
	70%{ top:16px;}
	80%{ top:16px;}
	90%{ top:16px;}
	100%{ top:16px;}
}
@keyframes rubixcube4{
	50%{ left:0px;}
	60%{ left:16px;}
	70%{ left:16px;}
	80%{ left:16px;}
	90%{ left:16px;}
	100%{ left:16px;}
}
@keyframes rubixcube5{
	60%{ top:16px;}
	70%{ top:0px;}
	80%{ top:0px;}
	90%{ top:0px;}
	100%{ top:0px;}
}
@keyframes rubixcube6{
	70%{ top:32px;}
	80%{ top:16px;}
	90%{ top:16px;}
	100%{ top:16px;}
}
@keyframes rubixcube7{
	80%{ left:16px;}
	90%{ left:0px;}
	100%{ left:0px;}
}

/*--------------------------------------
            TOPBAR
--------------------------------------*/
header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(56 65 74 / 15%);
    transition: all .1s ease-out;
    z-index: 1000;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.topbar-side {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    display: inline-block;
    padding: 0 1.3rem 0 0;
    text-align: center;
    transition: all .1s ease-out;
    height: 30px;
}

.top-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    font-size: 25px;
    position: relative;
    margin-right: 20px;
}

@media only screen and (max-width:500px) {
    .top-item {
        font-size: 20px;
    }
}

.top-item .count {
    position: absolute !important;
    top: -5px;
    right: -5px;
    font-size: var(--fsize-xs);
    font-weight: 800;
    color: #fff;
    background-color: red;
    border-radius: 100%;
    height: 15px;
    width: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    background-color: #f3f3f9;
    font-size: var(--fsize-s);
}

.top-user .user-name {
    font-weight: 600;
}

.top-user .user-role {
    font-weight: 400;
}

/*--------------------------------------
            SIDEBAR
--------------------------------------*/
sidebar {
	position: fixed;
    width: 80px;
    max-height: 80vh;
    background-color: var(--primary-color);
    margin: 10vh 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
	flex-direction: column;
	text-align: center;
    top: 0;
	bottom: 0;
	justify-content: center;
    filter: drop-shadow(1px 1px 2px rgb(56 65 74 / 15%));
    color: #fff;
    left: -79px;
    transition: all .5s ease-in-out;
}

sidebar:after {
    content: "";
    top: calc(50%);
    right: -40px;
    position: absolute;
    border-color: transparent transparent transparent var(--primary-color);
    border-style: dashed;
    border-width: 20px;
}

sidebar:hover {
    left: 0;
}

.domains-menu {
	overflow: overlay;
	margin: 10px 0;
}

.domains-menu::-webkit-scrollbar {
    display: none;
}

.domain-item {
	margin: 2rem 0;
	height: auto;
    transition: all .4s ease-in-out;
    cursor: pointer;
}

.domain-item:hover {
    scale: 1.2;
}

.domain-item > i {
	font-size: var(--fsize-xl);
	width: 100%;
}

.domain-item > span {
	font-size: var(--fsize-xs);
	width: 100%;
}

/*--------------------------------------
            CONTENT
--------------------------------------*/
main {
    top: 60px;
    position: absolute;
    left: 2rem;
    right: 2rem;
    transition: all .5s ease-in-out;
    bottom: 60px;
}

sidebar:hover + main {
    margin-left: 80px;
}

.content-wrapper {
    position: relative;
    height: 100%;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 auto;
    align-items: center;
}

.column {
    position: relative;
    background-color: #fff;
    box-shadow: 2px 2px 10px rgb(56 65 74 / 15%);
    border-radius: 10px;
    flex-grow: 1;
    margin: 0 1%;
    max-height: 100%;
    max-width: 31%;
    overflow: overlay;
    transition: all 0s ease-in-out;
    transform-origin: left;
    scale: 0;
}

.column.active {
    scale: 1;
    transition: all .2s ease-in-out;
}

@media only screen and (max-width:500px) {
    .column {
        display: none;
        max-width: 100%;
    }
    .column.m-active {
        display: block;
    }
}

.column + .column::before {
    content: ">";
    position: absolute;
    left: -2rem;
    top: 50%;
    font-size: 20px;
    width: 2rem;
    text-align: center;
}

.column-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.column-content > .subtitle {
    color: #ccc;
    font-weight: 100;
}

.column-content > .title {
    font-weight: 600;
    font-size: var(--fsize-l);
}

.column-content hr {
    background-color: #ccc;
    height: 1px;
    width: 100%;
    border: none;
    margin: 1rem 0;
}

.column-item {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.column-item:hover {
    background-color: #f5f5f5;
}

.column-item > .subtitle {
    color: #707070;
    font-weight: 100;
}

.column-item > .title {
    font-weight: 500;
}

.column-item.active {
    background-color: #ddd;
}

.label__check {
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    vertical-align: middle;
    margin: 0 .5rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (max-width:500px) {
    .label__check {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.task-status {
    display: none;
}

.task-status:checked + .label__check {
    background-color: green;
    color: white;
    animation: check 1s cubic-bezier(0.895, 0.030, 0.685, 0.220) forwards;
}

.task-status:checked + .label__check > i {
    animation: icon 1s cubic-bezier(0.895, 0.030, 0.685, 0.220) forwards;
}

.checkboxes {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.column-content .edit {
    position: absolute;
    right: 2rem;
    height: 40px;
    width: 40px;
    font-size: var(--fsize-xxl);
    text-align: center;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Check-Animation */
@keyframes icon {
    from {
      opacity: 0;
      transform: scale(0.3);
    }
    to {
      opacity: 1;
      transform: scale(1)
    }
}
  
@keyframes check {
    0% {
      border-width: 3px;
    }
    10% {
      opacity: 0.1;
      background: rgba(0,0,0,0.2);
      border-width: 15px;
    }
    12% {
      opacity: 0.4;
      background: rgba(0,0,0,0.1);
      border-width: 0;
    }
    50% {
      scale: 1.2;
      background: green;
      border: 1px solid rgba(0, 0, 0, 0.1);
      opacity: 0.6;
    }
    100% {
      scale: 1;
      background: green;
      border: 3px solid rgba(0, 0, 0, 0.1);
      opacity: 1;
    }
}

/*--------------------------------------
            LOGIN
--------------------------------------*/
.screen-wrapper {
    height: 90vh;
    width: 90vw;
    margin: auto;
}

.content-box {
    width: 390px;
    max-width: 95%;
    height: 640px;
    max-height: calc(90% - 60px);
    background-color: #fff;
    border-radius: 25px;
    padding: 25px;
    box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;
    transition: all .1s ease-in-out;
    overflow: hidden;
}

.content-screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    transition: all .2s ease-in-out;
}

.content-screen.active {
    display: flex;
}

.left-out {
    transform: translateX(-120%);
}

.right-out {
    transform: translateX(120%);
}

.cover-part {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: 1rem 0;
}

.cover-part i {
    font-size: 182px;
    color: green;
}

.app-image {
    max-height: 100px;
}

.app-title {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    padding-top: 20px;
}

.navigation-part {
    color: var(--secondary-color);
    position: absolute;
    top: 0;
    font-size: 32px;
    cursor: pointer;
}

.buttons-part {
    padding-top: .5rem;
}

.bud-button {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    min-width: 150px;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 20px;
    border-style: solid;
    border-color: transparent;
    border-radius: 15px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-width: 0 0 4px;
    padding: 13px 0;
    margin: 13px 0;
    box-shadow: 0 5px var(--secondary-color);
    transition: all .2s ease-in-out;
    cursor: pointer;
}

.bud-button-label {
    text-transform: uppercase;
}

.bud-button.button-2 {
    color: var(--primary-color);
    border-color: var(--secondary-color);
    border-width: 1px 1px 1px;
    background-color: unset;
}

.bud-button.button-3 {
    border-width: 1px 1px 1px;
    background-color: var(--tertiary-color);
}

.bud-button.animateBtnIn {
    animation: budbtnIn 1s ease-in-out;
}

@keyframes budbtnIn {
    0% {
        opacity: 0;
        transform-origin: left bottom;
        translate: 0 -15px;
    }
    100% {
        opacity: 1;
        transform-origin: left bottom;
        translate: 0;
    }
}

.bud-button:hover {
    transform: translateY(3px);
    box-shadow: 0 2px var(--secondary-color);
}

.bud-button.disabled:hover {
    transform: none;
}
.bud-button.disabled {
    background-color: #e5e5e5;
    border-width: 0;
    box-shadow: none;
    cursor: inherit;
    user-select: none;
    pointer-events: none;
}

.bud-input {
    align-items: center;
    background: #f7f7f7;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    display: flex;
    position: relative;
    width: 100%;
    cursor: text;
    padding: 8px 16px;
    box-sizing: border-box;
    line-height: 27px;
    margin: 13px 0;
    font-size: 100%;
    letter-spacing: .8px;
}

.bud-input:focus-visible {
    outline: none;
}

.bud-input.error {
    border: 2px solid rgba(255, 0, 0, 0.2);
    background: rgba(255, 0, 0, 0.2);
}

.options-part {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}

.options-row {
    width: 100%;
    justify-content: center;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.bud-option {
    border-radius: 16px;
    border-style: solid;
    border-width: 2px 2px 4px;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    margin: 12px;
    height: 140px;
    width: 140px;
    padding: 12px;
    text-align: center;
    color: var(--secondary-color);
    border-color: #e5e5e5;
}

@media only screen and (max-width:500px) {
    .bud-option {
        width: 110px;
    }
}

.bud-option:hover {
    background-color: #f7f7f7;
}

.bud-option.active {
    border-color: #EBD8C1;
    background-color: #F5ECE0;
}

.bud-option-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.bud-option-icon {
    max-height: 100%;
    height: 80px;
    margin: 5px 0;
    font-size: 42px;
}

.bud-option-icon img {
    height: 100%;
}

.bud-option-sublabel {
    letter-spacing: .8px;
    font-weight: 200;
    font-size: var(--fsize-s);
}

.text-part {
    margin-top: 1rem;
}

.bud-text {
    width: 100%;
    text-align: center;
    font-size: var(--fsize-xl);
    font-weight: 500;
    letter-spacing: .8px;
}

.error-part {
    scale: 0;
    transition: all .4s ease-in-out;
}

.error-part.error-part-2 {
    margin-left: 50px;
}

.error-text {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    font-size: var(--fsize-r);
    padding: 10px;
    border: 2px solid rgba(255, 0, 0, 0.2);
    background: rgba(255, 0, 0, 0.2);
}

.footer {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 1rem;
    text-align: center;
    width: 100%;
    font-weight: 300;
    font-size: var(--fsize-s);
}

.footer-title {
    font-weight: 100;
    width: 100%;
    text-transform: uppercase;
}


/*--------------------------------------
            Quran App
--------------------------------------*/

.chapter-screen {
    height: 100vh;
    width: 100vw;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    justify-content: center;
    margin-top: 50px;
}

.chapter-bar {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary-color);
    width: 100%;
    padding: 10px 20px;
    height: 50px;
    z-index: 1001;
    box-shadow: 0 1px 2px rgb(56 65 74 / 15%);
    display: flex;
    justify-content: space-between;
}

.chapter-bar-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 4px solid var(--tertiary-color);
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    background-color: #f3f3f9;
    position: relative;
    cursor: pointer;
}

.chapter-bar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.chapter-bar-item {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: var(--fsize-l);
    text-align: center;
    font-family: 'Core Sans A', sans-serif;
    gap: 7px;
    min-width: 20px;
}

.cb-item-icon {
    font-size: calc(var(--fsize-xl) + 2px);
}

.cb-item-icon.grey {
    filter: drop-shadow(0px 0px 2px white);
    color: #5c5c5c;
}

.cb-item-icon.grey + .cb-item-label {
    color: #5c5c5c;
}

.cb-user {
    font-size: calc(var(--fsize-xl) + 8px);
}

ul.cb-user-menu {
    scale: 0;
    list-style: none;
    position: absolute;
    top: 50px;
    right: 10px;
    min-width: 200px;
    padding: 5px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: rgb(54 51 51 / 40%) 0px 0px 0px 5px, rgb(54 51 51 / 65%) 0px 4px 6px -1px, rgb(255 255 255 / 8%) 0px 1px 0px inset;
    transition: all .2s ease-in-out;
    transform-origin: calc(100% - 25px) -10px;
    font-size: var(--fsize-r);
    text-align: start;
    z-index: 1026;
}

ul.cb-user-menu:before {
    content: " ";
    position: absolute;
    bottom: 100%;
    right: 15px;
    margin-left: -5px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.chapter-bar-item.open ul.cb-user-menu {
    scale: 1;
}

.cb-quick-btn-item {
    color: #292340;
    padding: 5px 0;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid #ccc;
    line-height: 25px;
}

ul.cb-user-menu *:last-child .cb-quick-btn-item:last-child {
    border-bottom: none;
}

.cb-quick-btn-item:hover {
    text-decoration: underline;
}

.cb-user-menu i {
    font-size: var(--fsize-l);
    padding: 0 10px;
    width: 30px;
}

.cb-item-label {
    font-size: var(--fsize-l);
}

.chapter-bar-item#cb-streak .cb-item-icon:not(.grey) {
    animation: glow 1s infinite alternate;
    filter: drop-shadow(0px 0px 2px white);
    color: var(--red-color);
}

@keyframes glow{
    from{text-shadow:0px 0px 5px #fff,0px 0px 5px var(--red-color);}
    to{text-shadow:0px 0px 20px #fff,0px 0px 20px red;}
}

.chapter-no {
    color: var(--secondary-color);
}

.chapter-no.empty:before {
    content: "";
    height: calc(100% + 8px);
    width: 2px;
    background-color: var(--tertiary-color);
    position: absolute;
    top: -4px;
    right: calc(50% - 1px);
}

.chapter-no.empty:after {
    content: "";
    background: var(--primary-color);
    width: 50%;
    position: absolute;
    height: 100%;
    top: 0;
    /* transform: rotateY(180deg) skewY(-15deg); */
    transform-origin: left;
    transition: 1s ease-in-out;
    border-radius: 0px .5px .5px 0;
}

.chapter-no.empty.switch:after {
    transform: rotateY(180deg) skewY(-15deg);
}

.passage {
    width: 100%;
    position: relative;
}

.passage:not(:last-of-type):not(:has(.lesson:not(.greyed-out))) {
    filter: grayscale(1) blur(1px);
}

.passage-header {
    position: sticky;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
    color: #fff;
    top: 49px;
    z-index: 999;
    text-indent: 75px;
    font-size: var(--fsize-l);
    font-family: 'Core Sans A', sans-serif;
    border-bottom: 30px solid #f3f3f9;
    transition: box-shadow .4s ease-in-out;
}

.passage:last-child .passage-header {
    border-bottom: none;
}

.passage-shadow {
    box-shadow: rgb(0 0 0 / 5%) 0px 6px 24px 0px, rgb(0 0 0 / 8%) 0px 0px 0px 1px;
}

.passage-before {
    position: absolute;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    background: #f3f3f9;
    top: -20px;
    left: 40px;
}

.passage-bullet {
    position: absolute;
    height: 40px;
    width: 40px;
    background: var(--tertiary-color);
    top: 0;
    left: 0;
    border-radius: 100%;
    border: 10px solid #f3f3f9;
}

.passage-bullet.incomplete {
    background: var(--grey-color);
}

.passage-before-tail {
    position: absolute;
    top: -25px;
    left: -40px;
    height: 15px;
    width: 4px;
    background-color: var(--tertiary-color);
    /* border-radius: 2px; */
    margin: 25px 58px;
}

.passage-before-tail.incomplete {
    background-color: var(--grey-color);
}

.passage:nth-child(1) .passage-before {
    display: none;
}

.passage-after {
    position: absolute;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    background: #f3f3f9;
    bottom: -20px;
    left: 40px;
}

.passage-after-space {
    position: absolute;
    height: 20px;
}

.passage-after-tail {
    position: absolute;
    top: 0px;
    left: -40px;
    height: 25px;
    width: 4px;
    background-color: var(--tertiary-color);
    /* border-radius: 2px; */
    margin: 25px 58px;
}

.passage-after-tail.incomplete {
    background-color: var(--grey-color);
}

.passage-row {
    width: 100%;
    position: relative;
}

.tail {
    height: calc(100% + 60px);
    width: 4px;
    background-color: var(--grey-color);
    border-radius: 2px;
    margin: 10px 58px;
    position: absolute;
    top: -40px;
}

.tail-complete {
    width: 4px;
    background-color: var(--tertiary-color);
    border-radius: 2px;
    margin: 10px 58px;
    position: absolute;
    top: -40px;
    transition: all .4s ease-in-out;
}

.lesson {
    --lesson-size: 55px;
    position: relative;
    display: flex;
    width: var(--lesson-size);
    height: var(--lesson-size);
    align-items: center;
    justify-content: center;
    margin-left: calc(60px - (0.5 * var(--lesson-size)));
    margin-top: 25px;
    margin-bottom: 50px;
}

.lesson.greyed-out {
    pointer-events: none;
}

.lesson-icon {
    font-size: var(--fsize-xl);
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--lesson-size);
    height: var(--lesson-size);
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: inset 0px -6px var(--secondary-color);
    padding-bottom: 5px;
    color: #fff;
    cursor: pointer;
}

.lesson-icon:has(~ .lesson-details.animate) {
    background: linear-gradient(135deg, rgba(212,166,108,1) 10%, rgba(212,130,108,1) 85%, rgba(212,166,108,1) 100%);
    animation: animateLessonIcon 3s ease-in-out infinite;
}

@keyframes animateLessonIcon {
    0% {background-position-x: 0}
    33% {background-position-x: var(--lesson-size)}
    100% {background-position-x: var(--lesson-size)}
}

.lesson.greyed-out .lesson-icon {
    background-color: var(--grey-color);
}

.lesson-stars {
    position: absolute;
    top: 0;
    right: 100%;
    color: var(--tertiary-color);
    margin-right: 5px;
    font-size: var(--fsize-r);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

.lesson-stars > *:nth-child(1) {
    transform: rotateZ(10deg);
}

.lesson-stars > *:nth-child(2) {
    transform: rotateZ(-10deg);
}

.lesson-stars > *:nth-child(3) {
    transform: rotateZ(15deg);
}

.lesson-stars i i {
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    overflow: hidden;
}

.lesson.greyed-out .lesson-stars {
    color: var(--grey-color);
}

.lesson-details {
    position: absolute;
    right: calc(-20px - 65vw);
    background-color: #fff;
    width: 65vw;
    padding: 20px;
    border-radius: 10px;
    font-size: var(--fsize-r);
    box-shadow: 3px 3px 0px var(--secondary-color);
    color: var(--secondary-color);
    z-index: 998;
    transition: scale .2s ease-in-out;
    transform-origin: 0 30px;
    scale: 0;
}

.lesson-details.active {
    scale: 1;
    transition: scale .4s ease-in-out;
}

.lesson-details:before {
    content: " ";
    position: absolute;
    top: calc(50% - 5px);
    right: 100%; /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.lesson:nth-child(3) .lesson-details {
    top: 0;
}

.lesson:nth-child(3) .lesson-details::before {
    top: 25px;
}

.lesson:last-child .lesson-details {
    top: unset;
    bottom: 0;
}

.lesson:last-child .lesson-details::before {
    top: unset;
    bottom: 15px;
}

.lesson-title {
    font-weight: 800;
}

.lesson-menu {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.lesson-button {
    padding: 5px 10px;
    line-height: 25px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background-color: var(--primary-color);
    color: #fff;
    letter-spacing: .8px;
    border-style: solid;
    border-color: transparent;
    border-radius: 10px;
    border-width: 0 0 4px;
    box-shadow: 0 5px var(--secondary-color);
    transition: all .2s ease-in-out;
    cursor: pointer;
}

.lesson-button.button-1 {
    flex-grow: 1;
}

.lesson-button.button-2 {
    font-size: var(--fsize-l);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    border-width: 1px 1px 1px;
    background-color: unset;
}

.lesson-button:hover {
    transform: translateY(3px);
    box-shadow: 0 2px var(--secondary-color);
}

/*--------------------------------------
            Lesson App
--------------------------------------*/

.home-screen {
    width: 100vw;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 70px;
}

.surahs-list {
    margin: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.surah-list-item {
    background-color: white;
    height: 100px;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.sli-left {
    height: 100%;
    aspect-ratio: 1;
    background: var(--primary-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--fsize-l);
    text-align: center;
    font-weight: 900;
    color: white;
}

.sli-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sli-status {
    display: flex;
}

.sli-status-item {
    flex-grow: 1;
    text-align: center;
}

.sli-status-icon {
    font-size: var(--fsize-xl);
    line-height: 20px;
}

.sli-status-title {
    font-style: italic;
}

.sli-status-subtitle {
    font-style: italic;
}

.sli-start {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fsize-xxl);
    height: 100%;
    color: var(--tertiary-color);
    aspect-ratio: 1;
}

.welcome-message {
    width: 100%;
    margin: 20px;
    position: relative;
}

.welcome-text {
    padding: 15px;
    font-size: var(--fsize-l);
    line-height: 24px;
}

.reader-animation {
    position: absolute;
    width: 85px;
    right: 30px;
    bottom: 95px;
}

.reader-animation:after {
    content: "";
    width: 3px;
    height: 25px;
    position: absolute;
    background: #f3f0f3;
    bottom: 25px;
    left: calc(50% - 2px);
    rotate: -65deg;
    transform-origin: bottom;
    transition: .4s ease-in-out;
    animation: 20s bookScroll infinite;
}

@keyframes bookScroll {
    0% {rotate: -65deg;}
    10%, 100% {rotate: 65deg;}
}

.goal-card {
    background-color: white;
    height: 100px;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    box-shadow: rgb(0 0 0 / 15%) 1.95px 1.95px 2.6px;
    flex-direction: column;
}

.goal-card-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.goal-card-top i {
    font-size: var(--fsize-xl);
    animation: 20s progressRotate infinite;
}

@keyframes progressRotate {
    0% {rotate: 0;}
    10%, 100% {rotate: 360deg;}
}


.goal-card-progress {
    height: 40px;
    width: 100%;
    background: #eee;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.progress-time {position: absolute;right: 20px;line-height: 20px;top: calc(50% - 10px);font-family: monospace;font-weight: 600;font-size: var(--fsize-l);}

.current-progress {
    position: absolute;
    background-color: var(--tertiary-color);
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 20px;
    transition: 1s ease-in-out;
    max-width: 100%;
    animation: 3s loadProgress forwards;
}

@keyframes loadProgress {
    0% {width: 0;}
    100% {width: calc(100% * var(--current));}
}

.current-progress:after {
    content: "";
    position: absolute;
    height: 20px;
    width: 4px;
    background: #eee;
    top: calc(50% - 10px);
    right: 15px;
    border-radius: 2px;
}
