#namecard{
    width: 472px;
    height: auto;
}

@media(max-width: 480px) {
    body{
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
        justify-content: normal;
    }

    main{
        flex: 1 0 auto;
    }

    #namecard{
        display: block;
        margin-left:auto;
        margin-right:auto;
        width: 100%;
        height: auto;
    }

    header{
        left: 0;
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        padding-left: 10px;
        padding-right: 10px;
    }

    footer{
        padding-left: auto;
        padding-right: auto;
        position: static;
        flex-shrink: 0;
        justify-content: center;
    }

    #copyright{
        display: none;
    }

    legend{
        font-size: 1em;
    }

    .icon{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        padding: 0;

        img{
            width: 40px;
            height: auto;
        }
    }

    fieldset{
        gap: 0px;
        margin: 10px;
        padding: 10px;
    }

    .free-rotate-joystick-base{
        left: 30px;
        bottom: 60px;
    }
}