#p_user_count {
    font-size: 3vh;
}

html {
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    min-height: 100dvh;
    margin: 0px;
}

main {
    position: absolute;
    top: 0;
    left: 0;

    background: #ffffff;
    width: 100vw;
    height: 90dvh;

    display: flex;
    justify-content: center;
}

img {
    -webkit-user-drag: none;
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-touch-callout:none;
    -moz-user-select:none;
    user-select:none;
}

.main_main{
    width: 60%;
    max-width: 600px;
}
.main_sub{
    width: 10%;
    margin: 0 1%;
    max-width: 50px;
}

.TopView {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 60%;
    width: 100%;
}

#TopViewButton {
    position: relative;
    height: 80%;
    width: 100%;
    top: 0;
    object-fit: contain;
}

.Overlay {
    width: 100%;
    height: 100dvh;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    z-index: 1000;

    background-color: #0000009d;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

}

.OverlayWindow {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-height: 80%;
    z-index: 1001;

    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 20px;

    background-color: rgb(255, 255, 255);
    border-radius: 50px;

    overflow-y: auto;
}

.TopViewTitle {
    position: relative;
    height: 10%;
    width: 100%;
    bottom: 0;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 3vh;
    margin: 0;
}

footer {
    position: absolute;
    width: 100vw;
    height: 10dvh;
    bottom: 0;
}

/*
 Mode Button 
*/
.ModeButtons {
    bottom: 0;
    width: 100%;
    height: 40%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.ModeSelectButton {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0.5em 0em;
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border: solid 4px #000000;
    border-radius: 3px;

    position: relative;
    height: 20%;
    width: 100%;
    max-width: 500px;
}

.ModeSelectButton:hover {
    border: solid 4px #002975;
    border-radius: 3px;
}


.ModeSelectButton:active {
    border: solid 4px #00c3ff;
    color : #00c3ff;
    border-radius: 3px;
}

.ModeSelectButton h1 {
    position: relative;
    font-family: "Noto Sans JP", sans-serif;
    font-size: min(7vmin,2em);
    margin: 0;
    padding: 0;
}