.languages-section {
    position: relative;
    margin-top: 40px;
    height: calc(100vh - 80px);
    display: flex;
}

.languages-section .left {
    position: relative;
    height: calc(100%-30px);
    min-width: 230px;
    max-width: 300px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    margin: 30px;
    gap: 40px;
}

.languages-section .left .first {
    flex-grow: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.languages-section .left .first .persons {
    height: auto;
    background: #cfcfcfb8;
    border-radius: 20px;
    padding: 10px;
}
.languages-section .left .persons .person-header {
    width: auto;
    height: 40px;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}
.person-header span {
    margin-left: 10px;
    font-weight: 530;
}
.languages-section .left .persons .person {
    width: auto;
    height: 40px;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
}
.languages-section .left .persons .person:hover {
    background: black;
    color: white;
}
.languages-section .left .persons .person:hover .del {
    background: white;
}

.person .del {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
}
.person img {
    display: none;

    height: 25px;
    width: 25px;
    border-radius: 50%;
    background: black;
    object-fit: cover;
}

.person span {
    margin-left: 10px;
    font-weight: 530;
}

.languages-section .left .sec {
    flex-grow: 3;
}

.languages-section .center {
    position: relative;
    height: calc(100%-30px);
    flex-grow: 1;
    padding: 10px;
    margin: 30px;
    overflow: hidden;
}

.center .languages {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 80px;
}

.center .language {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.learn {
    width: 100%;
    height: 60px;
    background-color: #cfcfcfb8;
    padding: 10px;
    border-radius: 15px;
    align-content: center;
    text-align: center;
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
}




.code-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.code-box {
    background-color: #cfcfcfb8;
    padding: 10px;
    border-radius: 15px;
    flex: 1 1 100%;
    cursor: pointer;
}

/* Ha 2 van, akkor 50%-os */
.code-boxes:has(.code-box:nth-child(2):last-child) .code-box {
    flex: 1 1 calc(50% - 5px);
}

/* Ha 3 van, akkor 33.33%-os */
.code-boxes:has(.code-box:nth-child(3):last-child) .code-box {
    flex: 1 1 calc(33.33% - 7px);
}

/* Ha 4 vagy több van, akkor az első három marad 33.33%, a 4. új sorban 100% */
.code-boxes .code-box:nth-child(n+4) {
    flex: 1 1 100%;
}









.languages-section .right {
    position: relative;
    height: calc(100%-30px);
    min-width: 200px;
    max-width: 250px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    margin: 30px;
    gap: 40px;
}

.languages-section .right .first {
    flex-grow: 6;
}

.languages-section .right .languages {
    height: auto;
    background: #cfcfcfb8;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.languages-section .right .languages .language {
    display: block;
    align-items: center;
    border-radius: 25px;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

.languages-section .right .languages .language span {
    margin-left: 10px;
}

.languages-section .right .languages .language.active {
    /*background: black;
*/    color: white;
}

#indicator {
    position: absolute;
    width: calc(100% - 30px);
    height: 40px;
    background: black;
    border-radius: 25px;
    transition: top 0.3s ease-in-out;
    z-index: 1;
    left: 15px;
}

.languages-section .right .sec {
    flex-grow: 3;
}

.languages-section .ad {
    color: white;
    height: auto;
    background: #cfcfcfb8;
    padding: 15px;
    border-radius: 20px;
    width: 100%;
    text-align: left;
}

.languages-section .ad h2 {
    border-radius: 5px;
    text-align: left;
    color: rgb(0, 0, 0);
}

.languages-section .ad p {
    color: #000000;
    margin: 5px 0 20px 0;
    text-align: left;
}

.languages-section .ad .box-btn {
    background-color: rgb(0, 0, 0);
    color: #f4f4f4;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.languages-section .ad .box-btn:hover {
    background-color: #f4f4f4;
    color: #000000;
}

