

/* =========================================================
 YAHTZEE GAME
 ========================================================= */

#yahtzee-game{
 --paper:#f7f1df ;
 --paper-dark: #ebe1c8;
 --ink: #29261f;
 --muted: #777064;
 --line: #c9dfa9;
 --accent: #a85f32;
 --accent-dark: #7e2c24;
 --green: #526b48;

 max-width: 760px;
 margin: 40px auto;
 padding: 30px;
 color: var(--ink);
 font-family: Georgia, "Times New Roman", serif;

 background:
   linear-gradient(
     rgba(255,255,255,.18),
     rgba(255,25,255,.18)
   ),
   var(--paper);

   border: 1px solid #d4c8ad;

   box-shadow:
     0 18px 45px rgba(50,40,20,.18),
     0 2px 5px rgba(50,40,20,.08);

  border-radius:4px;
}

/* =========================================================
 HEADER
 ========================================================= */

#yahtzee-game > h2{
  margin: 0 0 25px;
  text-align: center;
  font-size: 42px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight:900
}

/* =========================================================
 MESSAGE
 ========================================================= */
#message-dialog{
 min-height:0;
 margin-bottom:15px;
 border-radius:3px;
 display:none;
}

/* =========================================================
 ROLL INFORMATION
 ========================================================= */

.roll-information{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 25px;

  font-family: Arial, sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#rolls{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /*min-width: 55px;
  padding: 6px 10px; */
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  font-size: 14px;
}

/* =========================================================
 RESET BUTTON
 ========================================================= */

#yg-reset{
  margin-right: auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);

  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .15s ease,
              color .15s ease
}

/* =========================================================
 DICE AREA
 ========================================================= */


#dice-board {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 125px;
  padding: 20px;
  margin-bottom: 22px;
  background: repeating-linear-gradient(
     0deg,
     transparent,
     transparent 5px,
     rgba(80, 65, 40, .025) 6px );
  border-top: 1px solid var( --line);
  border-bottom: 1px solid var( --line);
  }



  /* =========================================================
   * DICE
   * ========================================================= */


  .die-wrapper {
       display: flex;
       justify-content: center;
       align-items: center;
       position: relative;
  }

  .die {
   width: 64px;
   height: 64px;
   background: #fffdf8;
   border: 1px solid #cfc7b5;
   border-radius: 10px;



   box-shadow:
     0 5px 0 #bdb5a4,
     0 8px 12px rgba(40,30,15, .18);
   transition:
     transform 0.15s ease,
     box-shadow 0.15s ease;
  }
/*
 *
 When your JavaScript adds a held class,
this gives the die a physical "picked up"
appearance.
*/


/* =========================================================
 ROLL BUTTON
 ========================================================= */
#yg-roll {
    display: block;
    width: 210px;
    margin: 0 auto 35px;
    padding: 13px 20px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow:
      0 4px 0 var(--accent-dark),
      0 7px 12px rgba(50, 20, 15, .2);
    transition:
      transform .1s ease,
      box-shadow .1s ease,
      background .15s ease;

}
/*
#yg-roll {
background: #b54a3d;
}

#yg-roll {
transform: translateY(3px);

box-shadow:
0 1px 0 var(--accent-dark),
0 3px 7px rgba(50, 20, 15, .15);

}

#yg-roll:hower {
    opacity: .45;
    cursor: not-allowed;
}
*/

/* =========================================================
 SCORECARD
 ========================================================= */
#scorecard{
  margin-top:10px
}
.scorecard {
 padding: 25px 28px;
 background: rgba(255,253,245, .72);
 border: 2px solid var(--ink);
 box-shadow:
   inset 0 0  0 5px var(--paper),
   inset 0 0  0 6px var(--line);
}




/* =========================================================
 SCORECARD HEADER
 ========================================================= */

.scorecard-header{
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding-bottom: 16px;
     margin-bottom: 20px;
     border-bottom: 3px double var(--ink);

}

.scorecard-kicker {
    display : block;
    margin-bottom; 3px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--muted);
}

.scorecard h1{
     margin: 0px;
     font-size: 31px;
     font-weight: 900;
     line-height: 1;
     letter-spacing: 3px;
}

.turn-counter {
 text-align: center;
 min-width: 65px;
}

.turn-counter span {
     display: block;
     font-family: Arial, sans-serif;
     font-size: 9px;
     font-weight: 800;
     letter-spacing: 1px;
     color: var(--muted);
}

.turn-counter strong {
     font-size: 25px;
}

.turn-counter small {
    color: var(--muted);
}


/* =========================================================
 SECTIONS
 ======================================================== */

.section{
   margin-bottom:25px;
}

.section-title{
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     padding: 7px 9px;
     background: var(--ink);
     color: var(--paper);
     text-transform: uppercase;
}

.section-title{

     font-family: Arial, sans-serif;
     font-size: 12px;
     font-weight: 900;
     letter-spacing: 2px;
}


.section-title small{

     font-family: Arial, sans-serif;
     font-size: 9px;
     opacity: .7
}

/* =========================================================
 TABLE
 ========================================================= */

.score-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.score-table th {
     padding: 7px 9px;
     border-bottom: 1px solid var(--ink);
     font-family: Arial, sans-serif;
     font-size: 9px;
     text-transform: uppercase;
     letter-spacing: 1px;
     color: var(--muted);
     text-align: left;
     width:75px
}

.score-table td {
     padding: 7px 9px;
     border-bottom: 1px solid var(--line);
     font-size: 14px;
}

/* =========================================================
 SCORE ROWS
 ========================================================= */

.score-row {
    cursor: pointer;
    transition: 0.2s;
    transition:
       background .12s ease,
       transform .12s ease;
    background: rgba(168,63, 50,.08);
}

.score-row td{
    padding-left: 13px
}

.score-row.selected{
    background: rgba(82,107, 72,.13);
    font-weight: 700
}
score-row.selected td:first-child::before {
    content: "✓ ";
    color: var(--green);
    font-weight: 900;
}

.score-value {
   text-align: center;
   font-family: Georgia, "Times New Roman", serif;
   font-size: 17px !important;
   font-weight: 700;
   color: var(--ink);
}

.score-row .score-value {
   color: var(--accent);
}
/* =========================================================
 SCORE VALUES
 ========================================================= */

.score-table tfooter td {

  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;

}




/* =========================================================
 TABLE FOOTER
 ========================================================= */


.total-row td {
  border-top: 2px solid var(--ink);
  border-bottom: 0 !important;
  font-weight: 900 !important;
}

.grand-total td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  border-top: 3px double var(--ink);
  border-bottom: 0 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.grand-total td {
  font-size: 21px !important;
}


/* =========================================================
 TOTALS
 ========================================================= */

