body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9e47d;
}

form {
    width:100%;
}

.content-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-width: 752px;
}

a {
    text-align: center;
}

.card-sticky-wrapper {
    position: relative;
    padding-top: 100px;
}

.cards-container{
    justify-content: center;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.cc-outer{
    padding-top:200px;
}
.cc-inner{
    top:-550px;
}

#cards-container-1{
    height: 5200px;
}

#cards-container-2{
    height: 5200px;
}

#cards-container-3{
    height: 6000px;
}

#cards-container-4{
    height: 4450px;
}

#cards-container-5{
    height: 4450px;
}

#cards-container-6{
    height: 3600px;
}

.sticky-letter-nav {
    position: sticky; /* Enables sticky behavior */
    margin-right: -200px;  
    top: 200px;
    width:35px;
    height:400px;      /* Distance from the top of the viewport */
    background-color: white;
    border-radius: 50px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding:10px;
    z-index: 1;
}

#sticky-letter-nav-3 {
    height:450px;      /* Distance from the top of the viewport */
}

#sticky-letter-nav-6 {
    height:350px;      /* Distance from the top of the viewport */
}

.sticky-letter-nav a{
    text-decoration: none;
    color: black;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10vh;
    background-color: #ffe248;
}

h1, h2 {
    font-size: 18px;
    margin: 0;
}

h3 {
    font-size: 16px;
    margin-bottom: 0;
}

p, strong, em{
    font-size: 16px;
}

li {
    margin-bottom: 10px;
}

ol {
    margin: 0;
    padding: 20px;
}

.title-block {
    display: flex;
    flex-direction: column;
    border: 2px solid black;
    line-height: 1.8em;
    height:auto;
    padding:50px 50px 20px 50px;
    margin: 40px 0px 10px 0px;
    text-align:justify;
    background-color: white;
    width: 100%;
}

.text-block {
    display: flex;
    flex-direction: column;
    border: 2px solid black;
    line-height: 1.8em;
    height:auto;
    padding:20px 50px 20px 50px;
    margin: 40px 0px 10px 0px;
    text-align:justify;
    background-color: white;
    z-index: 2;
    width: 100%;
}

.card {
    height:610px;
    width: 350px;
    border-radius: 10px;
    padding:30px 50px 30px 50px;
    text-align:justify;
    text-align: center;
    line-height: 1.8em;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow:#c7ac00 25px 40px 30px;
}

.word-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    height: auto;
}

.pointer{
    cursor: pointer;
}

.word{
    width: 45%;
}

.urdu{
    font-family: 'Noto Nastaliq Urdu', sans-serif;
    font-size: 22px;
    margin-top: 0;
}

.red{
    color: red;
}

.card-block{
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.8em;
    height:auto;
    margin: 0px 0px 100px 0px;
    text-align:justify;
}

.image-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    height: 200px;
    max-width: 100%;
    background-color: white;
    border-bottom: 2px solid rgb(205, 205, 205);
    border-radius: 5px;
    padding:10px;
}

.m-side-by-side {
    display: flex;
    flex-direction: row;
    align-items: center;
}



.letter {
    display: flex;
    max-height:100%;
    max-width:50%;
}

.nav-letter {
    display: flex;
    max-height:40px;
    max-width:40px;
}

.nav-letter-holder {
    display: flex;
    height:50px;
    width:50px;
    align-items: center;
    justify-content: center;
}

.nav-letter-holder:hover {
    border-bottom: 1px solid lightgrey;
    border-radius: 100%;
    cursor: pointer;
}

.divider {
    text-align: center;
    font-size: 20px;
    color: black;
    line-height: 0;
    margin: 0;
}

.final {
    margin-bottom: 95px;
}

.first {
    margin-top: 95px;
}

.pronunciation {
    font-size: 16px;
    background-color: #ffe248;
    border: 2px solid #caa901;
    border-radius: 4px;
    padding: 10px;
}

.pronunciation span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.pronunciation span:after {
    content: '\25B6';
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0px;
    transition: 0.5s;
  }

.pronunciation:hover {
    background-color: #ffe248;
    cursor: pointer;
}

.pronunciation:hover span {
    padding-left: 25px;
  }
  
.pronunciation:hover span:after {
    opacity: 1;
    left: 0;
  }

.mnenomic {
    text-align: justify;
}

