/* Custom styles for CalmingPuzzleGame.com */

/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Game frame enhancements */
.game-frame-container {
    position: relative;
    transition: all 0.3s ease;
}

.game-frame-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure iframe is responsive across devices */
iframe {
    border: none;
    background-color: #f5f5f5;
    transition: opacity 0.3s ease;
}

iframe:focus {
    outline: none;
}

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Custom link styles */
a {
    color: #007AFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    iframe {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    iframe {
        min-height: 300px;
    }
}

/* Print styles */
@media print {
    header, footer, iframe {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    main {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Feature section enhancements */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 