.cards-wrap {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    width: 300px;
    height: 300px;

    border: 1px solid rgb(202, 202, 202);
    border-radius: 4px;

    cursor: pointer;
    z-index: 1;
}

.card:hover {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.card__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 296px;
    height: 293px;
    cursor: pointer;
}

.card__img {
    max-width: 90%;
    /* max-height: 80%; */
    height: 80%;
    border: 1px solid rgb(219, 219, 219);
}

.card__word.highlight{
    color:white;
    background-color: rgb(77, 77, 77);
    font-size: 18px;
    padding: 3px;
    min-width: 85px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 2px;
}
/* .card__word.highlight{
    font-size: 21px;
    font-weight: bold;
} */

.control-panel {
    display: flex;
    height: 40px;
    background-color: rgb(192, 192, 192);
    margin-bottom: 10px;
}

/* ----------------- GRID */

.grid-layout {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main"
        "footer footer";
    grid-template-columns: 250px 1fr;
    grid-template-rows: 60px 1fr 40px;
    height: 100vh;
}

header {
    grid-area: header;
    /* background: #333; */
    color: white;
    /* padding: 15px; */
}

aside {
    grid-area: sidebar;
    /* background: #f4f4f4; */
    padding: 15px;
}

main {
    grid-area: main;
    padding: 15px;
}

footer {
    grid-area: footer;
    /* background: #333; */
    color: white;
    text-align: center;
    /* padding: 10px; */
}

.dictionary-list{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: start;
}

.dictionary-list__item{

    padding:5px;
    margin-bottom: 5px;
    cursor: pointer;
    border-bottom: 1px solid #bfbfbf;

}

/* ------------------- Cards Play */
.control-panel {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    /* display: inline-block; */
    display: flex;
    box-sizing: border-box;
    position: fixed;
    z-index: 100;
}

.action-buttons {
    display: flex;
    gap: 25px;
    align-items: center;
    /* margin-left: auto; */
}

.action-buttons__play,
.action-buttons__pause,
.action-buttons__stop,
.action-buttons__record {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action-buttons__play {
    background: #4CAF50;
}
.action-buttons__stop {
    background: #f44336;
}

.action-buttons__pause {
    background: #328da4;
}
.action-buttons__record {
    background: #ffffff;
}

.action-buttons__play:hover {
    background: #45a049;
    transform: scale(1.1);
}

.action-buttons__pause:hover {
    background: #2a7a8e;
    /* Темнее на hover */
    transform: scale(1.1);
}

.action-buttons__stop:hover {
    background: #da190b;
    transform: scale(1.1);
}
.action-buttons__record:hover {
    transform: scale(1.1);
}

.action-buttons__play:active,
.action-buttons__pause:active,
.action-buttons__stop:active,
.action-buttons__record:active{
    transform: scale(0.95);
}

.action-buttons__record.active {
    box-shadow: inset 0 0 0 3px #ff4444;
}

.icon {
    width: 24px;
    height: 24px;
}


.play-card-border {
    border: 3px solid rgb(100, 219, 146);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    border-radius: 8px;
}

.record-card-border {
    border: 3px solid #ff4444;
    box-sizing: border-box;
    border-radius: 8px;
}


.hamburger {
    /* font-size: 24px; */
    font-size: 26px;
    cursor: pointer;
    display: none;
    color: #686868;
    position: fixed;
}

/* На мобильных показываем гамбургер и скрываем меню */
@media (max-width: 768px) {
    .control-panel {
        top: 1%;
        left: 50%;
        transform: translate(-50%, 0%);
    }

    .grid-layout {
        display: grid;
        grid-template-areas:
            "header header"
            "sidebar main"
            "footer footer";
        grid-template-columns: 25px 1fr;
        grid-template-rows: 60px 1fr 40px;
        height: 100vh;
    }

    .hamburger {
        display: block;
    }

    main {
        margin-left: 0;
        /* чтобы контент не сдвигался */
    }

    .grid-layout {
        grid-template-areas:
            "header"
            "main"
            "footer";
        grid-template-columns: 1fr;
        /* одна колонка */
        grid-template-rows: 60px 1fr 40px;
    }

    aside {
        grid-area: sidebar;

        position: fixed;
        top: 0;
        left: -250px;
        display: none;
        /* скрыт */
        width: 250px;
        height: 100%;
        background: #333;
        color: #fff;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    aside.open {
        display: inherit;
        left: 0;
        /* показываем */
    }
}