.title-of-word {
    text-align: center;
    font-size: 50px;
    margin-top: 0px;
    color: #333; 
}

.section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 100px;
    gap: 20px;
}

.section {
    background-color: white;
    border: 2px solid rgb(150, 150, 150);
    border-radius: 10px;
    width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    overflow: hidden;
}

.section-content {
    padding: 20px; 
}

.section-image {
    width: 250px;
    height: 250px; 
    margin: 0 auto; 
}

.section img {
    width: 100%; 
    height: auto; 
    border-radius: 5px;
    display: block;
}

.section-title {
    font-size: 50px;
    margin: 10px 0;
    color: #333;
}

.section-transcription {
    font-size: 40px;
    color: #666;
    margin: 5px 0;
}

.gif-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 20px; 
}

.section-gif {
    flex: 1 1 30%; 
    max-width: 30%;
    box-sizing: border-box; 
}

.gif-image {
    width: 100%;
    height: auto; 
    border-radius: 5px;
}

.close-container {
    position: fixed;
    display: flex;
    justify-content: flex-start; 
    margin-top: 20px; 
    margin-left: 20px; 
}

.close-button {
    width: 200px; 
    height: 60px; 
    background-color: #c45050; 
    color: white; 
    font-size: 24px; 
    padding: 0; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}

.close-button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .title-of-word {
        margin-top: 15px;
        font-size: 30px; 
    }

    .section-container {
        margin: 20px; 
    }

    .section {
        width: 100%; 
        max-width: 600px; 
    }

    .section-title {
        font-size: 30px;
    }

    .section-transcription {
        font-size: 24px;
    }

    .section-image {
        width: 150px; 
        height: 150px;
    }

    .section-gif {
        flex: 1 0 45%;
        max-width: none;
    }

    .gif-image {
        max-width: 100%;
    }

    .close-button {
        width: 150px;
        font-size: 18px;
    }
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 140px 20px 20px;
    gap: 20px;
}

.card {
    background-color: white;
    border: 2px solid rgb(150, 150, 150);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    width: 300px;
    height: 400px;
}

.card:hover {
    transform: scale(1.05);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.card-title {
    font-size: 28px;
    margin: 10px 0;
    color: #333;
}
.buttons {
    position: absolute;
    top: 90px; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
}

.room-button, .bathroom-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #000;
    padding: 10px 0; 
    border-radius: 5px;
    font-size: 22px;
    cursor: pointer;
    margin: 0 20px; 
    text-align: center; 
    min-width: 350px;
    transition: background-color 0.3s, transform 0.3s; 
}

.room-button:hover, .bathroom-button:hover {
    background-color: rgba(200, 200, 200, 0.8); /* Замените цвет на желаемый */
    transform: scale(1.05); /* Увеличение размера при наведении */
}
/* Адаптивные стили */
@media (max-width: 768px) {
    .card-container{
        margin-top: 120px;
    }
.close-container {
    position: fixed;
    display: flex;
    justify-content: flex-end; 
    margin-top: 0px; 
}

.close-button {
    width: 100px; 
    height: 40px; 
    background-color: #c45050; 
    color: white; 
    font-size: 14px; 
    padding: 0; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}
}


