/* Razorpay E-Book Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(31, 224, 199);
    color: #000;
    line-height: 1.8;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(20, 180, 160));
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.8em;
    color: #000;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.subtitle {
    font-size: 1.4em;
    color: #111;
    font-weight: bold;
    margin-bottom: 20px;
}

.print-btn {
    background-color: rgb(208, 31, 224);
    color: #fff;
    font-weight: bold;
    padding: 15px 40px;
    font-size: 1.1em;
    border: 3px solid #000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.print-btn:hover {
    background-color: rgb(180, 20, 200);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Table of Contents */
.toc {
    background-color: rgba(255, 255, 255, 0.2);
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.toc h2 {
    font-size: 2em;
    color: #000;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 12px;
}

.toc button {
    background-color: rgb(208, 31, 224);
    color: #fff;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 1.05em;
    border: 2px solid #000;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.toc button:hover {
    background-color: rgb(180, 20, 200);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.content {
    background-color: rgba(255, 255, 255, 0.15);
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.25);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.section h2 {
    font-size: 2.2em;
    color: #000;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(208, 31, 224);
}

.section h3 {
    font-size: 1.7em;
    color: #000;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section h4 {
    font-size: 1.4em;
    color: #000;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
}

.section p {
    font-size: 1.1em;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.8;
}

.section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.section li {
    font-size: 1.1em;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Info Box */
.info-box {
    background-color: rgba(255, 255, 255, 0.3);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.info-box p {
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgba(255, 255, 255, 0.4);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

thead {
    background-color: rgb(208, 31, 224);
}

th {
    padding: 18px;
    text-align: left;
    color: #fff;
    font-weight: bold;
    font-size: 1.15em;
    border: 2px solid #000;
}

td {
    padding: 15px;
    border: 2px solid rgb(208, 31, 224);
    font-weight: bold;
    font-size: 1.05em;
    color: #000;
    background-color: rgba(255, 255, 255, 0.3);
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Process Steps */
.process-steps {
    margin: 25px 0;
}

.step {
    background-color: rgba(255, 255, 255, 0.3);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.step:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateX(10px);
}

/* Flowchart */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.25);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
}

.flow-item {
    text-align: center;
    margin: 10px 0;
}

.flow-box {
    background-color: rgb(208, 31, 224);
    color: #fff;
    font-weight: bold;
    padding: 15px 30px;
    border: 3px solid #000;
    border-radius: 10px;
    font-size: 1.1em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 250px;
}

.flow-arrow {
    font-size: 2.5em;
    color: rgb(208, 31, 224);
    font-weight: bold;
    margin: 5px 0;
}

/* Code Blocks */
.code-block {
    background-color: #1e1e1e;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.code-block pre {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    line-height: 1.6;
    font-weight: bold;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Integration Steps */
.integration-steps {
    background-color: rgba(255, 255, 255, 0.3);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.integration-steps p {
    margin-bottom: 12px;
    padding-left: 15px;
}

/* Calculation Box */
.calculation-box {
    background-color: rgba(255, 255, 255, 0.35);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    font-size: 1.15em;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.calculation-box p {
    margin-bottom: 10px;
}

/* Questions Section */
.question-block {
    background-color: rgba(255, 255, 255, 0.3);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.question-block h3 {
    color: #000;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.answer-btn {
    background-color: rgb(208, 31, 224);
    color: #fff;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 1.05em;
    border: 3px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.answer-btn:hover {
    background-color: rgb(180, 20, 200);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.answer {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 8px;
    transition: all 0.5s ease;
}

.answer.hidden {
    display: none;
}

.answer p {
    margin-bottom: 10px;
    color: #000;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.footer p {
    font-size: 1.1em;
    color: #000;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .print-btn {
        display: none;
    }
    
    .toc button {
        background-color: transparent;
        border: 2px solid black;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
        border: 2px solid black;
        background-color: white;
    }
    
    .answer {
        display: block !important;
    }
    
    .answer-btn {
        display: none;
    }
    
    table {
        border: 2px solid black;
        background-color: white;
    }
    
    th {
        background-color: #ccc;
        color: black;
        border: 1px solid black;
    }
    
    td {
        border: 1px solid black;
        background-color: white;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .section h2 {
        font-size: 1.7em;
    }
    
    .section h3 {
        font-size: 1.4em;
    }
    
    .content {
        padding: 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    table {
        font-size: 0.9em;
    }
    
    .flow-box {
        min-width: 200px;
        font-size: 1em;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgb(208, 31, 224);
    color: white;
}