@font-face {
    font-family: "abril";
    src: url(fonts/AbrilFatface-Regular.ttf);
}

@font-face {
    font-family: "vietnam";
    src: url(fonts/BeVietnamPro-Light.ttf);
}

:root {
    --bookmark-font-size: 30px;
    --bookmark-height: 60px;
    --bookmark-bgcolor: black;

}

body {
    color: black;
    /* background: #a1a1a1; */

    /* background-image: url(https://thumbs.dreamstime.com/b/abstract-rustic-surface-white-wood-table-texture-background-clo-abstract-rustic-surface-white-wood-table-texture-background-close-101913567.jpg); */
    /* background-image: url(https://images.unsplash.com/photo-1495195129352-aeb325a55b65?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8d2hpdGUlMjBjdXR0aW5nJTIwYm9hcmQlMjB3aXRoJTIwZm9vZHxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60); */
    /* background-color: rgb(80, 81, 81); */
    /* background-position: cover; */
    /* background-size: cover; */
}

.card {
    display: flex;
    flex-direction: row;

    width: 60vw;
    height: auto;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 1600px;
    /* border:10px dashed rgb(255, 236, 236); */
    gap: 1em;
    padding: 30px;

    border-radius: 30px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    box-shadow: 7px 7px 14px #c2c2c2,
        -7px -7px 14px #ffffff;

}

.columns {
    /*flex item of .card. flex-box of */
    background-color: inherit;
    width: auto;
    display: flex;
    flex-direction: column;
    /* border: 5px solid orange; */
    gap: 1em;
}

a {
    text-decoration: none;
    background-color: inherit;
    font-weight: bold;
    font-family: "vietnam";

}

.title {
    word-break: break-all;
    background-color: inherit;
    font-size: clamp(30px, 6vw, 120px);
    font-family: "abril";
    text-align: center;
    margin: 0;
}

.main-image-container {
    background-color: inherit;
    flex: 1;
    align-items: center;
    justify-content: center;
    /* border:5px solid orange; */
}

.main-image-container img {
    width: 100%;
}

.bookmark {
    background-color: inherit;
    margin-top: 30px;
    text-align: center;
    font-size: var(--bookmark-font-size);
    font-weight: 1000;
}

.bookmark-text {
    background-color: inherit;
    font-family: "abril";
    height: var(--bookmark-height);
    width: auto;
    box-sizing: border-box;
    border: 0;
    padding: 8px;
    float: left;
    color: white;
    background-color: var(--bookmark-bgcolor);

}

.bookmark-triangle {
    background-color: inherit;
    float: left;
    height: 0;
    width: 0;
    border-top: calc(var(--bookmark-height)/2) solid var(--bookmark-bgcolor);
    border-bottom: calc(var(--bookmark-height)/2) solid var(--bookmark-bgcolor);
    border-right: var(--bookmark-height) solid transparent;
    /* border-color: currentcolor; */
}

.dish-module {
    background-color: inherit;
    display: flex;
    /* border: 4px solid white; */
    margin-bottom: 5px;
    padding: 10px;
}

.dish-module:hover {
    border-radius: 30px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    box-shadow: 7px 7px 14px #c2c2c2,
        -7px -7px 14px #ffffff;
}

.dish-text {
    word-break: break-all;
    background-color: inherit;
    width: 50%;
    font-family: "vietnam";
    font-size: 23px;
    /* border: 4px solid blue; */
}

.dish-image {
    background-color: inherit;
    display: flex;
    /* border: 2px solid rgb(230, 201, 40); */
    transition: .5s ease;
    flex-grow: 0;
    flex-shrink: 2;

}

.dish-image img {
    background-color: inherit;
    object-fit: contain;
    width: 100%;
    transition: 1s ease;
}

.dish-image-caption {
    color: black;
    background-color: inherit;
    transition: .5s ease;
    opacity: 0;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: "vietnam";
}

.dish-image:hover .dish-image-caption {
    opacity: 3;
}

.columns:nth-child(2) .dish-module:nth-child(5) {
    flex-direction: column;
}

.columns:nth-child(2) .dish-module:nth-child(5) .dish-text {
    width: 100%;
}


/* make bookmark responsive  */

@media screen and (max-width:1165px) {
    :root {
        --bookmark-font-size: 30px;
    }
}

@media screen and (max-width:950px) {
    :root {
        --bookmark-font-size: 20px;
        --bookmark-height: 40px;
    }

    .dish-text,
    .dish-image-caption {
        font-size: 20px;
    }
}

@media screen and (max-width:665px) {
    :root {
        --bookmark-font-size: 17px;
    }

    .dish-text,
    .dish-image-caption {
        font-size: 20px;
    }
}

@media screen and (max-width:295px) {
    :root {
        --bookmark-font-size: 10px;
        --bookmark-height: 30px;
    }

    .dish-text,
    .dish-image-caption {
        font-size: 6px;
    }

}


/* responsive flexbox layout */

@media screen and (max-width:1360px) {
    .dish-module {
        flex-direction: column;
    }

    .dish-text {
        width: auto;
    }
}

@media screen and (max-width:600px) {
    .card {
        flex-direction: column;
        padding: 20px;
    }

    .dish-text {
        font-size: 20px;
        width: auto;
    }

}