add initial Caddyfile, docker-compose.yml, and HTML files for math flashcards; set up basic structure and styles

This commit is contained in:
Peter Wood
2025-09-28 20:32:32 -04:00
parent d4c91ffcc2
commit 724b0766cb
7 changed files with 1104 additions and 0 deletions

5
margotwood/Caddyfile Normal file
View File

@@ -0,0 +1,5 @@
:80 {
root * /usr/share/caddy
encode gzip
file_server
}

View File

@@ -0,0 +1,16 @@
services:
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- 8083:80
- 8243:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./:/usr/share/caddy
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data: null
caddy_config: null
networks: {}

View File

@@ -0,0 +1,430 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Toddler Math Flash Cards - Addition Fun!</title>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Nunito', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
color: #333;
padding: 10px 0;
}
.app-container {
background: white;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
max-width: 500px;
width: 95%;
margin: 10px auto;
}
.title {
color: #4a5568;
font-size: 2.2em;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.flashcard {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
border-radius: 15px;
padding: 25px;
margin: 15px 0;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.flashcard:hover {
transform: scale(1.05);
}
.equation {
font-size: 3.5em;
font-weight: bold;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
margin-bottom: 10px;
}
.answer-section {
margin: 20px 0;
}
.answer-input {
font-size: 2.5em;
padding: 12px 15px;
border: 4px solid #667eea;
border-radius: 15px;
text-align: center;
width: 130px;
margin: 0 auto 15px auto;
display: block;
font-family: 'Nunito', sans-serif;
}
.answer-input:focus {
outline: none;
border-color: #f093fb;
box-shadow: 0 0 20px rgba(240, 147, 251, 0.3);
}
.buttons {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 20px;
}
.btn {
font-size: 1.5em;
padding: 15px 30px;
border: none;
border-radius: 50px;
cursor: pointer;
font-family: 'Nunito', sans-serif;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-check {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
}
.btn-next {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: white;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.feedback {
font-size: 2.5em;
font-weight: bold;
margin: 20px 0;
padding: 20px;
border-radius: 15px;
transition: all 0.5s ease;
}
.correct {
background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
color: #2d5a27;
}
.incorrect {
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
color: #8b4513;
}
.score {
background: rgba(255, 255, 255, 0.9);
padding: 8px 15px;
border-radius: 20px;
font-size: 1em;
font-weight: bold;
color: #4a5568;
margin-bottom: 15px;
display: inline-block;
}
.celebration {
font-size: 3em;
animation: bounce 1s infinite;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
.number-buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin: 15px 0;
}
.number-buttons .number-btn:last-child {
grid-column: span 2;
}
.number-btn {
font-size: 1.8em;
padding: 12px;
border: 3px solid #667eea;
border-radius: 12px;
background: white;
cursor: pointer;
font-family: 'Nunito', sans-serif;
font-weight: bold;
color: #667eea;
transition: all 0.2s ease;
min-height: 50px;
}
.number-btn:hover {
background: #667eea;
color: white;
transform: scale(1.1);
}
@media (max-width: 600px) {
.app-container {
padding: 15px;
margin: 5px auto;
}
.title {
font-size: 1.8em;
margin-bottom: 10px;
}
.equation {
font-size: 2.8em;
}
.answer-input {
font-size: 2.2em;
width: 110px;
}
.number-btn {
font-size: 1.6em;
padding: 10px;
min-height: 45px;
}
.btn {
font-size: 1.3em;
padding: 12px 25px;
}
}
@media (max-height: 700px) {
.flashcard {
padding: 20px;
margin: 10px 0;
}
.equation {
font-size: 3em;
}
.number-btn {
font-size: 1.6em;
padding: 8px;
min-height: 40px;
}
}
</style>
</head>
<body>
<div class="app-container">
<div class="score" id="score">Score: 0/0</div>
<h1 class="title">🎓 Addition Practice</h1>
<div class="flashcard">
<div class="equation" id="equation">5 + 3 = ?</div>
</div>
<div class="answer-section">
<input type="number" class="answer-input" id="answerInput" placeholder="?" min="0" max="20">
<div class="number-buttons" id="numberButtons">
<button class="number-btn" onclick="inputNumber(0)">0</button>
<button class="number-btn" onclick="inputNumber(1)">1</button>
<button class="number-btn" onclick="inputNumber(2)">2</button>
<button class="number-btn" onclick="inputNumber(3)">3</button>
<button class="number-btn" onclick="inputNumber(4)">4</button>
<button class="number-btn" onclick="inputNumber(5)">5</button>
<button class="number-btn" onclick="inputNumber(6)">6</button>
<button class="number-btn" onclick="inputNumber(7)">7</button>
<button class="number-btn" onclick="inputNumber(8)">8</button>
<button class="number-btn" onclick="inputNumber(9)">9</button>
<button class="number-btn" onclick="inputNumber(10)">10</button>
<button class="number-btn" onclick="clearAnswer()"
style="background: #ff6b6b; color: white;">Clear</button>
</div>
</div>
<div class="feedback" id="feedback" style="display: none;"></div>
<div class="buttons">
<button class="btn btn-check" onclick="checkAnswer()">Check Answer! 🎯</button>
<button class="btn btn-next" onclick="nextCard()" style="display: none;" id="nextBtn">Next Card! ➡️</button>
</div>
</div>
<script>
let currentNum1, currentNum2, correctAnswer;
let totalQuestions = 0;
let correctAnswers = 0;
function generateNewCard () {
// Generate two random numbers from 0 to 10
currentNum1 = Math.floor(Math.random() * 11);
currentNum2 = Math.floor(Math.random() * 11);
correctAnswer = currentNum1 + currentNum2;
// Update the equation display
document.getElementById('equation').textContent = `${currentNum1} + ${currentNum2} = ?`;
// Reset the input and feedback
document.getElementById('answerInput').value = '';
document.getElementById('feedback').style.display = 'none';
document.getElementById('nextBtn').style.display = 'none';
// Don't focus on input to prevent keyboard from showing on mobile
}
function inputNumber (num) {
const input = document.getElementById('answerInput');
const currentValue = input.value;
if (currentValue === '' || currentValue === '0') {
input.value = num;
} else if (currentValue.length < 2) { // Limit to 2 digits max
input.value = currentValue + num;
}
}
function clearAnswer () {
document.getElementById('answerInput').value = '';
}
function checkAnswer () {
const userAnswer = parseInt(document.getElementById('answerInput').value);
const feedbackEl = document.getElementById('feedback');
if (isNaN(userAnswer)) {
alert('Please enter a number! 😊');
return;
}
totalQuestions++;
if (userAnswer === correctAnswer) {
correctAnswers++;
feedbackEl.innerHTML = `<div class="celebration">🎉</div>Awesome! ${currentNum1} + ${currentNum2} = ${correctAnswer}`;
feedbackEl.className = 'feedback correct';
// Play success sound (if browser supports it)
playSound('success');
} else {
feedbackEl.innerHTML = `<div>Try again! 💪</div>${currentNum1} + ${currentNum2} = ${correctAnswer}`;
feedbackEl.className = 'feedback incorrect';
// Play try again sound (if browser supports it)
playSound('tryAgain');
}
feedbackEl.style.display = 'block';
document.getElementById('nextBtn').style.display = 'inline-block';
updateScore();
}
function nextCard () {
generateNewCard();
}
function updateScore () {
const percentage = totalQuestions > 0 ? Math.round((correctAnswers / totalQuestions) * 100) : 0;
document.getElementById('score').textContent = `Score: ${correctAnswers}/${totalQuestions} (${percentage}%)`;
}
function playSound (type) {
// Create audio context for simple beep sounds
try {
const audioContext = new (window.AudioContext || window.webkitAudioContext)();
const oscillator = audioContext.createOscillator();
const gainNode = audioContext.createGain();
oscillator.connect(gainNode);
gainNode.connect(audioContext.destination);
if (type === 'success') {
// Happy ascending notes
oscillator.frequency.setValueAtTime(523.25, audioContext.currentTime); // C5
oscillator.frequency.setValueAtTime(659.25, audioContext.currentTime + 0.1); // E5
oscillator.frequency.setValueAtTime(783.99, audioContext.currentTime + 0.2); // G5
} else {
// Gentle encouraging tone
oscillator.frequency.setValueAtTime(440, audioContext.currentTime); // A4
}
gainNode.gain.setValueAtTime(0, audioContext.currentTime);
gainNode.gain.linearRampToValueAtTime(0.1, audioContext.currentTime + 0.01);
gainNode.gain.exponentialRampToValueAtTime(0.01, audioContext.currentTime + 0.3);
oscillator.start(audioContext.currentTime);
oscillator.stop(audioContext.currentTime + 0.3);
} catch (e) {
// Audio not supported, silent fail
}
}
// Keyboard support
document.getElementById('answerInput').addEventListener('keypress', function (e) {
if (e.key === 'Enter') {
if (document.getElementById('nextBtn').style.display === 'none') {
checkAnswer();
} else {
nextCard();
}
}
});
// Initialize the first card when page loads
window.onload = function () {
generateNewCard();
updateScore();
};
// Prevent negative numbers
document.getElementById('answerInput').addEventListener('input', function (e) {
if (e.target.value < 0) {
e.target.value = 0;
}
});
</script>
</body>
</html>

View File

@@ -0,0 +1,431 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Toddler Math Flash Cards - Subtraction Fun!</title>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Nunito', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
color: #333;
padding: 10px 0;
}
.app-container {
background: white;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
max-width: 500px;
width: 95%;
margin: 10px auto;
}
.title {
color: #4a5568;
font-size: 2.2em;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.flashcard {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
border-radius: 15px;
padding: 25px;
margin: 15px 0;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.flashcard:hover {
transform: scale(1.05);
}
.equation {
font-size: 3.5em;
font-weight: bold;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
margin-bottom: 10px;
}
.answer-section {
margin: 20px 0;
}
.answer-input {
font-size: 2.5em;
padding: 12px 15px;
border: 4px solid #667eea;
border-radius: 15px;
text-align: center;
width: 130px;
margin: 0 auto 15px auto;
display: block;
font-family: 'Nunito', sans-serif;
}
.answer-input:focus {
outline: none;
border-color: #43e97b;
box-shadow: 0 0 20px rgba(67, 233, 123, 0.3);
}
.buttons {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 20px;
}
.btn {
font-size: 1.5em;
padding: 15px 30px;
border: none;
border-radius: 50px;
cursor: pointer;
font-family: 'Nunito', sans-serif;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-check {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
}
.btn-next {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: white;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.feedback {
font-size: 2.5em;
font-weight: bold;
margin: 20px 0;
padding: 20px;
border-radius: 15px;
transition: all 0.5s ease;
}
.correct {
background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
color: #2d5a27;
}
.incorrect {
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
color: #8b4513;
}
.score {
background: rgba(255, 255, 255, 0.9);
padding: 8px 15px;
border-radius: 20px;
font-size: 1em;
font-weight: bold;
color: #4a5568;
margin-bottom: 15px;
display: inline-block;
}
.celebration {
font-size: 3em;
animation: bounce 1s infinite;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
.number-buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin: 15px 0;
}
.number-buttons .number-btn:last-child {
grid-column: span 2;
}
.number-btn {
font-size: 1.8em;
padding: 12px;
border: 3px solid #667eea;
border-radius: 12px;
background: white;
cursor: pointer;
font-family: 'Nunito', sans-serif;
font-weight: bold;
color: #667eea;
transition: all 0.2s ease;
min-height: 50px;
}
.number-btn:hover {
background: #667eea;
color: white;
transform: scale(1.1);
}
@media (max-width: 600px) {
.app-container {
padding: 15px;
margin: 5px auto;
}
.title {
font-size: 1.8em;
margin-bottom: 10px;
}
.equation {
font-size: 2.8em;
}
.answer-input {
font-size: 2.2em;
width: 110px;
}
.number-btn {
font-size: 1.6em;
padding: 10px;
min-height: 45px;
}
.btn {
font-size: 1.3em;
padding: 12px 25px;
}
}
@media (max-height: 700px) {
.flashcard {
padding: 20px;
margin: 10px 0;
}
.equation {
font-size: 3em;
}
.number-btn {
font-size: 1.6em;
padding: 8px;
min-height: 40px;
}
}
</style>
</head>
<body>
<div class="app-container">
<div class="score" id="score">Score: 0/0</div>
<h1 class="title">🎓 Subtraction Practice</h1>
<div class="flashcard">
<div class="equation" id="equation">5 + 3 = ?</div>
</div>
<div class="answer-section">
<input type="number" class="answer-input" id="answerInput" placeholder="?" min="0" max="10">
<div class="number-buttons" id="numberButtons">
<button class="number-btn" onclick="inputNumber(0)">0</button>
<button class="number-btn" onclick="inputNumber(1)">1</button>
<button class="number-btn" onclick="inputNumber(2)">2</button>
<button class="number-btn" onclick="inputNumber(3)">3</button>
<button class="number-btn" onclick="inputNumber(4)">4</button>
<button class="number-btn" onclick="inputNumber(5)">5</button>
<button class="number-btn" onclick="inputNumber(6)">6</button>
<button class="number-btn" onclick="inputNumber(7)">7</button>
<button class="number-btn" onclick="inputNumber(8)">8</button>
<button class="number-btn" onclick="inputNumber(9)">9</button>
<button class="number-btn" onclick="inputNumber(10)">10</button>
<button class="number-btn" onclick="clearAnswer()"
style="background: #ff6b6b; color: white;">Clear</button>
</div>
</div>
<div class="feedback" id="feedback" style="display: none;"></div>
<div class="buttons">
<button class="btn btn-check" onclick="checkAnswer()">Check Answer! 🎯</button>
<button class="btn btn-next" onclick="nextCard()" style="display: none;" id="nextBtn">Next Card! ➡️</button>
</div>
</div>
<script>
let currentNum1, currentNum2, correctAnswer;
let totalQuestions = 0;
let correctAnswers = 0;
function generateNewCard () {
// Generate two random numbers from 0 to 10, ensuring positive result
currentNum1 = Math.floor(Math.random() * 11); // 0-10
currentNum2 = Math.floor(Math.random() * (currentNum1 + 1)); // 0 to currentNum1 (ensures positive result)
correctAnswer = currentNum1 - currentNum2;
// Update the equation display
document.getElementById('equation').textContent = `${currentNum1} - ${currentNum2} = ?`;
// Reset the input and feedback
document.getElementById('answerInput').value = '';
document.getElementById('feedback').style.display = 'none';
document.getElementById('nextBtn').style.display = 'none';
// Focus on input for keyboard users
document.getElementById('answerInput').focus();
}
function inputNumber (num) {
const input = document.getElementById('answerInput');
const currentValue = input.value;
if (currentValue === '' || currentValue === '0') {
input.value = num;
} else if (currentValue.length < 2) { // Limit to 2 digits max
input.value = currentValue + num;
}
}
function clearAnswer () {
document.getElementById('answerInput').value = '';
}
function checkAnswer () {
const userAnswer = parseInt(document.getElementById('answerInput').value);
const feedbackEl = document.getElementById('feedback');
if (isNaN(userAnswer)) {
alert('Please enter a number! 😊');
return;
}
totalQuestions++;
if (userAnswer === correctAnswer) {
correctAnswers++;
feedbackEl.innerHTML = `<div class="celebration">🎉</div>Awesome! ${currentNum1} - ${currentNum2} = ${correctAnswer}`;
feedbackEl.className = 'feedback correct';
// Play success sound (if browser supports it)
playSound('success');
} else {
feedbackEl.innerHTML = `<div>Try again! 💪</div>${currentNum1} - ${currentNum2} = ${correctAnswer}`;
feedbackEl.className = 'feedback incorrect';
// Play try again sound (if browser supports it)
playSound('tryAgain');
}
feedbackEl.style.display = 'block';
document.getElementById('nextBtn').style.display = 'inline-block';
updateScore();
}
function nextCard () {
generateNewCard();
}
function updateScore () {
const percentage = totalQuestions > 0 ? Math.round((correctAnswers / totalQuestions) * 100) : 0;
document.getElementById('score').textContent = `Score: ${correctAnswers}/${totalQuestions} (${percentage}%)`;
}
function playSound (type) {
// Create audio context for simple beep sounds
try {
const audioContext = new (window.AudioContext || window.webkitAudioContext)();
const oscillator = audioContext.createOscillator();
const gainNode = audioContext.createGain();
oscillator.connect(gainNode);
gainNode.connect(audioContext.destination);
if (type === 'success') {
// Happy ascending notes
oscillator.frequency.setValueAtTime(523.25, audioContext.currentTime); // C5
oscillator.frequency.setValueAtTime(659.25, audioContext.currentTime + 0.1); // E5
oscillator.frequency.setValueAtTime(783.99, audioContext.currentTime + 0.2); // G5
} else {
// Gentle encouraging tone
oscillator.frequency.setValueAtTime(440, audioContext.currentTime); // A4
}
gainNode.gain.setValueAtTime(0, audioContext.currentTime);
gainNode.gain.linearRampToValueAtTime(0.1, audioContext.currentTime + 0.01);
gainNode.gain.exponentialRampToValueAtTime(0.01, audioContext.currentTime + 0.3);
oscillator.start(audioContext.currentTime);
oscillator.stop(audioContext.currentTime + 0.3);
} catch (e) {
// Audio not supported, silent fail
}
}
// Keyboard support
document.getElementById('answerInput').addEventListener('keypress', function (e) {
if (e.key === 'Enter') {
if (document.getElementById('nextBtn').style.display === 'none') {
checkAnswer();
} else {
nextCard();
}
}
});
// Initialize the first card when page loads
window.onload = function () {
generateNewCard();
updateScore();
};
// Prevent negative numbers
document.getElementById('answerInput').addEventListener('input', function (e) {
if (e.target.value < 0) {
e.target.value = 0;
}
});
</script>
</body>
</html>

208
margotwood/index.html Normal file
View File

@@ -0,0 +1,208 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Learning Fun for Toddlers!</title>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Nunito', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
color: #333;
}
.container {
background: white;
border-radius: 30px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
padding: 40px 30px;
text-align: center;
max-width: 600px;
width: 100%;
margin: 20px;
}
.title {
color: #4a5568;
font-size: 3em;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
line-height: 1.2;
}
.subtitle {
color: #667eea;
font-size: 1.5em;
margin-bottom: 40px;
font-weight: normal;
}
.app-link {
display: block;
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
color: white;
text-decoration: none;
font-size: 2.5em;
font-weight: bold;
padding: 40px 30px;
border-radius: 25px;
margin: 30px 0;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
min-height: 120px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 10px;
}
.app-link:hover,
.app-link:active {
transform: scale(1.05);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}
.app-link:active {
transform: scale(0.98);
}
.emoji {
font-size: 1.5em;
margin-bottom: 10px;
}
.link-text {
font-size: 0.8em;
line-height: 1.2;
}
.footer {
margin-top: 30px;
color: #667eea;
font-size: 1.2em;
}
/* Mobile-first responsive design */
@media (max-width: 480px) {
.container {
padding: 30px 20px;
margin: 10px;
}
.title {
font-size: 2.5em;
}
.subtitle {
font-size: 1.3em;
}
.app-link {
font-size: 2.2em;
padding: 35px 25px;
min-height: 100px;
}
}
@media (max-width: 360px) {
.title {
font-size: 2.2em;
}
.app-link {
font-size: 2em;
padding: 30px 20px;
}
}
/* Tablet optimizations */
@media (min-width: 481px) and (max-width: 768px) {
.container {
padding: 50px 40px;
}
.title {
font-size: 3.5em;
}
.app-link {
font-size: 3em;
padding: 50px 40px;
min-height: 140px;
}
}
/* Large tablet/desktop */
@media (min-width: 769px) {
.container {
padding: 60px 50px;
}
.title {
font-size: 4em;
}
.app-link {
font-size: 3.5em;
padding: 60px 50px;
min-height: 160px;
}
}
/* Touch-friendly adjustments */
@media (pointer: coarse) {
.app-link {
min-height: 120px;
padding: 40px;
}
}
/* Subtraction-specific styling */
.app-link.subtraction {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.app-link.subtraction:hover,
.app-link.subtraction:active {
background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
}
</style>
</head>
<body>
<div class="container">
<h1 class="title">🎓 Learning Time! 🎓</h1>
<p class="subtitle">Tap to start learning math!</p>
<a href="flashcards/addition.html" class="app-link">
<div class="emoji"></div>
<div class="link-text">Addition</div>
</a>
<a href="flashcards/subtraction.html" class="app-link subtraction">
<div class="emoji"></div>
<div class="link-text">Subtraction</div>
</a>
<div class="footer">
<p>Fun math games for little learners! 🌟</p>
</div>
</div>
</body>
</html>

0
margotwood/style.css Normal file
View File