body{
    background-image: url("../assets/Menu_BG.png");
    overflow: hidden;
}

ul{
    display: inline-block;
    text-align: left;
}

li{
    min-width: 80px;
}

p{
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

/* Game Welcome Section */

.game_welcome_section{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
}

.graphical-zone{
    width: 250px;
    height: 175px;
    overflow: visible;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.title_text{
    position: relative;
    margin: auto;
    width: 250px;
    height: 113px;
    object-fit: contain;
}

.mute_button{
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    border: none;
    position: relative;
    width: 50px;
    height: 50px;
}

.form_normal{
    max-width: 700px;
    max-height: 300px;
}

.form_transition {
    animation: fade_out 2s;
    animation-fill-mode: forwards;
}

@keyframes fade_out {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

.input_system {
    margin-bottom: 10px;
}

/* Welcome Screen and Tutorial Section */
.welcome_video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial_section_container{
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    object-fit: contain;
    background-color: rgb(173, 216, 230, 0.8);
    border: 5px solid rgba(173, 173, 173, 0.8);
    border-radius: 10px;
}

.tutorial_image{
    max-height: 80%;
    object-fit: contain;
    padding: 20px;
}

.button_section{
    display: flex;
    justify-content: center;
}

.button_section button{
    height: 48px;
    width: 120px;
    margin: 10px;
    font-size: 24px;
    background-repeat: none;
    background-size: 100% 100%  ;
}

#advance_tutorial_button {
    background-image: url("../assets/button/next_button_text_cut.webp");
}

#close_tutorial_button {
    background-image: url("../assets/button/close_button_text_cut.png");
}

/* .input_system label, input{
    width: 100%;
} */

.input_system button {
    width: 50%;
    height: 20px;
}

.start_game{
    height: 48px;
    position: relative;
    background-color: rgb(145,216,256);
    display : flex;
    align-items : center;
    justify-content: center;
    font-size: 18pt;
}

/* Game Section */
.game_section {
    position: absolute;
    top: 75px;
    margin: 0;
    width: 100%;
    height: calc(100% - 65px);
    background-image: url("../assets/Game background.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.transition_video_container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

@keyframes opacity_reveal_enlarge_video_container {
    from {
        opacity: 0;
        transform: scale(95%);
    }
    to {
        opacity: 1;
        transform: scale(100%);
    }
}

.reveal_opacity_video_container{
    animation: opacity_reveal_enlarge_video_container 2s;
    animation-fill-mode: forwards;
}

.transition_video_content {
    object-fit: cover;
    margin: 0;
    width: 100%;
    max-height: 100%; 
}

/* Carddass Machine Wrapper */
.carddass_machine_wrapper{
    background-image: url("../assets/machine_assets/machine_standby.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: auto;
    width: 100%;  /* 50px per column */
    height: 100%;  /* 14 rows */
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(9, 1fr);
}

.opacity_hidden {
    opacity: 0;
    display: none;
}

.image_contain {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fade_in_machine_2s {
    animation: fade_in 3s;
    animation-fill-mode: forwards;
}

@keyframes fade_in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.box_card_output{
    grid-column: 1 / 8;
    grid-row: 1 / 9;
    border: solid black;
}

.box_coin_insert{
    grid-column: 9 / 12;
    grid-row: 7 / 9;
}

.box_knob{
    grid-column: 8 / 12;
    grid-row: 5 / 9;
    border: solid black;
}

.box_wallet{
    grid-column: 12 / 14;
    grid-row: 8 / 10;
    width: 200px;
    height: 200px;
}

.box_coin{
    grid-column: 12 / 14;
    grid-row: 8 / 10;
    margin-left: 40px;
    opacity: 0;
}

/* Card Drawing Animations */

.card-background{
   position: relative;
   background-image: url("assets/75957635_p0.jpg");
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   width: 50%;
   height: 80%;
}

.card-message{
   position: relative;
   width: 50%;
   height: 80%;
   top: -80%;
}

.hidden-backside{
   position: absolute;
   display: none;  
}

.blurred{
	blur: 1000px;
}

/* Coin Insert Specifications */
.coin_hole{
    /* background-image: url("assets/coin_insert.jpg"); */
    background-size: contain;
    repeat: no-repeat;
}

.drop_target {
    position: relative;
    width: 100px;
    height: 100px;
    left: 25%;
    top: 25%;
}


/* Coin Specifications */

.coin{
    width: 50px;
    height: 50px;
}

.coin_front{
    background-image: url("assets/machine_assets/coin.png");
    background-size: 50px;
}

.coin_back{
    background-image: url("assets/machine_assets/coin.png");
    background-size: 50px;
}

.coin_side{
    width: 10px;
    height: 50px;
}

/* Knob Specifications */

#knob_img{
   width: 200px;
   height: 200px;
}

.knob_turned{
    transform: rotate(360deg);
    transition: transform 1s ease-in;
}

/* For Error Dialogs */

.error_dialog{ 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 350px;
    min-width: 350px;
    background-image: url("../assets/machine_assets/error_box.webp");
    background-size: contain;
    background-color: rgb(255, 226, 125);
    border: 4px solid black;
    border-radius: 20px;
}

.error_dialog p{ 
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -30%);
    font-size: 14pt;
    text-align: center;
}

.error_dialog_hidden {
    transform: scale(0);
}
.error_dialog_show {
    transform: translate(-50%, -50%) scale(1);
}

.error_dialog_button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-70%, -50%);
}

.error_dialog_button p{
    min-width: 150px;
    text-align: center;
    border: 2px solid black;
    border-radius: 10px;
    background-color: rgb(255, 253, 163);
}

@media only screen and (max-width: 1000px){
    .box_coin_insert {
        grid-column: 11 / 13;
        grid-row: 7 / 8;
    }
}