body {
    font-family: "TT Norms Pro", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh-50px);
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-family: "Unbounded", sans-serif;
}

h2 {
    text-align: center;
    font-size: 24px;
    font-weight: normal;
}

.progress-bar {
    width: 280px;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.filler {
    height: 100%;
    width: 100%;
    background-color: red;
    transition: width 0.1s linear;
}

.score-container {
    display: flex;
    justify-content: space-between; 
    margin-bottom: 15px;
}

.score, .best-score {
    font-size: 21px;
    margin-right: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    gap: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid #ddd; */
    background-color: #e0e0e0;
    font-size: 20px;
}

.cell:hover {
    background-color: #d0d0d0;
    transform: scale(1.1);
}

.cell:active {
    transform: scale(0.9);
    background-color: #bbb;
}

@keyframes correctClick {
    0% {
        background-color: #4CAF50;
    }
    100% {
        background-color: #e0e0e0;
    }
}

@keyframes incorrectClick {
    0% {
        background-color: #FF5733;
    }
    100% {
        background-color: #e0e0e0;
    }
}


.best-score-beat {
    animation: beatHighScore 0.5s ease-in-out;
    color: #4CAF50;
}

@keyframes beatHighScore {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Common styles */

.theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 30px;
    background-color: #bbb;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Day theme specific styles */

body[data-theme="day"] {
    background-color: #ffffff;
    color: #333;
}

body[data-theme="day"] .theme-toggle {
    background-color: #eee;
}

body[data-theme="day"] .cell {
    background-color: #f1f1f1; /* Lighter cell background for the day theme */
    color: #333; /* Dark text for the day theme */
}

/* Night theme specific styles */

body[data-theme="night"] {
    background-color: #2e2e2e;
    color: #eaeaea; /* Brighter font color for night theme */
}


body[data-theme="night"] .theme-toggle {
    background-color: #666;
}

body[data-theme="night"] .toggle {
    transform: translateX(30px);
}

body[data-theme="night"] .cell {
    background-color: #444; /* Darker cell background for the night theme */
    color: #eaeaea; /* Brighter text for the night theme */
}



body {
    transition: transform 2s ease-in-out; /* Smoother, game-like transition */
    transform-origin: center; /* Rotation around the center */
}

#rotateButton {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2em; /* Make the emoji bigger */
    border: none;
    background: none;
    cursor: pointer;
}

.note {
    margin-top: 30px;
    color: grey;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.lesha { 
    width: 100%;
    margin:auto;
}
#restartBtn {
    background-color: transparent; /* Remove the background */
    color: #4CAF50; /* Give it a link-like color */
    padding: 5px;  /* Reduce the padding to feel more like a link */
    border: none;
    border-radius: 0;  /* No need for rounded borders for link styling */
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;  /* Ensure there's no underline or other decoration */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

#restartBtn:hover {
    color: #45a049;  /* Slightly darker shade for hover */
    border-bottom-color: #45a049; /* Match the underline color to text on hover */
}

#discountBtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#discountBtn:hover {
    background-color: #45a049;
}
/* Dark background for modal in night theme */
body[data-theme="night"] .modal-content {
    background-color: rgba(0, 0, 0, 0.85); /* Slightly darker than original modal background */
}

body[data-theme="night"] a {
    color: rgb(142, 167, 221); /* Slightly darker than original modal background */
}

.ya-share2 {
 
}