/* Modern Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
}

h1.szines {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#egyeb_txt, #egyeb_txt2 {
    position: fixed;          /* Makes it float above the page */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfect center */
    opacity: 0;

    z-index: 1000;

    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 15px;
    padding: 1% 5%;
    max-width: 600px;
    width: 80%;
    height: 80%;
    overflow-y: auto;

    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    transition: opacity 0.5s ease;
}

#egyeb_txt.show, #egyeb_txt2.show {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Modern Header */
#header {
    width: 100%;
    height: fit-content;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    flex-wrap: wrap;
}

#header_mini {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

#header_mini:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#header_mini:active {
    transform: scale(0.95);
}

h2.header_mini {
    color: white;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main Content Container */
#content_Main, #content_about, #content_Hozzarendel, #content_Functions, #content_Testplace {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
    display: none;
}

#content_about.show, #content_Main.show, #content_Hozzarendel.show, #content_Functions.show {
    display: block;
}

#content_Testplace.show {
    max-width: 10000px;
    display: block;
    width: 90%;
    padding: 2%;
}

/* Headings */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #a0a0a0;
    border-left: 4px solid #667eea;
    padding-left: 15px;
    transition: all 0.3s ease;
}

h2[onclick] {
    cursor: pointer;
    user-select: none;
}

h2[onclick]:hover {
    color: #667eea;
    border-left-color: #764ba2;
}

h3 {
    font-size: 1.3rem;
    margin: 25px 0 10px;
    color: #c0c0c0;
    transition: all 0.3s ease;
}

h3[onclick] {
    cursor: pointer;
    user-select: none;
}

h3[onclick]:hover {
    color: #667eea;
    border-left-color: #764ba2;
}

h4 {
    font-size: 1rem;
    margin: 15px 0 10px;
    color: #a0a0a0;
    font-weight: 500;
}

p {
    margin-bottom: 15px;
    color: #b0b0b0;
    font-size: 1rem;
}

/* Collapsible Sections */
#valtozok-content, #functions-content, #var-example, #const-example, #let-example, #hozzarendel_toggle, #windowLoad_toggle, #pelda_toggle, #mouseHover_toggle, #functions_1_toggle, #functions_2_toggle {
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-top: 15px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#valtozok-content.show, #functions-content.show, #var-example.show, #const-example.show, #let-example.show, #hozzarendel_toggle.show, #windowLoad_toggle.show, #pelda_toggle.show, #mouseHover_toggle.show, #functions_1_toggle.show, #functions_2_toggle.show {
    max-height: 2000px;
    opacity: 1;
    padding: 25px;
    margin-bottom: 20px;
}

#var-example.show, #const-example.show, #let-example.show {
    background: rgba(255, 255, 255, 0.08);
}

/* Code Blocks - Modern Dark Theme */
pre {
    background: linear-gradient(145deg, #1e1e3f 0%, #2d2d5a 100%);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
    animation: slideIn 0.5s ease;
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Code Syntax Highlighting - Modern Colors */
#blue {
    color: #61dafb;
}

#yellow {
    color: #f1fa8c;
}

#orange {
    color: #ffb86c;
}

#lightblue {
    color: #8be9fd;
}

#brown {
    color: #f78c6c;
}

#purple {
    color: #c792ea;
}

#lightgreen {
    color: #a6ffbcea;
}

#lightgrey {
    color: #6272a4;
}

#red {
    color: #ff5555;
}

li {
    margin-left: 5%;    
}

/* Testplace Styling */
#textbox_HTML, #textbox_JS {
    opacity: 0;
    display: none;
    float: left;
    width: 55%;
    height: 79.3vh;
    background: linear-gradient(145deg, #1e1e3f 0%, #2d2d5a 100%);
    color: #f8f8f2;
    border: none;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 2%;
    elemnt {
        resize: none;
    }
    transition: opacity 0.2s ease;
}

#Source{
    margin-left: -40%;
}

#textbox_HTML.show, #textbox_JS.show {
    opacity: 1;
}

#button_select_format {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 25px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

iframe {
    
    width: 40%;
    height: 70vh;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /*margin: 20px auto;
    margin-left: 60%; */
    display: block;
    padding: 2%;
}

/* Modern Buttons */
button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

button:active {
    transform: scale(0.95);
}

/* Special Elements */
u {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid #667eea;
    transition: all 0.3s ease;
}

u:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #header {
        padding: 10px;
        gap: 8px;
    }
    
    #header_mini {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    #content_Main, #content_about, #content_Hozzarendel {
        margin: 20px;
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    pre {
        font-size: 12px;
        padding: 15px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.5);
    color: white;
}
