body{
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, calc(50vw - 10px));
    grid-template-rows: repeat(2, 90vh);
    grid-template-areas: "ejercicio20 ejercicio21"
    "ejercicio22 ejercicio22";

    font-family: Arial, Helvetica, sans-serif;
    background-color: #000000;
    margin: 0;
    
    & .ejercicios{
        background-color: #222222;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        position: relative;
        border: 2px solid black;
        border-radius: 15px;
        margin: 15px;
        gap: 10px;

        & .letrero {
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 30px;
            color: #169976;
            font-weight: bold;
        }
    }

    & #ejercicio20{
        grid-area: ejercicio20;

        & #titulo20{
            display: flex;
            align-items: center;
            justify-content: center;

            width: 90%;
            padding-bottom: 5px;
            padding-top: 5px;


            background-color: #1DCD9F;
            color:#222222;
            font-size: 40px;
            font-weight: bold;
        }

        & .resultado20{
            display: flex;
            justify-content: center;
            align-items: center;

            width: 80%;
            height: 10vh;
            
            font-size: 30px;
            color: #1DCD9F;
            border: 2px dashed #1DCD9F;
        }

        & #boton20{
            height: 8vh;
            width: 11vw;
            border-radius: 50px;
            background: linear-gradient(to bottom, rgb(239, 239, 239) 0%, #11785c 35%, #1DCD9F 100%);
            border:none;
            font-size: 25px;
            font-weight: bold;
            cursor: pointer;
            color: white;
        }
    }

    & #ejercicio21{
        color:white;
        grid-area: ejercicio21;
        display: grid;
        grid-template-columns: repeat(2, 42.5%);
        grid-template-rows: 10vh 25vh 25vh;
        grid-template-areas: "titulo21 titulo21"
        "radio superficie"
        "radio volumen";
        padding-top: 13vh;

        & >div:nth-child(2), >div:nth-child(3){
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            width: 100%;
            flex-direction: column;
        }

        & >div:nth-child(2){
            grid-area: titulo21;
            background-color: #1DCD9F;
            color: #222222;
            font-size: 40px;
            font-weight: bold;
            width: 105%;
            transform: translateX(-2.5%);
        }

        & >div:nth-child(3){
            grid-area: radio;

            & >*{
                margin: 0;
                border: none;
            }

            & #figura{
                width: 100%;
                height: 50%;
                background-image: url(/ejercicios/funciones/img/figura.png);
                background-size: 80%;
                background-position: center;
                background-repeat: no-repeat;
            }

            & #radio {
                width: 100%;
                height: 30%;
                display:flex;
                align-items: center;
                justify-content: center;
                font-size: 30px;

                & #inputr{
                    margin-left: 5px;
                    height: 50%;
                    width: 50%;
                    font-size: 30px;
                    color:#00ffbb;
                    background: transparent;
                }
            }

            & #boton21{
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 40%;
                height: 13.5%;
                margin: 5.25%;
                border-radius: 10px;
                color: white;
                font-size: 18px;
                font-weight: BOLD;
                cursor: pointer;
                background: linear-gradient(to bottom, #1DCD9F 0%, #11785c 50%, #1DCD9F 100%);
                
                & #brillo21{
                    position: absolute;
                    border: none;
                    width: 100%;
                    height: 30%;
                    background-color: #ffffff37;
                    border-radius: 10px;
                    top:1px;
                    left: 0;
                }
            }
        }

        & >div:nth-child(4){
            grid-area: superficie;
        }

        & .formulas{
            display: flex;
            justify-content: center;
            align-items: flex-end;
            height: 100%;
            width: 100%;
            flex-direction: column;

            & #superficie, #volumen{
                width: 90%;
                margin-right: 5%;
                height: 30%;
                display:flex;
                align-items: center;
                justify-content: center;
                font-size: 30px;
                border: none;

                & #results, #resultv{
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-left: 5px;
                    height: 100%;
                    width: 50%;
                    background: transparent;
                    font-size: 30px;
                    color:#00ffbb;
                }
            }

            & #formulaarea, #formulavolumen{
                display: flex;
                align-items: center;
                justify-content: center;

                margin-right: 5%;
                margin-top: 30px;
                left: 20px;
                margin-left: 5px;
                height: 30%;
                width: 55%;
                background: #1DCD9F;
                border: none;
                font-size: 30px;
                color:white; 
            }
        }

        & >div:nth-child(5){
            grid-area: volumen;
        }

        & *{
            border: 2px solid #1DCD9F;
        }

        & .letrero{
            border: none;
        }
    }

    & #ejercicio22{
        grid-area: ejercicio22;
    }
}

