:root {
    --main: #6aa345;
    --main_half: #13388181;
    --fontAccent: #424242;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 150px;
}

expansion-panel {
    flex: 1;
    max-width: 650px;
    display: block;
    background-color: #fff;
    border-radius: 10px;
    transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #c9c9c9;
    color: #000;

    label{
        font-weight: bold;
    }

    input:not(:checked)+& {
        &:hover {
            background-color: #f5f5f5;

            label{
                color: #6aa345;
            }
        }
    }

    input:checked+& {
        label:hover{
            color: #6aa345;
        }

        .expansion-panel-header {
            height: 64px;

            &:after {
                transform: rotate(270deg);
            }
        }

        .expansion-panel-content {
            max-height: 500px;
            padding-bottom: 12px;
            padding-top: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
    }

    .expansion-panel-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 24px;
        height: 48px;
        transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        cursor: pointer;

        &>* {
            flex: 1;
        }

        &:after {
            content: ">";
            position: absolute;
            font-size: 24px;
            transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1);
            transform: rotate(90deg);
            right: 10px;
        }
    }

    .expansion-panel-content {
        overflow: hidden;
        max-height: 0px;
        padding: 0 24px;
        transition: all 225ms cubic-bezier(0.4, 0, 0.2, 1);
    }
}

accordion{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;

    input:checked+expansion-panel {
        &:not(:first-of-type) {
            margin-top: 10px;
        }

        &:not(:last-of-type) {
            margin-bottom: 10px;
        }
    }
}

.expansion-panel-content a{
    flex: 0 0 calc(33.333% - 10px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--fontAccent);

    i{
        color : #000;
    }
}

.expansion-panel-content a:hover{
    cursor: pointer;
    color: #6aa345;

    i{
        transform: translateX(5px);
        transition: transform 0.3s ease;
    }
}

.expansion-panel-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.letters{
    display: flex;
    flex-flow: wrap;
    justify-content: space-evenly;
    margin-top: 50px;
    margin-bottom: 50px;
    gap: 10px;
    width: 60%;
}

.letters .letter{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: var(--fontAccent);
    border-radius: 50%; /* Makes it a perfect circle */
    font-size: 16px; /* Adjust font size */
    text-align: center; /* Ensures text alignment */
    line-height: 40px; /* Helps with vertical centering if needed */
    
    &:hover{
        cursor: pointer;
        background-color: #d1dbca;
        color: #fff;
        font-weight: bold;
        border-radius: 50%;
    }
}

.letters .selected{
    background-color: #6aa345;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
}

.container h1{
    margin-top: 50px;
    margin-bottom: 50px;
    color: var(--fontAccent);
    text-align: center;
}

.header-span{
    text-align: center;
    color: var(--fontAccent);
    font-weight: bold;
}

