@font-face {
    font-family: boldy;
    src: url('boldy.ttf');
}

@font-face {
    font-family: font4;
    src: url('myfont.otf');
}

@font-face {
    font-family: font3;
    src: url('font3.ttf');
}

body {
    margin: 0 auto;
    padding: 0 16px;
    max-width: 720px;
    font-family: Arial;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

.main-content {
    flex-grow: 1;
}

h1 {
    font-size: 64px;
    margin-bottom: 16px;
}

header {
    background: #ffffff;
}

header a, footer a {
    text-decoration: none;
    margin-right: 32px;
    color: #99004a;

}

.id_input {
    width: 250px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid  #99004a;
}

.radio {
    width: 200px;
}

footer {
    text-align: center;
    margin-bottom: 16px;
    margin-top: 24px;
}

.a_alt {
    position: relative;
    left: -24px;
}

.question {
    font-style: italic;
    margin-top: 32px;
    margin-bottom: 8px;
    color: #99004a;
}

.answer {
    margin-left: 24px;
}

#toggle {
    display: none;
    margin-top: 8px;
}

.first_line {
    display: inline-block;
    margin-top: 64px;
}

.submit_button {
    border: 1px solid  #99004a;
    background: #fafafa;
    color: #99004a;
    padding: 10px 15px;
    margin-top: 32px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.submit_button:hover {
    background: #99004a;
    color: #fafafa;
}

.output {
    margin-top: 32px;
    padding: 15px;
    background: #FFDBED;
}

.step2 {
    text-align: left;
    margin-top: 24px;
}

.salutation {
    margin-top: 24px;
}

.sub-heading {
    color: #99004a;
}

.element {
    margin-top: 24px;
}

.radio {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  margin-right: 16px;
}

.radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #DDDDDD;
  border-radius: 20%;
}

.radio:hover input ~ .checkmark {
  background-color: #ccc;
}

.radio input:checked ~ .checkmark {
  background-color: #CC0468;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio input:checked ~ .checkmark:after {
  display: block;
}

.radio .checkmark:after {
 	top: 2px;
	left: 2px;
	width: 8px;
	height: 8px;
	border-radius: 20%;
	background: white;
}

.title_input {
    border-radius: 4px;
    border: 1px solid  #99004a;
    margin-top: 4px;
    height: 23px;
}

.divider {
    margin: 0 10px;
}

.note {
    font-size: 14px;
}

.button {
    background: #99004a;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #99004a;
    color: #ffffff;
    cursor: pointer;
    margin-top: 8px;
    margin-right: 8px;
}

.button:hover {
   background: #ffffff; 
   color: #99004a;

}


#form_hidden, #result, #result2, #result3 {
    display: none;
}

#game {
    background: #F9F4DB;
    border: 2px solid #DBB600;
    border-radius: 5px;
    width: 700px;
    padding: 10px;
}

.second_head {
    margin-top: -32px;
}

#player_box {
    float: left;
    width: 280px;
    height: 500px;
    overflow: hidden;
}

#middle_box {
    width: 140px;
    height: 500px;
    overflow: hidden;
    float: left;
}

#challenger_box {
    width: 280px;
    height: 500px;
    overflow: hidden;
}


#challengerPop_hidden, .challenger_score {
    position: relative;
    top: 372px;
}

#challenger_name {
    display: none;
}

.card_inner {
    transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}


.card_front, .card_back {
    backface-visibility: hidden;
    position: absolute;
}

#card_flipper {
    display:none;
    position: relative;
    z-index: 10000;
    background: #FDD600;
    color: #000000;
    top: 230px;
    width: 252px;
    border: 0;
    left: 14px;
    font-size: 20px;
    cursor: pointer;
}

.card_back {
    transform: rotateY(180deg);
}

.game_body {
    width: 700px;
    height: 500px;
    background-image: url('image/gameBG.png');
}

.game_buttons {
    padding-top: 200px;
}
#form_show, #about_show,#leaderboard {
    width: 160px; 
    margin-top: 24px;
    background: #FFD15E;
    font-size: 20px;
    padding: 3px;
    height: 48px;
    border: 0;
    cursor: pointer;
}

#credits {
    color: #FFD15E;
    position: relative;
    font-weight: bold;
    top: 56px;
}

#black_overlay {
    width: 700px;
    height: 500px;
    position: absolute;
    background: black;
    opacity: 0.8;
    z-index: 40;
    display: none;
}

#white_overlay {
    position: absolute;
    width: 700px;
    color: #FFFFFF;
    margin-top: 140px;
    z-index: 50;
    display: none;
}

#table_overlay {
    position: absolute;
    z-index: 50;
    height: 500px;
        width: 700px;
    left: 50%;
    margin-left: -350px;
    display: none;
            overflow: auto;
}

table {
    position: relative;
  font-family: arial, sans-serif;
  border-collapse: collapse;
  left: 50%;
    margin-left: -292px;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 12px 24px;
  color: #FFFFFF;
}

#about_close {
    cursor:pointer;
}

.leader_h2 {
    color: white;
}

#leader_close {
    position: absolute;
    float: right;
    color: #FFF;
    cursor: pointer;
    top: 8px;
}