.special-note{
    text-align: justify;
}

.logo {
    height: auto;
    width: 80%;
}

.login {
    text-decoration: none;
    color: black;
}

.login:hover {
    text-decoration: underline;
    color: black;
}

.flip-card {
    background-color: transparent;
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    height:610px;
    width: 350px;
    border-radius: 10px;
    padding:30px 50px 30px 50px;
    text-align:justify;
    text-align: center;
    line-height: 1.8em;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow:#c7ac00 25px 40px 30px;
  }
  
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    right:20px;
    height:610px;
    width: 300px;
    width: 90%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-card-back {
    transform: rotateY(180deg);
  }


@media screen and (max-width: 752px) {
    .content-frame {
        width: 100%;
        min-width: 0px;
    }

    .site-header {
        height: 20px;
    }

    .content-header {
        width: 100%;
    }

    .image-container {
        flex-direction: row;
        height: 200px;
    }

    .m-side-by-side {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .title-block {
        padding:30px 30px 10px 30px;
        margin: 40px 0px 10px 0px;
        text-align:justify;
        width: 80%;
    }
    
    .text-block {
        padding:10px 30px 10px 30px;
        margin: 40px 0px 10px 0px;
        text-align:justify;
        width: 80%;
    }

    .final {
        margin-bottom: 95px;
    }

    .card {
        height:80vh;
        width: 65%;
        max-height:610px;
        max-width: 350px;
    }

    .sticky-letter-nav {
        position: sticky; /* Enables sticky behavior */ 
        top: -2px;
        width:95%;
        height:50px;      /* Distance from the top of the viewport */
        background-color: white;
        border-top: 2px solid black;
        border-bottom: 2px solid black;
        border-radius: 0px;
        justify-content: center;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding:10px;
        z-index: 1;
    }

    #sticky-letter-nav-3 {
        height:50px;      /* Distance from the top of the viewport */
    }
    
    #sticky-letter-nav-6 {
        height:50px;      /* Distance from the top of the viewport */
    }

    .nav-letter {
        display: flex;
        max-height:40px;
        max-width:40px;
    }
    
    .nav-letter-holder {
        display: flex;
        height:40px;
        max-width:10px;
        align-items: center;
        justify-content: center;
    }

    .nav-letter-holder:hover {
        border: none;
        border-radius: 100%;
        cursor: pointer;
    }

    .cc-outer{
        padding-top:0px;
    }
    
    .cc-inner{
        top:40px;
    }

    #cards-container-1{
        height: auto;
    }
    #cards-container-2{
        height: auto;
    }
    #cards-container-3{
        height: auto;
    }
    #cards-container-4{
        height: auto;
    }
    #cards-container-5{
        height: auto;
    }
    #cards-container-6{
        height: auto;
    }
    .first {
        margin-top: 95px;
    }

    .card {
        height:80vh;
        width: 65%;
        max-height:610px;
        max-width: 350px;
    }

    .sticky-letter-nav {
        position: sticky; /* Enables sticky behavior */ 
        top: -2px;
        width:95%;
        height:50px;      /* Distance from the top of the viewport */
        background-color: white;
        border-top: 2px solid black;
        border-bottom: 2px solid black;
        border-radius: 0px;
        justify-content: center;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding:10px;
        z-index: 1;
    }

    #sticky-letter-nav-3 {
        height:50px;      /* Distance from the top of the viewport */
    }
    
    #sticky-letter-nav-6 {
        height:50px;      /* Distance from the top of the viewport */
    }

    .nav-letter {
        display: flex;
        max-height:40px;
        max-width:40px;
    }
    
    .nav-letter-holder {
        display: flex;
        height:40px;
        max-width:10px;
        align-items: center;
        justify-content: center;
    }

    .nav-letter-holder:hover {
        border: none;
        border-radius: 100%;
        cursor: pointer;
    }

    .cc-outer{
        padding-top:0px;
    }
    
    .cc-inner{
        top:40px;
    }

    #cards-container-1{
        height: auto;
    }
    #cards-container-2{
        height: auto;
    }
    #cards-container-3{
        height: auto;
    }
    #cards-container-4{
        height: auto;
    }
    #cards-container-5{
        height: auto;
    }
    #cards-container-6{
        height: auto;
    }
    .first {
        margin-top: 95px;
    }
}
