@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+SC:ital,wght@0,100..900;1,100..900&family=Saira+Stencil+One&display=swap');

:root {
    /* COLORS */
    --mc: #b61e1e; /* Main color */
    --lc: #fff; /* Light color */
    --dc: #333; /* Dark color */
    --vc: green; /* Valid color */
    --rc: red; /* Reject color */
    --fdc: #00008B; /* Form details color */
    /* FONTS */
    --fa: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Font Article (More Readable) */
    --ft: "Saira Stencil One", "Segoe UI"; /* Font Title */
    --fm: "Alumni Sans SC", "Segoe UI"; /* Font Majuscules */
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: url('../img/images/plage.jpg') no-repeat center center/cover;
    min-height: 100vh;
    margin: 0;
    header {
       display: flex;
       flex-direction: row;
       align-items: center;
       justify-content: space-between;
       padding: 10px 15px;
       background: var(--lc);
       box-shadow: 4px 4px 4px rgba(255, 255, 255, 0.8);
       .part-header {
            display: flex;
            align-items: center;
            justify-content: center;
            img {
                height: 75px;
                width: auto;
            }
            &:nth-child(2) {
                font-size: 40px;
                font-family: var(--ft);
                text-transform: uppercase;
                color: var(--mc);
                img {
                    padding-right: 10px;
                }
            }
       }
    }
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        h1 {
            color: var(--mc);
            font-size: 50px;
            text-transform: uppercase;
            font-family: var(--ft);
        }
        .container-languages {
            width: 30%;
            padding: 7.5px 10px;
            font-family: var(--fa);
            .text-info {
                font-size: 18px;
                font-weight: bold;
                transition: opacity 0.5s ease;
                text-align: center;
                color: var(--lc);
                -webkit-backdrop-filter: blur(10px) saturate(200%);
                backdrop-filter: blur(10px) saturate(200%);
                background-color: rgba(255, 255, 255, 0.1);
                box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                padding: 5px 0;
                width: 70%;
                margin: 0 auto 15px auto;
                border-radius: 10px;
            }
            .container-box {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-around;
                .box-language {
                    -webkit-backdrop-filter: blur(2px) saturate(200%);
                    backdrop-filter: blur(2px) saturate(200%);
                    background-color: rgba(255, 255, 255, 0.1);
                    border: 1px solid rgba(255, 255, 255, 0.3);
                    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    border-radius: 5px;
                    padding: 7.5px;
                    color: var(--lc);
                    text-transform: uppercase;
                    font-family: var(--fm);
                    font-size: 22.5px;
                    font-weight: bold;
                    cursor: pointer;
                    transition: all ease 0.2s;
                    outline: 2px solid transparent;
                    &:hover {
                        -webkit-backdrop-filter: blur(5px) saturate(200%);
                        backdrop-filter: blur(5px) saturate(200%);
                        background-color: rgba(255, 255, 255, 0.1);
                        border: 1px solid rgba(255, 255, 255, 0.3);
                        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                        outline: 2px solid white;
                    }
                    img {
                        height: 50px;
                        width: auto;
                        max-width: 70px;
                        min-height: 50px;
                    }
                }
            }
        }
        .box-redirection {
            -webkit-backdrop-filter: blur(5px) saturate(200%);
            backdrop-filter: blur(5px) saturate(200%);
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            width: fit-content;
            padding: 7.5px 10px;
            border-radius: 10px;
            color: var(--lc);
            font-family: var(--fa);
            position: absolute;
            bottom: 50px;
        }
    }
    footer {
        font-family: var(--fa);
        position: absolute;
        bottom: 0;
        width: 100%;
        background: var(--mc);
        color: var(--lc);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 7.5px;
        font-family: var(--fm);
        text-transform: uppercase;
        font-size: 20px;
        .flex-link {
            display: flex;
            align-items: center;
            gap: 5px;
            a {
                color: var(--lc);
                text-decoration: none;
                transition: 0.3s;
                &:hover {
                    transform: translateY(-3px);
                }
            }
        }
    }
}

@media (max-width: 768px) {
    body {
        background: url('../img/images/languages.jpg') no-repeat center center/cover;
        header {
            justify-content: center;
            padding:7.5px 12.5px;
            box-shadow: 3px 3px 3px rgba(255, 255, 255, 0.8);
            .part-header {
                flex-direction: column;
                text-align: center;
                &:nth-child(1), &:nth-last-child(1) {
                    display: none;
                }
                &:nth-child(2) {
                    font-size: 25px;
                }
            }
        }
        main {
            h1 {
                font-size: 35px;
            }
            .container-languages {
                width: 90%;
                .text-info {
                    width: 80%;
                }
                .container-box {
                    justify-content: space-between;
                    .box-language {
                        color: var(--dc);
                        &:hover {
                            color: #000;
                        }
                    }
                }
            }
            .box-redirection {
                width: 90%;
                text-align: justify;
                bottom: 75px;
            }
        }
        footer {
            flex-direction: column-reverse;
            justify-content: center;
            font-size: 18px;
        }
    }
}