main button {
    font-size: 24px;
    padding: 14px 15px 14px 15px;
    border-radius: 7px;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
    background-color: aliceblue;
    transition: background-color 0.3s;
    border: #8baebd 1px solid;
    user-select: none;

    a {
        text-decoration: none;
        color: rgb(0, 0, 0);
    }

    &:hover {
        cursor: pointer;
        background-color: #b6e2ff;
    }
}

.redButton {
    background-color: #ef5454;
    border: 1px solid #db3498;
    transition: background-color 0.3s;
}

.blueButton {
    background-color: #54b1ef;
    border: 1px solid #3498db;
    transition: background-color 0.3s;
}

.quizButton {
    font-size: 18px;
    padding: 8px 13px 8px 13px;
    border-radius: 4px;
    color: rgb(243, 243, 243);
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.blueButton:hover {
    background-color: #3498db;
    cursor: pointer;
}

.redButton:hover {
    background-color: #e22222;
    cursor: pointer;
}

.quiz {
    display: none;
    position: fixed;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    width: calc(60% + 100px);
    height: 80%;
    z-index: 1000;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    flex-direction: column;

    &::before {
        content: '';
        position: absolute;
        width: 1000%;
        height: 1000%;
        top: -150%;
        left: -150%;
        background-color: rgb(0, 0, 0, 0.4);
        z-index: -1;
    }

    &::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: #93e0ff;
        border-radius: 20px;
        border: solid 2px #272727;
        z-index: -1;
    }
}

.quiz .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    transition: color 0.3s;
    color: #272727;
}

.quiz .close:hover {
    cursor: pointer;
    color: #346484;
}

.quiz h1 {
    text-decoration: underline;
    font-size: calc(15px + 2vw);
}

.quiz .question {
    margin-top: 20px;
    display: flex;
    flex-direction: column;

    h2 {
        font-size: 30px;
        margin-bottom: 5px;
    }

    h3 {
        font-size: 25px;
        margin-bottom: 5px;
    }
}

.quiz .question button {
    padding: 10px;
    font-size: 25px;
    margin: 3px;
    border-radius: 5px;
    background-color: #ffffff;
    transition: background-color 0.3s;

    &:hover {
        cursor: pointer;
        background-color: #60c0ff;
    }
}

.quiz input {
    font-size: 20px;
    padding: 5px;
    margin-bottom: 10px;
}

.resource-item.open, .resource-item.open > .grammar-dropdown-content {
    overflow-x: auto;
}

.resource-item.open .quizButton {
    margin-bottom: 30px;
}

.specialChars {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    margin-bottom: 10px;
    margin-top: 10px;

    span {
        font-size: 20px;
        padding: 2px 13px 2px 13px;
        border-radius: 4px;
        background-color: rgb(255, 255, 255);
        user-select: none;

        &:hover {
            cursor: pointer;
            background-color: #96a6b1;
        }
    }
}

.resourcesfr {
    padding-left: 20px;
    padding-right: 20px;
}

.resourcesfr h2 {
    margin-bottom: 20px;
}

.resource-item, .inline-dropdown {
    background-color: transparent;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 5px solid #3498db;
}

.dropdown-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.dropdown-header:hover {
    color: #2980b9;
}

.dropdown-content {
    max-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    transform: rotateX(180deg);
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    display: flex;
    gap: 20px;
}

.resource-item.open > .dropdown-content, .inline-dropdown.open > .dropdown-content {
    margin-bottom: 15px;
   
    opacity: 1;
}

.page {
    transform: rotateX(180deg);
    min-width: 350px;
    max-width: 350px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    height: fit-content;
}

.page h3 {
    font-size: 16.5px;
}

.page hr {
    border-color: black;
    border-width: 1px;
    margin-top: 5px;
    margin-bottom: 6px;
}

.page-1 { background-color: #ffe18e; }
.page-2 { background-color: #cce5ff; }
.page-3 { background-color: #ffadda; }
.page-4 { background-color: #fea197; }
.page-5 { background-color: #fffbad; }
.page-6 { background-color: #beffce; }

text-red { color: rgb(203, 47, 47); }
text-green { color: rgb(43, 173, 43); }
text-blue { color: rgb(58, 127, 207); }
text-purple { color: rgb(127, 43, 207); }

.words {
    display: flex;
    flex-wrap: wrap;
}

.word {
    display: inline-block;
    font-size: 1.2rem;
    padding: 10px;
    width: 100%;
    font-weight: 600;
    text-align: center;
    position: relative;
    color: rgba(44, 62, 80, 1);
    transition: color 0.3s ease-in-out;
}

.word::after {
    content: attr(data-english);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #54a6dd;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    color: transparent;
    transition: background-color 0.1s, opacity 0.4s, color 0.2s 0.3s;
}

.page .word:hover::after {
    opacity: 1;
    color: white;
}

.page .word:hover {
    cursor: pointer;
    color: rgba(44, 62, 80, 0);
    transition: color 0.4s ease-in-out 0.1s;
}

.grammar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: center;
}

.grammar-table th, .grammar-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.grammar-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.grammar-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.grammar-table tr:hover {
    background-color: #f1f1f1;
}

.grammar-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
}

.resource-item.open > .grammar-dropdown-content, .inline-dropdown.open > .grammar-dropdown-content {
    margin-top: 20px;
    max-height: 500px;
    opacity: 1;
}

.inline-dropdown {
    border: 1px solid #ddd;
    margin-top: 15px;
    margin-bottom: 5px;
    width: min-content;
    min-width: calc(35% + 200px);
}

.inline-dropdown .dropdown-header {
    font-size: 1rem;
    color: #2c3e50;
}

.notefr {
    font-size: 0.9rem;
    color: #505050;
    margin-top: 10px;
    margin-bottom: 10px;
}

.grammar-dropdown-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 20px;
    color: #2c3e50;
    font-size: 1rem;
}

.grammar-dropdown-content ul li {
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.grammar-dropdown-content p.example {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    padding: 10px;
    border-left: 4px solid #3498db;
    border-radius: 5px;
    font-style: italic;
    margin-bottom: 15px;
}

.mini-paper {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    margin-top: 5px;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 500px;
}

.mini-paper strong p {
    margin-top: 5px;
    margin-bottom: 15px;
}

.mini-paper .top-left {
    text-align: left;
    font-style: italic;
    margin-bottom: 5px;
    color: #555;
}

.mini-paper .top-right {
    text-align: right;
    font-style: italic;
    margin-bottom: 5px;
    color: #555;
}

.mini-paper h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
    font-weight: bold;
    text-transform: uppercase;
}

.mini-paper .meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.mini-paper .center {
    text-align: center;
    place-items: center;
}

.mini-paper .indent {
    text-indent: 20px;
}

.mini-paper p {
    margin-bottom: 10px;
}

.mini-paper h3 {
    font-size: 0.9rem;
    margin-top: 20px;
    color: #2c3e50;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px;
    padding-bottom: 30px;
    border: 1px solid #404040;
    background-color: #ededed35;
}

.mini-paper ul {
    margin-left: 20px;
    list-style-type: disc;
    color: #333;
}

.mini-paper ul li {
    margin-bottom: 5px;
}

.mini-paper hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 15px 0;
}