* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
    color: #000;
    text-decoration: none;
}

body {
    background: #fff5ee;
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    text-align: center;

    h1 {
        font-size: 3rem;
        font-weight: initial;
    }

    h2 {
        font-size: 2rem;
        font-weight: initial;
    }

    .flex-box {
        width: 100%;
        display: flex;
        justify-content: space-around;
        margin-top: 3rem;
        gap: .2rem;

        a {
            opacity: .7;
            background-color: #ffcc00;
            width: 100%;
            font-size: 1.5rem;
            padding: 2rem 0;
            border-radius: .5rem;
            transition: .3s;

            &:has(+a:hover) {
                border-top-right-radius: 3rem;
                border-bottom-right-radius: 3rem;
                margin-right: 1.5rem;
            }

            &:hover {
                opacity: 1;
                background-color: #ffcc00;
                border-radius: 3rem;
                scale: 1.1;

                +a {
                    border-bottom-left-radius: 3rem;
                    border-top-left-radius: 3rem;
                    margin-left: 1.5rem;
                }
            }

        }
    }
}

@media screen and (width < 900px) {
    .container {
        h1 {
            font-size: 2rem;
        }

        h2 {
            font-size: 1rem;
        }

        .flex-box {
            flex-direction: column;
            gap: .5rem;

            a {
                &:has(+a:hover) {
                    border-bottom-left-radius: 3rem;
                    border-bottom-right-radius: 3rem;
                    border-top-right-radius: .5rem;
                    margin-right: 0;
                }

                &:hover {
                    background-color: #dfb717;
                    border-radius: 3rem;
                    scale: .9;

                    +a {
                        border-top-left-radius: 3rem;
                        border-top-right-radius: 3rem;
                        border-bottom-left-radius: .5rem;
                        margin-left: 0;
                    }
                }
            }
        }
    }
}