/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/* *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  display: flex;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #17A2B8;
} */
::selection{
  color: #fff;
  background: #17A2B8;
}

@font-face
{
  font-family : hindi;
  src : url("Kruti-Dev-010.ttf");
}

.wrapper1{
  width: 90%;
  /* padding: 35px; */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}
.wrapper1 .input-field{
  opacity: 0;
  z-index: -999;
  position: absolute;
}
.wrapper1 .content-box{
  padding: 13px 20px 0;
  border-radius: 10px;
  border: 1px solid #bfbfbf;
}
.content-box .typing-text{
  overflow: auto;
  max-height: 256px;
}
.typing-text::-webkit-scrollbar{
  width: 5;
}
.typing-text p{
  font-size: 22px;
  text-align: center;
  /* letter-spacing: 5px; */
  font-weight: bold;
  font-family: hindi;
  line-height: 30px;
  word-break: break-all;
}
.typing-text p span{
  position: relative;
}
.typing-text p span.correct{
  color: #56964f;
}
.typing-text p span.incorrect{
  color: #cb3439;
  outline: 1px solid #fff;
  background: #ffc0cb;
  border-radius: 4px;
}
.typing-text p span.active{
  color: #ffffff;
  background-color: black;
  padding:3px 13px 3px 10px;
}
.typing-text p span.active::before{
  position: absolute;
  content: "";
  height: 2px;
  width: 100%;
  bottom: 0;
  left: 0;
  opacity: 0;
  border-radius: 5px;
  background: #17A2B8;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink{
  50%{ 
    opacity: 1; 
  }
}
.content-box .content{
  margin-top: 17px;
  display: flex;
  padding: 12px 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #bfbfbf;
}
.content button{
  outline: none;
  border: none;
  width: 105px;
  color: #fff;
  padding: 8px 0;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  background: #17A2B8;
  transition: transform 0.3s ease;
}
.content button:active{
  transform: scale(0.97);
}
.content .result-details{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: calc(100% - 140px);
  justify-content: space-between;
}
.result-details li{
  display: flex;
  height: 20px;
  list-style: none;
  position: relative;
  align-items: center;
}
.result-details li:not(:first-child){
  padding-left: 22px;
  border-left: 1px solid #bfbfbf;
}
.result-details li p{
  font-size: 19px;
}
.result-details li span{
  display: block;
  font-size: 20px;
  margin-left: 10px;
}
li span b{
  font-weight: 500;
}
li:not(:first-child) span{
  font-weight: 500;
}

/* model box */

/* Style the modal */
/* .modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
} */

