/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Background Colors for Each Page */
body.index-page {
    background: linear-gradient(to bottom, #ffeb3b, #ffd700); /* Yellow gradient for main page */
}

body.math-game-page {
    background-color: rgb(228, 112, 104); /* Math Game page background */
}

body.sudoku-page {
    background-color: rgb(237, 146, 35); /* Sudoku page background */
}

body.nutrition-page {
    background-color: rgb(216, 224, 66); /* Nutrition page background */
}

body.sleep-page {
    background-color: rgb(143, 234, 32); /* Sleep page background */
}

/* Header Styles (Shared Across Pages) */
header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Buttons (Shared Across Pages) */
button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(2px);
}

/* Footer (Shared Across Pages) */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 0;
    width: 100%;
	height: 5%;
	size; 5%;
}

/* Main Page Styles */
body.index-page .page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

body.index-page header {
    border-radius: 10px;
}

body.index-page section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.index-page ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.index-page ul li {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
}

body.index-page ul li span {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-right: 10px;
}

body.index-page .buttons-container button {
    margin: 10px;
    padding: 15px 30px;
    background: linear-gradient(to right, #ff9800, #ffc107);
    color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

body.index-page .buttons-container button:hover {
    background: linear-gradient(to right, #ffb74d, #ffd54f);
    transform: scale(1.05);
}

/* Math Game Page Styles */
body.math-game-page .math-game-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    gap: 20px;
}

body.math-game-page h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

body.math-game-page #game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

body.math-game-page #game input {
    padding: 10px;
    font-size: 1rem;
    width: 200px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    outline: none;
}

body.math-game-page #game button {
    width: 150px;
}

body.math-game-page .win-streak-logger {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Nutrition Page Styles */
body.nutrition-page .nutrition-main {
    text-align: left;
    padding: 20px;
    max-width: 600px;
}

body.nutrition-page .nutrition-main ul {
    list-style-type: disc;
    padding-left: 40px;
}

/* Sleep Page Styles */
body.sleep-page .sleep-main {
    text-align: left;
    padding: 20px;
    max-width: 600px;
}

body.sleep-page .sleep-main ul {
    list-style-type: disc;
    padding-left: 40px;
}

/* Sudoku Page Styles */
body.sudoku-page .sudoku-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    min-height: 100vh;
}

body.sudoku-page #sudoku-board {
    margin: 20px auto;
    width: 360px;
    height: 360px;
    border: 2px solid #000;
    background-color: #fdfdfd; /* Light background for Sudoku grid */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for emphasis */
}

body.sudoku-page #sudoku-board table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

body.sudoku-page #sudoku-board td {
    border: 1px solid #000;
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}

body.sudoku-page #sudoku-board input {
    width: 100%;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 20px;
    outline: none;
    background-color: transparent;
    box-sizing: border-box;
}

body.sudoku-page #sudoku-board input.prefilled {
    background-color: #e6e6e6;
    color: #000;
    font-weight: bold;
    border: 1px solid #000;
    box-sizing: border-box;
}

body.sudoku-page .sudoku-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* References Page Styles */
body.references-page .page-container {
    text-align: center;
    max-width: 800px;
    margin: auto;
}