﻿

.autocomplete {
    position: relative;
    width: 100%;
    max-width: 400px;
    color: black;
    text-align: center;
   
    font-family: 'Times New Roman';

    font-size: 20px;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    border-radius: 5px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}



.autocomplete-items {
    position: absolute;
    border: 1px solid black;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
    }

        .autocomplete-items div:hover {
            background-color: #e9e9e9;
        }

 .english {
            font-size: 18px;
            color:black;
        }
.dialogue {
   /* margin: 5px;*/
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    padding: 15px;
}


.text-element {
  
    font-size: 20px;
    margin-bottom: 15px;
    display: block;
}



    .text-element.active {
        font-size: 70px;
        margin: 2px;
        font-weight: bold;
        border-bottom: 2px solid #007BFF;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

.section {
    display: none;
    overflow: hidden;
}

.arrow {
    transition: transform 0.3s ease;
}




.word {
    background-color: #7d0f0f;
    border-radius: 10px;
    transition: transform 0.3s, background-color 0.3s;
    color: black;
    background: white;
    box-shadow: 3px 3px #ff6a00;
    border-radius: 5px;
    display: inline-block;
    margin: 5px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

    .word:hover {
        background-color: #091901;
        color: #4af605
    }


        .word:hover::after {
            content: attr(data-meaning);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            border-radius: 15px;
            max-width: 400px;
            margin: 30px auto;
            color: #dd0909;
            background-color: #f8f9fa;
            background: white;
            margin: 15px 0;
            padding: 20px;
            box-shadow: 0 5px 10px #007bff;
            transition: transform 0.3s, box-shadow 0.3s;
        }

.audio-player {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 2px blue;
    padding: 10px;
    margin-bottom: 5px;
    text-align: center;
}

    .audio-player audio {
        width: 100%;
    }

.song-info {
    margin-top: 10px;
}

.song-name {
    font-size: 18px;
    color: #333;
}


.submit-button {
    width: 70%;
    max-width: 300px;
}



.containerInput-field {
    text-align: center;
}

audio {
    margin-top: 20px;
}


.bodyOfBookContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}


.polaroid {
    /*  margin-bottom: -50px;*/
    margin-left: 10px;
    margin-right: 10px;
    /* margin-bottom: 5px;*/
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #003300;
    color: white;
}




.SubjectOfGrammar {
    margin: 10px;
    color: white;
    padding: 20px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    font-size: 30px;
    background: linear-gradient(DodgerBlue, #0c1393);
    color: #fff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}



/*    .video-container {
            max-width: 800px;
            margin: auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }*/

h1 {
    text-align: center;
}

/*video {
    width: 100%;
    border-radius: 8px;
}

.video-description {
    margin-top: 15px;
}
*/


.containerOfInput {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-field {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 20px;
    color: black;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
    text-align: center;
}

    .input-field:focus {
        border-color: #0056b3;
        outline: none;
    }

.submit-button {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .submit-button:hover {
        background-color: #0056b3;
    }

    .submit-button:active {
        transform: scale(0.98);
    }


.controls {
    margin-bottom: 20px;
}

hr {
    border: none;
    height: 2px;
    background-color: #ff6a00;
    box-shadow: 0 4px 10px #091901;
    margin: 20px auto;
}

.seperationOfParts {
    height: 4px;
    /*  background-color: black;*/
    /* margin: 20px auto;*/
    /* border-bottom: 2px solid #007BFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);*/
    /*	border: none;*/
    /*background-color: #3498db;*/
    background-color:red;
    margin: 20px 0;
    border: none;
   /* border-top: 2px dashed #007BFF;*/
      /*height: 0;*/
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.textelementSeperation {
    /*  border: none;
    border-top: 2px dashed #e74c3c;
    height: 0;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);*/

    flex-grow: 1;
    height: 1px;
    background-color: #333;
}

    .button-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

.responsive-button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    flex-grow: 1;
    margin: 5px;
}


    .responsive-button:hover {
        background-color: #0056b3;
    }


@media (max-width: 600px) {
    .responsive-button {
        font-size: 14px;
        padding: 10px;
    }
}

.section {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.arrow {
    transition: transform 0.3s ease;
}




.containerOfToggleButton {
    justify-content: center;
}

.column {
    margin: 10px;
    margin-bottom: 5px;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    background: #007BFF;
    color: white;
    display: flex;
    justify-content: space-between;
    background-color: #007bff;
    /*  background: linear-gradient(#0c1393, DodgerBlue);*/
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

    .column:hover {
        background-color: #0056b3;
    }

    .column.active {
        background: linear-gradient(#0c1393, DodgerBlue);
    }




.containerInput-field {
    text-align: center;
}

audio {
    margin-top: 20px;
}





.lineOfSection {
    border-top: 2px solid #4A90E2;
    padding-top: 10px;
}

p {
    margin: unset;
    font-weight: 300;
    font-size: 18px;
    line-height: unset;
}



.persian {
    font-size: 18px;
    color:#0805fa;
    font-family: 'B Nazanin', sans-serif;
    direction: rtl;
    text-align: right
}



.toggle-section {
    border: solid;
    border-color: white;
    background-color: white;
}

/*.text-element {
    font-size: 20px;
    margin-bottom: 15px;
    display: block;
}
*/


   /* .text-element.active {
        font-size: 70px;
        font-weight: bold;
    }*/

.farabiHoveringWords {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .farabiHoveringWords:hover {
        white-space: nowrap;
        border-radius: 5px;
        /*color: #4af60f;*/
        color: #fa0909;
        /* background-color: #f8f9fa;
        background: #091901;*/
        /*box-shadow: 0 2px 2px #ff6a00;*/
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        background-color: #ccc;
        background: #fff;
    }




.listOfBooks {
    top: 50%;
    left: 50%;
    font-size: 20px;
    background-color: aqua;
    padding: 10px;
    transition: background-color 0.3s;
}




.containerOfList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}


.unit-list {
    width: 300px;
    border: none;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.unit-item {
    background: white;
    padding: 15px;
    border-left: 5px solid #ffffffcc;
    /*border-left: 5px solid navy; */
    transition: transform 0.3s, box-shadow 0.3s;
}

    .unit-item h2 {
        margin: 0;
        color: #333;
    }



    .unit-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
@media (max-width: 480px) {
    .unit-list {
        flex: 1 1 calc(100% - 20px);
    }
}