/* Style the modal content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
}

/* Style the close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Define table styles */
  .result-table {
      border-collapse: collapse;
      width: 100%;
  }

  .result-table th, .result-table td {
      border: 1px solid #b9b7b7;
      padding: 8px;
      text-align: center;
  }

  

  /* Colorful column styles */
  .wpm-column {
      background-color: #ffb3b3; /* Light red */
  }

  .mistake-column {
      background-color: #b3b3ff; /* Light blue */
  }

  .time-column {
      background-color: #ffcc66; /* Light orange */
  }

  .accuracy-column {
      background-color: #66ff66; /* Light green */
  }

  /* Style for button container */
  .button-container {
    text-align: center;
  }

  /* Style for buttons */
  .button {
      display: inline-block;
      padding: 10px 20px;
      margin: 0 5px; /* Adjust spacing between buttons */
      border: none;
      border-radius: 5px;
      background-color: #17A2B8; /* Green background */
      color: white;
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      cursor: pointer;
      width: 60px;
  }

  /* Style for hover effect */
  .button:hover {
      background-color: #45a049; /* Darker green background on hover */
  }


  .section1 {
    width: 22%;
    float: left;
    padding: 20px;
    box-sizing: border-box;
  }
  .section2 {
    width: 78%;
    float: left;
    padding: 20px 100px 20px 20px;
    box-sizing: border-box;
  }

  .section h2 {
    margin-top: 0;
  }

  .list1 {
    list-style-type: none;
    font-family: Arial, sans-serif;
    border: 1px solid rgb(199, 199, 199);
    padding: 10px;
    font-weight: bold;
    background-color: #fff;
  }



  .section1 ul:hover{
    background-color: rgb(215, 207, 207);
  }
  .list1 kbd {
    background-color: rgb(30, 0, 128);
    font-weight:bold;
    padding: 5px 8px;
  }

  .kbdH {
    font-family: hindi;
  }

  .list2 {
    
    /* font-family: Times New Roman, serif; */
    border: 1px solid rgb(199, 199, 199);
    padding: 10px;
    background-color: white;
    border-radius: 5px;
  }

  .list2 h3{
    padding-bottom: 10px;
    border-bottom: 1px solid gainsboro;
    color:#065f6d;
    font-weight: bold;
  }

  .section1 h3{
   
    color:#065f6d;
    font-weight: bold;
  }

  .list2 ul{
    padding-left: 10px;
  }

  .list2 li{
    list-style-type: disc;
    margin-left: 10px;
  }

  .list2 img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

  .list2 button{
    padding: 5px 15px;
    background-color: blue;
    color:white;
    font-weight: bold;
    border:none;
    border-radius: 5px;
  }

  .list2 h4{
    color:#17A2B8;
    font-weight: bold;
  }

  #keyboardL1, #keyboardL2, #keyboardL3, #keyboardL4, #keyboardL5{
    width: 60%;
    display: grid;    
    gap: 3px;
    padding: 3px;
    background-color:rgb(255, 255, 255);
  }

  .hindi-key{
    font-family: hindi;
    font-weight: bold;
    font-size: large;
  }
  #keyboardL1 {
    grid-template-columns: repeat(14, 1fr);
    
  }

  #keyboardL2 {
    
    grid-template-columns: repeat(14, 1fr);
    
  }

  #keyboardL3 {
    grid-template-columns: repeat(13, 1fr);
    
  }

  #keyboardL4 {
    grid-template-columns: repeat(12, 1fr);

  }

  #keyboardL5 {
    grid-template-columns: repeat(7, 1fr);

  }
  
  .key {
    background-color: #d8d4d4;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
  }

  .key span{
    background-color: transparent;
    border: none;
    float: right;
    font-size:15px;
    cursor: pointer;
    outline: none;
    width:max-content;
    transition: background-color 0.2s ease;
  }

  .key span:hover{
    background-color: transparent;
  }
  
  .key:hover {
    background-color: #f0f0f0;
  }
  
  .key:active {
    background-color: #e0e0e0;
  }
  
  .key.highlight {
    background-color: #3e8e41;
    color: white;
    background-image: none;

  }

  .key.errHighlight {
    background-color: #e33c0d;
    color: white;
    background-image: none;
  }

  /* keybackgroud */
  button[data-key="~"], button[data-key="1"], button[data-key="q"], button[data-key="a"], button[data-key="z"], button[data-key="shift"],button[data-key="capslock"], button[data-key="tab"], button[data-key="0"], button[data-key="p"], button[data-key=";"], button[data-key="/"], button[data-key="-"], button[data-key="["], button[data-key="]"], button[data-key="="], button[data-key="backspace"], button[id="bt"], button[data-key="enter"], button[data-key="'"], button[data-key="c"] {
    background: linear-gradient(45deg, #cef2cd 25%, transparent 25%, transparent 50%, #cef2cd 50%, #cef2cd 75%, transparent 75%, transparent);
    background-size: 8px 8px; /* Adjust the size of the stripes */
  }

  button[data-key="2"], button[data-key="w"], button[data-key="s"], button[data-key="x"], button[data-key="9"], button[data-key="o"], button[data-key="l"], button[data-key="."] {
    background: linear-gradient(45deg, #bed0f6 25%, transparent 25%, transparent 50%, #bed0f6 50%, #bed0f6 75%, transparent 75%, transparent);
    background-size: 8px 8px; /* Adjust the size of the stripes */
  }

  button[data-key="3"], button[data-key="e"], button[data-key="d"], button[data-key="c"], button[data-key="8"], button[data-key="i"], button[data-key="k"], button[data-key=","] {
    background: linear-gradient(45deg, #f7c7a6 25%, transparent 25%, transparent 50%, #f7c7a6 50%, #f7c7a6 75%, transparent 75%, transparent);
    background-size: 8px 8px; /* Adjust the size of the stripes */
  }

  button[data-key="4"], button[data-key="5"], button[data-key="r"], button[data-key="t"], button[data-key="f"], button[data-key="g"], button[data-key="v"], button[data-key="b"] {
    background: linear-gradient(45deg, #f3ec99 25%, transparent 25%, transparent 50%, #f3ec99 50%, #f3ec99 75%, transparent 75%, transparent);
    background-size: 8px 8px; /* Adjust the size of the stripes */
  }

  button[data-key="6"], button[data-key="7"], button[data-key="y"], button[data-key="u"], button[data-key="h"], button[data-key="j"], button[data-key="n"], button[data-key="m"] {
    background: linear-gradient(45deg, #eea1db 25%, transparent 25%, transparent 50%, #eea1db 50%, #eea1db 75%, transparent 75%, transparent);
    background-size: 8px 8px; /* Adjust the size of the stripes */
  }

  button[data-key="control"], button[data-key="meta"], button[data-key="alt"], button[data-key=" "] {
    background: linear-gradient(45deg, #e4e3e3 25%, transparent 25%, transparent 50%, #e4e3e3 50%, #e4e3e3 75%, transparent 75%, transparent);
    background-size: 8px 8px; /* Adjust the size of the stripes */
  }


@media (max-width: 745px) {
  .wrapper1{
    padding: 20px;
  }
  .content-box .content{
    padding: 20px 0;
  }
  .content-box .typing-text{
    max-height: 100%;
  }
  .typing-text p{
    font-size: 19px;
    text-align: center;
    line-height: 30px;
  }
  .content button{
    width: 100%;
    font-size: 15px;
    padding: 10px 0;
    margin-top: 20px;
  }
  .content .result-details{
    width: 100%;
  }
  .result-details li:not(:first-child){
    border-left: 0;
    padding: 0;
  }
  .result-details li p, 
  .result-details li span{
    font-size: 17px;
  }

  .modal-content {
    
    width: 70%;
  }
  .section2 {
    padding: 20px 50px 20px 20px;
    
  }

  .section1, .section2 {
    width: 100%;
    padding: 20px;
    
  }
}
@media (max-width: 518px) {
  .wrapper1 .content-box{
    padding: 10px 15px 0;
  }
  .typing-text p{
    font-size: 18px;
    line-height: 25px;
  }
  .result-details li{
    margin-bottom: 10px;
  }
  .content button{
    margin-top: 10px;
  }

  .modal-content {
    
    width: 90%;
  }
  .section2 {
    padding: 20px;
    
  }
}

