* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --hindi-color: #4CAF50;
    --english-color: #2196F3;
    --button-color: #6e0d0d;
    --text-dark: #333;
    --text-medium: #000000;
    --text-light: #666;
    --bg-color: #f5f7fa;
    --panel-bg: white;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px 20PX;
    min-height: 100vh;
    touch-action: manipulation;
}

.app-container {
    max-width: 1200px;
    margin: 0px auto;
}


.instructions {
    position: relative;
    line-height: 0;
    padding: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    text-align: center;
}

.instructions::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: #012169;
    background-image:
        linear-gradient(to bottom,
            transparent 45%,
            #C8102E 45%,
            #C8102E 55%,
            transparent 55%),
        linear-gradient(to bottom,
            transparent 43%,
            white 43%,
            white 57%,
            transparent 57%),
        linear-gradient(-45deg,
            transparent 40%,
            transparent 60%);
    filter: blur(3px);
}

.lko {
    font-size: 30px;
    font-family: cursive;
    word-spacing: 10px;
    letter-spacing: 5px;
    font-weight: bold;
    color: white;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.7),
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    position: relative;
}

.panels-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .panels-container {
        flex-direction: row;
    }
}

.panel {
    flex: 1;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--panel-bg);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.panel:hover {
    transform: translateY(-3px);
}

#hindiPanel {
    border-top: 5px solid var(--hindi-color);
}

#englishPanel {
    border-top: 5px solid var(--english-color);
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

#hindiPanel .panel-title:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 8a4 4 0 1 0 4 4 4 4 0 0 0-4-4zm0 6a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></svg>');
}

#englishPanel .panel-title:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232196F3"><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 8a4 4 0 1 0 4 4 4 4 0 0 0-4-4zm0 6a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></svg>');
}

.content {
    font-size: 1rem;
    color: var(--text-medium);
    min-height: 150px;
}

#changeBtn {
    display: block;
    width: 90%;
    max-width: 300px;
    margin: 30px auto 10px;
    padding: 12px 20px;
    font-size: 1rem;
    background-color: var(--button-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#changeBtn:hover {
    background-color: #000000;
}

.tap-hint {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 767px) {
    .tap-hint {
        display: block;
    }

    body {
        padding: 10px;
    }

    .instructions {
        padding: 13px;
    }

    .lko {
        font-size: 13px;
    }
}

@media (min-width: 768px) {


    .instructions {
        width: auto;
    }

    #changeBtn {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .content {
        min-height: 200px;
    }
}