/* dailyStyles.css */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.game-frame {
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 750px;
    max-height: 1800px;
    margin: 0 auto; /* Center the container horizontally */
    height: 100vh; /* 100% of the viewport height */
}
/* Hide the elements with CSS */
.hidden {
  display: none;
}
.game-stars,
.game-target,
.game-equation,
.game-keypad {
    width: 95%; /* Each section fills the available width */
	max-width: 600px;
    box-sizing: border-box; /* Include padding and border in the width */
    margin-bottom: 1px; /* Adjust as needed */
	align-items: center;
    justify-content: center;
    

}

/* Additional styling for each section if needed */
.game-stars {
    /* Styles for the game-stars section */
	width: 90%;
    max-width: 600px;
    height: auto;
    text-align: center;
    font-size: 8vh;
    margin: auto;
    z-index: 2;
    padding: 2px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.game-subStar {
    /* Styles for the game-subStars section */
    width: 25%;
    max-width: 40px;
    padding: 10px;
}


.game-target {
    /* Styles for the game-target section */
	width: 95%;
    max-width: 600px;
    height: auto;
    text-align: center;
    font-size: 4vh;
    margin: auto;
    padding: 10px;
}

.game-equation {
    /* Styles for the game-equation section */
	text-align: center;
    width: 95%;
    max-width: 600px;
    height: auto;
    margin: auto;
    padding: 10px;
    /* font-family: 'Daily-Digits'; */
    font-size: 4vh;

}

.in {
    width: 98%;
    font-size: 6vh;
    text-align: center;
    line-height: 15vh;
    horizontal-align: middle;
}
.runtot {
    font-size: 3vh;
    color: #B2B2B2;
    font-style: italic;
    min-width: 6vh;
    z-index: 2;
    min-height: 3vh; /* Set minimum height */
    display: inline-block; /* Ensure inline-block behavior */
    vertical-align: top; /* Align to top of the line */
}


.game-keypad {

    height: auto;
    text-align: center;
    horizontal-align: middle;
    margin: auto;
    padding: 2%;

}

.menu_button {
    float: right;
    margin-right: 10px; /* Adjust the margin as needed for spacing */
    
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    
    width: 48px;
    height: 48px;
     /*Use object-fit to contain the image within the button */
  
}


.mathbutton {

  padding: 2% 2%;
  width: 18%;
  height: 8%;
  font-size: 175%;
  font-family: "Lucida Console", "Courier New", monospace;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #4CAF50;
  border: none;
  border-radius: 20%;
  box-shadow: 0 5px #999;
	z-index: 2;
	
}
.mathbutton:hover {
	background-color: #3e8e41
}

.mathbutton:active {
  background-color: #3e8e41;
  box-shadow: 0 3px #666;
  transform: translateY(3px);
}

.mathbutton:disabled {
  color: #808080;
  background-color: #EBECF0;
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.grid-item {
    width: 20%; /* Adjust as needed */
    text-align: center;
}

/* Modal */
.modal {
    display: none; /* Hide the modal by default */
    position: fixed;
    z-index: 1000; /* Ensure modal appears above other elements */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Modal Title */
.modal-header .title {
    font-size: 20px;
    font-weight: bold;
}

/* Close Button */
.close-button {
    cursor: pointer;
    font-size: 24px;
    color: #888;
    border: none;
    background: none;
}

/* Overlay */
#overlay {
    display: none; /* Hide the overlay by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999; /* Ensure overlay appears below the modal */
}


/* Leaderboard Table */
/* Leaderboard Table */
#ldTable {
    width: 100%;
    border-collapse: collapse;
}

/* Table Header */
#ldTable th {
    background-color: #f2f2f2;
    padding: 8px;
    text-align: left;
}

/* Table Rows */
#ldTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Table Cells */
#ldTable td {
    padding: 8px;
}

/* Hover Effect on Rows */
#ldTable tr:hover {
    background-color: #ddd;
}




/* Standard syntax */
@keyframes shake {
  10%, 90% {
    transform: translate3d(-2px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(4px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-8px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(8px, 0, 0);
  }
}

.apply-shake {
	color: #ff0000;
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
.apply-shake-no-clear {
	color: #ff0000;
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
.apply-spin {
	
    animation: spin 1.5s cubic-bezier(.36,.07,.19,.97) both;
}
.apply-spin2 {
	
    animation: spin2 5s cubic-bezier(.36,.07,.19,.97);
	
}


@keyframes shakeGood {
  10%, 90% {
    transform: translate3d(0, -2px, 0);
  }

  20%, 80% {
    transform: translate3d(0, 4px, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(0,-8px, 0);
  }

  40%, 60% {
    transform: translate3d(0,8px, 0);
  }
}
@keyframes spin {
  10% {
        transform:scale(1);
    }
  50% {
        transform:scale(4);
    }
	90% {
        transform:scale(1);
    }
}
@keyframes spin2 {
  10% {
        transform:scale(1);
	  
	   
    }
  50% {
        transform:scale(4) rotateZ(720deg) translate3d(-20px,0,0);
	  	
    }


	90% {
        transform:scale(1) translate3d(0px,0,0);
		
    }
}


.apply-shake-good {
	color: #3e8e41;
    animation: shakeGood 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
.example {
	width: min-content;
}
.apply-wobble {
	
 
  animation: wobble 1.2s 6;
}

@keyframes wobble {
   0% {
    transform:  scale(1);
  }
  5% {
    transform:  scale(1.1);
  }
  10% {
    transform:  scale(1);
  }
  15% {
    transform:  scale(1.2);
  }
  50% {
    transform:  scale(1);
  }
  100% {
    transform:  scale(1);
  }

}
