/* CSS for adding content example */

/* .class uses period    class="myClass"  */
/* #id    uses hashtag   id="myObjId" */

/* globallly visible color variables */
:root {
  --bg-main-color: #7ec5e1;

  --btn-enabled-color-bg:  #4581f1;
  --btn-enabled-color-fg:  #d0e1ec;
  --btn-enabled-color-border: #23b7e5;

  --btn-in-progress-color-bg:  #1a4188;
  --btn-in-progress-color-fg:  #d0e1ec;
  --btn-in-progress-color-border: #23b7e5;

  --btn-disabled-color-bg:  #6b7b99;
  --btn-disabled-color-fg:  #1b303f;
  --btn-disabled-color-border: #0e313b;

  --bg-tbl-header-color: #f59a44;
  --bg-tip-message-color: #ced7e0;
  --border-tbl-color: rgb(65, 26, 4);
  --fg-info-color: #0c0e16;
}

/* makes sure padding/border included in total height/width of elements */
* {
  box-sizing: border-box;
}

/* bg-main-color also used for update .lblInfo and .catDisabled (blend with background) */
body {
  background-color: var(--bg-main-color);
}

/* used for tomharron.com image */
.columnLeft {
  float: left;
  width: 10%;
  padding: 4px;
}
/* used for outer space image */ 
.columnRight {
  float: left;
  width: 60%;
  padding: 4px;
}

/* Clear floats after image containers */
.row::after {
  content: "";
  clear: both;
  display: table;
}
/* for dice images on the dice buttons */
img {
  border-radius: 4%;
  display: inline-block;
}

h1, h3 {
  clear: left;
  /* width: 500px; */
  color: #5a514c;
  text-align: left;
}

p {
  clear: none;
  /* width: 1000px; */
  color: #5a514c;
  text-align: left;
}

/* these are independent of @media settings */
/* hide the terminate (X button) on all UI Dialog boxes */
.ui-dialog-titlebar-close {
  visibility: hidden;
}

/* class=lblJokeBodyClass (independent of device - default) */
.lblJokeBodyClass {
  font-size: 1.1em;
  height: 4em;        /* makes it a 3-line label on phone */
  display: inline-block;     /* inline-block;   /* respects width, height, margins, paddings */

  background-color: var(--bg-tip-message-color);
  color: #03490d;
  width: 98%;
  border-radius: 3px;  
  border-top: 2px;
  border-bottom: 1px;
}

/************************************************/
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

  /* used for tomharron.com image */
  .columnLeft {
    float: left;
    width: 20%;
    padding: 4px;
  }
  /* used for outer space image */ 
  .columnRight {
    float: left;
    width: 80%;
    padding: 4px;
  }

  /* class for table on the High Score dialog */
  .dialogTable    { border-collapse: collapse; width: 95%; }
  .dialogTable td { padding: 3px; font-size: 0.6em }
  .dialogTable th { background-color: var(--bg-tbl-header-color); font-size: 0.8em;}

  table {
    font-family: arial, sans-serif;
    width: 100%;
    border: 2px solid;
    border-color: var(--border-tbl-color);
    border-collapse: collapse;   /* adjoining cells share border */
    border-spacing: 1px;
  }
  th {
    border: 2px solid;
    border-color: var(--border-tbl-color);
    text-align: left;
    padding: 0px;
    font-size: 0.7em;
  }
  td {
    border: 2px solid;
    border-color: var(--border-tbl-color);
    padding: 1px;
    line-height: .6em;
  } 
  
  td:nth-child(1) { width: 27%; }
  td:nth-child(2) { width: 18%; }
  td:nth-child(3) { width: 0%;  }
  td:nth-child(4) { width: 37%; }
  td:nth-child(5) { width: 18%; }

  /* class=lblJokeBodyClass (phone) */
  .lblJokeBodyClass {
    font-size: 1.1em;
    height: 4em;        /* makes it a 3-line label on phone */
    display: inline-block;     /* inline-block;   /* respects width, height, margins, paddings */

    background-color: var(--bg-tip-message-color);
    color: #03490d;
    width: 98%;
    border-radius: 3px;  
    border-top: 2px;
    border-bottom: 1px;
  }

} /* END - Extra small devices (phones, 600px and down) */



/************************************************/
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .example {background: blue;} 

  /* class=lblJokeBodyClass (laptop) */
  .lblJokeBodyClass {
    font-size: 1.3em;
    height: 3.5em;           /* makes it a 1-line label on laptop */
    display: inline-block;   /* respects width, height, margins, paddings */
    background-color: var(--bg-tip-message-color);
    color: #03490d;
    width: 98%;
    border-radius: 3px; 
  }
} 
/* END - Medium devices (landscape tablets, 768px and up) */

