/* Frogger Game Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px 0;
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.splash-logo.fade-out {
    opacity: 0;
}

.splash-text {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #DC2626;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.typewriter-text {
    border-right: 3px solid #DC2626;
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 50% { border-color: #DC2626; }
    51%, 100% { border-color: transparent; }
}

/* Share Buttons and Modal Styles */
.share-section {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    min-width: 120px;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.embed { background: #DC2626; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    color: white;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #DC2626;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

.embed-code-container {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.embed-code {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 100%;
    min-height: 150px;
    resize: vertical;
    outline: none;
}

.copy-btn {
    background: #DC2626;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #b91c1c;
}

.embed-preview {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
}

.embed-preview h4 {
    color: #DC2626;
    margin-bottom: 10px;
}

.embed-dimensions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.dimension-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dimension-input label {
    font-size: 12px;
    color: #ccc;
}

.dimension-input input {
    padding: 8px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #0a0a0a;
    color: white;
    width: 100px;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    padding: 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 20px;
}

.score-board {
    display: flex;
    justify-content: space-between;
    width: 600px;
    max-width: 90vw;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 600;
}

.current-score, .high-score {
    text-align: center;
    min-width: 120px;
}

.score-label {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#gameCanvas {
    border: 3px solid #fff;
    background: #000;
    display: block;
    cursor: none;
}

.game-controls {
    margin-top: 20px;
    text-align: center;
}

.control-info {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.game-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-btn {
    font-family: 'Jost', sans-serif;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.game-btn:hover {
    background: #fff;
    color: #000;
}

.game-btn:active {
    transform: scale(0.95);
}

.game-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 30px 50px;
    border: 2px solid #fff;
    display: none;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #fff;
    color: #000;
}

.game-over-score {
    font-size: 1.2rem;
    margin-top: 15px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .score-board {
        font-size: 2rem;
        width: 100%;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .control-info {
        font-size: 0.9rem;
    }
    
    .game-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .back-link {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .game-status {
        font-size: 1.5rem;
        padding: 20px 30px;
    }
}