/* general style */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body{
    margin: 0;
    padding: 0;
    background-color: lightgray;
    z-index: -3;
}

.text{
    font-size: 2rem;
    font-family: "Roboto";
}

/* bg select style */

.background{
    pointer-events: none;
    z-index: -2;
    position: fixed;
    top:0;
    left: 0;
    width: 100vw;
    height: 0;
    transition: background-color 0s 1s, height 1s ease-in;
}

.bgSelectSection{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.bgSelect__container{
    padding: 5rem;
    margin: 1rem;
    border: 2px solid black;
    border-radius: 2rem;
}

.bgSelect__list{
    list-style-type: none;
    display: flex;
    padding: 1rem;
}

.bgSelect__header{
    margin: 1rem;
}

.bgSelect__item{
    padding: 0.5rem 2rem;
    margin: 0.5rem;
    border: 2px outset black;
    color: white;
    border-radius: 2rem;
}

.bgSelect__item:hover{
    border: 2px inset black;
}

.red{
    background-color: red;
}

.red:focus{
    .background{
        transition: height 1s ease-in;
        background-color: red;
        height: 100vh;
        z-index: -1;
    }
}

.green{
    background-color: green;
}

.green:focus{
    .background{
        transition: height 1s ease-in;
        background-color: green;
        height: 100vh;
        z-index: -1;
    }
}

.blue{
    background-color: blue;
}

.blue:focus{
    .background{
        transition: height 1s ease-in;
        background-color: blue;
        height: 100vh;
        z-index: -1;
    }
}

.dark{
    background-color: grey;
}

.dark:focus{
    .background{
        transition: height 1s ease-in;
        background-color: grey;
        height: 100vh;
        z-index: -1;
    }
}