/************************************************/
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {


  /* class for table on the High Score dialog */
  .dialogTable { border-collapse: collapse; width: 100%; }
  .dialogTable td { padding: 5px; font-size: 1.2em }
  .dialogTable th { background-color: var(--bg-tbl-header-color); font-size: 1.0em;}
  
  table {
    font-family: arial, sans-serif;
    width: 100%;
    border: 3px solid; 
    border-color: var(--border-tbl-color);
    border-collapse: collapse;   /* adjoining cells share border */
    border-spacing: 2px;
  }
  th {
    border: 3px solid;
    border-color: var(--border-tbl-color);
    text-align: left;
    padding: 2px;
    font-size: 1.0em;
  }
  td {
    border: 3px solid;
    border-color: var(--border-tbl-color);
    padding: 2px;
  } 
  
  td:nth-child(1) { width: 25%; }
  td:nth-child(2) { width: 17%; }
  td:nth-child(3) { width: 0%;  }
  td:nth-child(4) { width: 42%; }
  td:nth-child(5) { width: 16%; }

  /* class=lblJokeBodyClass */
  .lblJokeBodyClass {
    font-size: 1.1em;
    height: 4em;        /* makes it a 3-line label on phone */
    display: inline-block;     /* inline-block;   /* respects width, height, margins, paddings */

    background-color: var(--bg-tip-message-color);
    color: #03490d;
    width: 98%;
    border-radius: 3px;  
    border-top: 2px;
    border-bottom: 1px;
  }

}   /* END - Large devices (laptops/desktops, 992px and up) */


/* Extra large devices (large laptops and desktops, 1200px and up) */
/* @media only screen and (min-width: 1200px) { */
  /* .example {background: pink;} */
/* } Extra large devices (large laptops and desktops, 1200px and up)  */


/* buttons available for clicking (New game, undo, roll die, etc.) */
.btnEnabled {
  background-color: var(--btn-enabled-color-bg);
  color: var(--btn-enabled-color-fg);
  width: 15%;
  min-width: 150px;
  padding: 3px 1px;
  margin: 1px 0;
  display: inline-block;
  border-radius: 5px;
  border-color: var(--btn-enabled-color-border);

  font-family: 'Open Sans', arial, sans-serif;
  font-size: 1.1em;
  font-style: normal;
  font-weight: 550;
  line-height: 1.3em;
  letter-spacing: -0.02em;
}
.btnInProgress {
  background-color: var(--btn-in-progress-color-bg);
  color: var(--btn-in-progress-color-fg);
  width: 15%;
  min-width: 150px;
  padding: 3px 1px;
  margin: 1px 0;
  display: inline-block;
  border-radius: 5px;
  border-color: var(--btn-in-progress-color-border);

  font-family: 'Open Sans', arial, sans-serif;
  font-size: 1.1em;
  font-style: normal;
  font-weight: 550;
  line-height: 1.3em;
  letter-spacing: -0.02em;
}
.btnDisabled {
  background-color: var(--btn-disabled-color-bg);
  color: var(--btn-disabled-color-fg);
  width: 15%;
  min-width: 150px;
  padding: 3px 2px;
  margin: 1px 0;
  display: inline-block;
  border-radius: 5px;
  border-color: var(--btn-disabled-color-border);

  font-family: 'Open Sans', arial, sans-serif;
  font-size: 1.1em;
  font-style: italic;
  font-weight: 350;
  line-height: 1.2em;
  letter-spacing: -0.02em;
}
.btnServicesEnabled {
  background-color: var(--btn-enabled-color-bg);
  color: var(--btn-enabled-color-fg);
  width: 15%;
  min-width: 150px;
  padding: 3px 2px;
  margin: 4px 0;
  border-radius: 5px;
  border-color: var(--btn-enabled-color-border);

  font-family: 'Open Sans', arial, sans-serif;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 550;
  line-height: 1.0em;
  letter-spacing: -0.02em;
  /*display: inline-block;*/
  float: left;
  margin: 5px; 
}
.btnServicesDisabled {
  background-color: var(--btn-disabled-color-bg); 
  color: var(--btn-disabled-color-fg);
  width: 15%;
  min-width: 150px;
  padding: 3px 2px;
  margin: 4px 0;
  border-radius: 5px;
  border-color: var(--btn-disabled-color-border);

  font-family: 'Open Sans', arial, sans-serif;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 550;
  line-height: 1.0em;
  letter-spacing: -0.02em;
  /*display: inline-block;*/
  float: left;
  margin: 5px; 
}

.lblTitle {
  color: #081609;
  width: 50%;
  min-width: 150px;
  padding: 3px 2px;
  margin: 4px 0;
  display: inline-block;

  font-family: 'Arial';
  font-size: 1.1em;
  font-style: normal;
  font-weight: 600;
  line-height: 1.0em;
  letter-spacing: -0.02em;
}

.lblJokeTitleClass {
  color: #081609;
  width: 10%;
  min-width: 100px;
  padding: 3px 2px;
  margin: 4px 0;
  display: inline-block;

  font-family: 'Arial';
  font-size: 1.2em;
  font-style: normal;
  font-weight: 600;
  line-height: 1.1em;
  letter-spacing: -0.02em;
}
.btnDadJoke {
  background-color: var(--btn-in-progress-color-bg);
  color: #e1c10e;
  width: 15%;
  min-width: 150px;
  padding: 3px 1px;
  margin: 1px 0;
  display: inline-block;
  border-radius: 5px;
  border-color: var(--btn-in-progress-color-border);

  font-family: 'Open Sans', arial, sans-serif;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 550;
  line-height: 1.3em;
  letter-spacing: -0.02em;
}

.lblDesc {
  color: #081609;
  width: 50%;
  min-width: 150px;
  padding: 3px 2px;
  margin: 4px 0;
  display: inline-block;

  font-family: 'Arial';
  font-size: 1.0em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.1em;
  letter-spacing: -0.02em;
}
