﻿*
{   margin: 0;
    padding: 0;  }

/* 完整的注音字型檔:
@font-face
{
    font-family: BopomofoPro;
    src: url("fonts/BopomofoPro-Regular.ttf");
} */

/* 較小的注音字型檔: */
@font-face
{
  font-family: BopomofoGPOS;
  src: url("fonts/bpmfgpos.otf");
}

html, body
{
    width: 100%;
    height: 100%;
}

body
{
    background-color: #c8e7ec;
    margin: 0;
    font-family: \5FAE\8EDF\6B63\9ED1\9AD4,'Microsoft JhengHei', Verdana, Helvetica, Arial, 'Microsoft Sans-serif';
    font-size: 12pt;
}

a {  text-decoration:none  }

ruby
{
    ruby-position: inter-character;
}

rt
{
 /* 令注音變成直排，但聲調符號會有問題: */
    writing-mode: vertical-rl;
    display: inline;
    line-height: 0.5;

    text-orientation: upright;
 /* font-family: BopomofoPro; */
    font-family: BopomofoGPOS;
    font-size: 30%;

    letter-spacing: 0;
    ruby-align: center;
    text-align: center;
}

div#arena
{
 /* position: relative;
    position: absolute;
    left: 0px;
    top:  0px; */

    width: 1920px;
    height: 1450px;

    background-image: url("images/map.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

div#arena *
{   position:absolute;  }

img#player
{   filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, 0.6));  }

img#monster
{   filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, 0.6));  }

img#center_img
{   filter: drop-shadow(10px 30px 8px rgba(0, 0, 0, 0.6));  }

img.button
{   filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, 0.6));  }

span#prompt_msg
{
    display: block;
    text-align: center;
    color: Indigo;

    font-size: 32pt;
    font-weight: bold;

 /* text-decoration: underline; */
    text-shadow: 8px 8px 16px yellow;
}

span#prompt_msg img
{
    position: static;
    height: 80%;
    vertical-align: baseline;
}

div#cardbook_div
{
    background-color:rgba(0, 0, 0, 0.6);
    border: 2px solid gold;
    border-radius: 16px;

    padding: 16px;
    text-align: left;

    font-size: 48pt;
    font-weight: bold;
    color: gold;
}

div#cardbook_div *
{
    position: static;
}

a#close_button
{
    display: block;
    float: right;
}

a#exit_button
{
    display: block;
    position: absolute;
    left: 10px;
    bottom: 10px;
}

a.button
{
    display: block;
    color: white;
    background-color: dodgerblue;

    text-align: center;
    vertical-align: middle;
    font-size: 48pt;
    font-weight: bold;
    letter-spacing: 8px;
    border-radius: 8px;

    filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, 0.6));
}

a.card_button
{
    display: inline-block;
    margin: 16px;
}

/* 開始選單 - ----------------------------------------------------------------------------------- */
table#start_menu
{
    left: 0px;
    top:  0px;
    width: 1920px;
    height: 1450px;

    table-layout: fixed;
    background-color: #c8e7ec;

 /* border: 1px solid gray; */
}

table#start_menu *
{   position: static;  }

table#start_menu td
{
    color: black;
    vertical-align: top;
    overflow-y: auto;
    padding: 16px;

    font-size: 22pt;
    font-weight: bold;
    text-align: center;
    text-shadow: 0px 0px 24px gray;
}

table#start_menu h1
{
    text-align: center;
    font-size: 32pt;
    text-shadow: 0px 0px 24px yellow;
}

table#start_menu p
{
    line-height: 1.5em;
}

table#start_menu input[type=checkbox]
{
    width: 36px;
    height: 36px;
}

table#start_menu label
{
    line-height: 2em;
}

table#start_menu a
{
    display: inline-block;
    color: white;
    background-color: dodgerblue;
    padding: 8px;
    margin-bottom: 32px;

    text-align: center;
    vertical-align: middle;
    font-size: 20pt;
    font-weight: bold;
    letter-spacing: 0px;
    border-radius: 8px;

    filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, 0.6));
}

/* Responsive Styles ----------------------------------------------------------------------- */

@media only screen and (min-width:1024px) and (max-width:1399px)
{
	rt {  line-height: 0; }

    table#start_menu td {  font-size: 14pt; }
    table#start_menu h1 {  font-size: 20pt; }

    table#start_menu a
    {
        font-size: 14pt;
        padding: 8px;
        margin-bottom: 20px;
    }

    table#start_menu input[type=checkbox] {  width: 36px;  height: 36px;  }
}

@media only screen and (min-width:768px) and (max-width:1023px)
{
	rt {  line-height: 0; }

    table#start_menu td {  font-size: 12pt; }
    table#start_menu h1 {  font-size: 18pt; }

    table#start_menu a
    {
        font-size: 12pt;
        padding: 4px;
        margin-bottom: 16px;
    }


    table#start_menu input[type=checkbox] {  width: 36px;  height: 36px;  }
}

@media only screen and (min-width:512px) and (max-width:767px)
{
	rt {  line-height: 0; }

    table#start_menu td {  font-size: 10pt; }
    table#start_menu h1 {  font-size: 16pt; }

    table#start_menu a
    {
        font-size: 10pt;
        padding: 2px;
        margin-bottom: 10px;
    }

    table#start_menu input[type=checkbox] {  width: 24px;  height: 24px;  }
}

@media only screen and (max-width:511px)
{
	rt {  line-height: 0; }

    table#start_menu td {  font-size: 8pt; }
    table#start_menu h1 {  font-size: 12pt; }

    table#start_menu a
    {
        font-size: 8pt;
        padding: 0px;
        margin-bottom: 10px;
    }

    table#start_menu input[type=checkbox] {  width: 24px;  height: 24px;  }
}
