* {
    margin: 0;
    --white: #FFFFFF;
    --sumi-1200: #000000;
    --sumi-1100: #080808;
    --sumi-1000: #111111;
    --sumi-900: #1A1A1C;
    --sumi-800: #414143;
    --sumi-700: #626264;
    --sumi-600: #757578;
    --sumi-500: #949497;
    --sumi-400: #B4B4B7;
    --sumi-300: #D8D8DB;
    --sumi-200: #E8E8EB;
    --sumi-100: #F1F1F4;
    --sumi-50: #F8F8FB;
    --sea-700: #0031D8;
    --forest-600: #259D63;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sumi-800);
    color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
}

.bold {
    font-weight: 600;
}

#main {
    height: 100%;
    width: 70%;
    max-width: 512px;
    background-color: var(--sumi-900);
    display: flex;
    align-items: center;
    flex-direction: column;
}

#banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#vocamen_logo {
    width: 15%;
    padding: 0.3rem;
    padding-left: 1rem;
}

#about_button {
    padding-right: 1rem;
    cursor: pointer;
    user-select: none;
}

#video_area {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    background-image: url(./vocamen_taiki.webp);
    background-size: cover;
}

.preload {
    display: none;
}

#video_area.video_loading {
    background-color: #D8D8D8;
    background-image: url(./curry_udon.webp);
}

#video_area iframe {
    width: 100%;
    height: 100%;
}

#video_details {
    display: flex;
    padding: 0.75rem 0;
    width: 100%;
    color: var(--white);
}

#video_details div:nth-child(1) {
    width: 100%;
    margin-left: 1.5rem;
}

#video_details div:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 8px;
}

#video_details div:nth-child(2).hidden {
    opacity: 0;
    pointer-events: none;
}

#video_details div a.material-symbols-outlined {
    text-decoration: none;
    padding: 2px;
    margin: 6px;
    cursor: pointer;
    user-select: none;
    color: var(--sumi-400);
    transition: ease 0.2s;
}

#video_details div a.material-symbols-outlined:hover {
    color: var(--white);
}

#video_author {
    color: var(--sumi-500);
}

#mainpanel {
    position: fixed;
    bottom: 0;
    width: inherit;
    max-width: inherit;
    padding: 2px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: ease 0.2s;
}

#mainpanel.hidden {
    transform: translateY(100%);
}

#panel_hide_button {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    background-color: var(--sumi-1000);
    border-top: 1px solid var(--sumi-700);
    border-right: 1px solid var(--sumi-700);
    border-left: 1px solid var(--sumi-700);
    border-radius: 16px 16px 0 0;
    transition: ease 0.2s;
}

#pwa_sug {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    margin: 4px 0;
    padding: 6px 0;
    background-color: var(--sumi-1000);
    border-top: 1px solid var(--sumi-700);
    border-bottom: 1px solid var(--sumi-700);
    opacity: 0;
    pointer-events: none;
    transition: ease 1s;
}

#pwa_sug.show {
    opacity: 1;
    pointer-events: auto;
}

#pwa_sug p {
    width: 95%;
}

#pwa_sug div {
    display: flex;
    justify-content: flex-end;
    width: 95%;
    padding-top: 4px;
}

#pwa_sug div a {
    text-decoration: underline;
    color: var(--sumi-400);
    cursor: pointer;
}

#pwa_sug div a:nth-child(1) {
    margin-right: 1rem;
}

#pwa_sug_close {
    margin: 8px;
}

#main_buttons {
    width: 100%;
    background-color: var(--sumi-900);
}

#mainpanel.hidden #panel_hide_button {
    transform: translateY(-100%);
}

#panel_hide_button span {
    user-select: none;
    transition: ease 0.5s;
}

#mainpanel.hidden #panel_hide_button span {
    transform: rotateX(180deg);
}

#radio_buttons {
    display: flex;
    width: 100%;
    font-weight: 600;
    font-size: 1.2rem;
    background-color: var(--sumi-700);
    color: var(--sumi-500);
}

.radio_button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 100%;
    cursor: pointer;
}

#pick_button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5rem;
    width: 100%;
    font-weight: 900;
    font-size: 3rem;
    cursor: pointer;
    margin-top: 2px;
    background-color: var(--sea-700);
}

.visually-hidden {
    position: absolute;
    white-space: nowrap;
    width: 1px;
    height: 1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.radio_button:has(input:checked) {
    background-color: var(--forest-600);
    color: var(--white);
}

#about_container {
    position: fixed;
    width: 70%;
    max-width: 512px;
    height: 100%;
    transition: ease 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
}

#about_container.hidden {
    pointer-events: none;
    opacity: 0;
}

#about_container {
    pointer-events: auto;
    opacity: 1;
}

#about_close {
    position: relative;
    font-size: 2rem;
    left: 50%;
    transform: translateX(-110%);
    cursor: pointer;
    user-select: none;
}

#about {
    width: 80%;
    max-height: 65%;
    padding: 1.5rem;
    border-radius: 4px;
    background-color: var(--sumi-900);
    overflow: auto;
}

#about h1 {
    margin-bottom: 6px;
}

#about h2 {
    margin-top: 16px;
    margin-bottom: 6px;
}

#about h1::after,
#about h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: rgb(0, 231, 255);
    background: linear-gradient(90deg, rgba(0, 231, 255, 1) 0%, rgba(0, 212, 142, 1) 100%);
}

#about a {
    color: #8CDCE7;
}

.banner_link img {
    height: 48px;
}

code {
    display: block;
    margin: 0.2rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: var(--sumi-1000);
    overflow-x: scroll;
}

@media (orientation: portrait) {
    #main,
    #about_container {
        width: 100%;
    }
}