header{
    display: flex;
    justify-content: space-between;
    align-items:first baseline;
    width:100%;
    box-sizing: border-box;
    padding:10px;
    padding-left:60px;
    padding-right:60px;
    top:0;
    left:0;
    position: fixed;
    z-index: 1000;
    margin:0px;
    font-size: 1.5em;
}

body{
    margin:0px;
    padding:0px;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    background-color: rgba(190, 245, 245, 0.233);
    touch-action: none; /* Prevent pinch, pan, zoom */
    overscroll-behavior: none; /* Prevent pull-to-refresh or bounce */
}

main item{
    padding: 20px;
}

main{
    display:grid;
    grid-template-rows: auto;
    align-items: center;
    justify-content: center;
    
}

content{
    display:flex;
    align-items: center;
    justify-content: center;
}

.projects{
    margin-left: 60px;
    margin-right: 60px;
    background-color: rgba(190, 245, 245, 0.233);
    width: fit-content;
    align-items: center;
}

fieldset{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid black;
    border-radius: 20px;
    margin: 20px;
}

footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom:0;
    position:fixed;
    left:0;
    right:0;
    margin:0px;
    padding-left: 60px;
    padding-right: 60px;
    width: auto;
    z-index: 1000;
}

.genre{
    margin-top: 20px;
    margin-bottom: 20px;
    width: auto;
    min-width: fit-content;
    background-color: rgb(190, 245, 245);
}

.icon{
    transform: rotate(180deg);
    background-color: rgb(255, 255, 255);

    legend{
        text-align: center;
        transform: rotate(180deg);
    }

    img {
        transform: rotate(180deg);
    }

}

legend{
    font-size: 1.5em;
    font-weight: bold;
}

sideinfo{
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: rgb(190, 245, 245, .5);
    overflow-x: clip;
    transition: 0.5s;
    padding-top: 200px;
    padding-left: 40px;
}

.controls-modal{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
}

.controls-modal.hidden{
    display: none;
}

.controls-panel{
    width: 420px;
    max-width: 85vw;
    background-color: #365984;
    color: #00ff00;
    font-family: Courier, monospace;
    border: 4px solid #000000;
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.controls-panel h2{
    margin: 0 0 16px 0;
    text-align: center;
    font-size: 1.5em;
}

.controls-panel ul{
    margin: 0 0 20px 0;
    padding-left: 20px;
    line-height: 1.6;
}

.controls-panel strong{
    color: #ffffff;
}

.controls-panel button{
    display: block;
    margin: 0 auto;
    padding: 8px 24px;
    font-family: Courier, monospace;
    font-size: 1em;
    font-weight: bold;
    background-color: #cccccc;
    border: 2px solid #000000;
    border-radius: 6px;
    cursor: pointer;
}

.controls-panel button:hover{
    background-color: #ffffff;
}

.free-rotate-joystick-base{
    position: fixed;
    left: 60px;
    bottom: 40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(0, 0, 0, 0.6);
    touch-action: none;
    z-index: 1500;
}

.free-rotate-joystick-knob{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(0, 0, 0, 0.6);
    pointer-events: none;
}