/* html, body {
    min-height: 100%;
} */

body, div, input, p {
    padding: 0;
    margin: 0;
    outline: none;
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    color: #eee;
}

body {
background-image: url('../img/19.jpg'); 
background-position: center; 
background-attachment: fixed;
height: 100%;
}
.tabla {
    margin-top: 0px;
}
.txtout {
    margin: 0px 10px 0px 10px;
    border: 2px solid;
    height: max-content;
    width: inherit;
    background-color: transparent;
    /* background-color: #26a9e0; */
}

.mt-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 5px;
    margin: 0 15px 0 15px;
    background: rgba(0, 0, 0, 0.5);
}

#checkers {
    /* padding: 5px; */
    /* border: 2px solid; */
    border: 2px solid burlywood;
    /* background: rgba(0, 0, 0, 0.5); */
    /* background-image: url('../img/19.jpg'); 
    background-position: center; 
    background-attachment: fixed; */
    height: 100%;
}

.btn_winner {
  display: none;
}

.content_body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px; 
    background-color: rgba(0, 0, 0, 0.6);
}

.title {
    color: burlywood;
    text-align: center;
}
.sub {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.sub2 {
    font-size: 16px;
}

#red {
    /* margin-top: 100px; */
    color: red;
}
#blue {
    /* margin-bottom: 100px; */
    color: blue;
}
    .rotated {
        /* line-height: 40pt; */
        margin-top: 50px;
        margin-right: 0px;
        writing-mode: tb-rl;
        transform: rotate(180deg);
    }

    #title, #opendrawer {
        font-size:24px;
    }
    
    #opendrawer {
        cursor:pointer;
		    float: auto;
    }

    /* body {
        font-family: "Lato", sans-serif;
        transition: background-color .5s;
      } */
      
      .sidenav {
        /* height: 0px; */
        /* width: inherit; */
        /* position: fixed;
        z-index: 1;
        background-color: #111;
        overflow-x: hidden;
        transition: 0.5s; */


        /* height: 100%; */
        height: inherit;
        width: 200px;
        position: fixed;
        z-index: 1;
        /* top: 0;
        left: 0; */
        margin-right: 0;
        background-color: #111;
        overflow-x: hidden;
        transition: 2s;
        padding-top: 60px;
        padding: 60px 4px 4px 4px; 
        /* padding-top: 20px; */
      }
      
      .sidenav a {
        padding: 8px 8px 8px 32px;         
        text-decoration: none;
        font-size: 20px;
        /* color: #818181; */
        color: #919191;
        display: block;
        transition: 1s;
        /* border: 1px solid #222; */
      }
      .sidenav :not(:first-child){
      /* .sidenav :not(:nth-child(1,2)){ */
        border: 1px solid #313131;
      }
      
   
      .sidenav a:hover { 
        color: #f1f1f1;
      }
      
      .sidenav .closebtn {
        position: absolute;
        top: 0;
        /* right: 25px; */
        font-size: 20px;
        /* margin-left: 50px; */
      }

      #main {
        transition: margin-left .5s;
        padding: 16px;
      }
      
      @media screen and (max-height: 450px) {
        .sidenav {padding-top: 15px;}
        .sidenav a {font-size: 18px;}
      }

/* ================================
   ✅ MODERN RESPONSIVE UPGRADE
   Safe for your existing JS/Canvas
================================ */

/* Smooth fonts & overall polish */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Main glass container */
.mt-3 {
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Main game wrapper */
.txtout {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}

/* Center canvas properly */
.tabla {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modern button styling */
button {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}

/* Player labels polish */
#red, #blue {
  font-size: 18px;
  letter-spacing: 1px;
}

/* Hamburger icon polish */
#opendrawer {
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Sidebar modern look */
.sidenav {
  width: 220px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.6);
  transition: 0.3s ease;
}

.sidenav a {
  border-radius: 8px;
  margin: 6px;
  background: rgba(255,255,255,0.05);
}

.sidenav a:hover {
  background: rgba(255,255,255,0.15);
}

/* Footer polish */
footer {
  font-size: 14px;
  opacity: 0.8;
}

/* ✅ MOBILE OPTIMIZATION */
@media (max-width: 768px) {

  .mt-3 {
    padding: 8px;
    margin: 5px;
  }

  .sidenav {
    width: 180px;
  }

  #checkers {
    max-width: 95vw;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }

  #red, #blue {
    font-size: 16px;
  }
}

/* ✅ SAFE UI POLISH - DOES NOT TOUCH CANVAS SIZE */

button {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}

#red, #blue {
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
}

#opendrawer {
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 8px;
}
