#szakdoga {
    background-color: var(--secondary);
    padding-bottom: 30px;
    
}
#szakdoga p:not(.img, .math){
    text-align: justify;
}
#thesisbody{
    background-color: var(--secondary);
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}
table {
    margin: auto;
    max-width: 60%;
}

td, th {
    border: 1px solid var(--highlight);
    padding: 8px;
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: var(--primary);
    color: white;
}
h3{
    color:var(--metallic);
}

img:not(.flag){
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.img {
    text-align: center;
}

.parent {
    text-align: center; /* Centers inline-block elements */
}

.math {
    font-family: Arial, sans-serif;
    font-size: 14pt;
    color: var(--highlight);
    border: solid var(--highlight) 1px;
    padding: 10px;
    display: inline-block; /* Keeps border tight around text */
}
.math math{
    font-size:18pt;
}



/* Main content area style */
main {
    margin-left: 350px;
    margin-right: 270px;
    padding: 20px;
    background-color: var(--highlight);  /* Powder Blue background */
    color: var(--secondary);  /* Space Cadet text for contrast */
    height: calc(100vh - 100px);
    overflow-y: auto;
}


@media (max-width: 1000px) {
    #szakdoga {
        width: 90%;
        padding-left: 20px;
        padding-right: 20px;
        margin-right: auto;
        margin-left: auto;
    }
    #tabs {
        visibility: hidden;
    }
    .link{
        color: var(--metallic);
    }

    #backToTop {
        position: fixed;
        bottom: 20px;
        right: 2% !important;
    }
    #tartalom, #irodalom{
        line-height: 150%;
    }
    #pdf-buttons-container {
        display: flex;    /* Use flexbox for button alignment */
        gap: 10px;        /* Space between buttons */
        padding: 10px 15px;  /* Padding around the buttons */
        border-radius: 8px;   /* Rounded corners */
        z-index: 1000;  /* Ensure it stays on top of other content */
    }
    
    #pdf-buttons-container button {
        padding: 10px 10px; 
        width: 50%;     /* Button padding */
        background-color: var(--metallic); /* Button background color */
        color: white;            /* Text color */
        border: none;            /* Remove borders */
        border-radius: 5px;      /* Rounded corners */
        cursor: pointer;        /* Pointer cursor on hover */
        transition: background-color 0.3s; /* Smooth hover effect */
        font-size: 18pt;
    }
    
    #pdf-buttons-container button:hover {
        background-color: var(--light-accent);
        color: var(--secondary);
    }

}

@media(min-width:1001px){

#szakdoga{
    margin-left: 7.5%;
    margin-right: 25%;
    width: 65%;
}
    /* Fixed left and right sections (Irodalom and Tartalom) */
#irodalom, #tartalom {
    position: fixed;
    width: 21%;
    margin-right: 1%;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    padding: 15px;
    background-color: var(--primary);  /* Ultra Violet background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);  /* Slightly darker shadow for more depth */
    border-radius: 8px;
    color: #fff;  /* White text for better readability */
    z-index: 999;
    line-height: 150%;
}

/* Position the Irodalomjegyzék (left section) */
#irodalom {
    right: 0;
    top: 60px;

}

/* Position the Tartalom (right section) */
#tartalom {
    right: 0;
    top: 60px;
}
/* Style the links within the Irodalom and Tartalom sections */
#irodalom a, #tartalom a {
    color: var(--light-accent);  /* Tea Green link color for a softer contrast */
    text-decoration: none;
}

/* Style the links when hovered */
#irodalom a:hover, #tartalom a:hover {
    text-decoration: underline;
    color: var(--metallic);  /* Emerald link color on hover for an active feel */
}

/* Custom scrollbars for the sections */
#irodalom::-webkit-scrollbar, #tartalom::-webkit-scrollbar {
    width: 12px;  /* Width of the scrollbar */
    height: 12px;  /* Height of the horizontal scrollbar */
}

#irodalom::-webkit-scrollbar-track, #tartalom::-webkit-scrollbar-track {
    background: var(--light-accent);  /* Track color matching Space Cadet */
    border-radius: 10px;  /* Rounded corners */
}

#irodalom::-webkit-scrollbar-thumb, #tartalom::-webkit-scrollbar-thumb {
    background: var(--accent);  /* Thumb color matching Glaucous */
    border-radius: 10px;  /* Rounded corners */
}

#irodalom::-webkit-scrollbar-thumb:hover, #tartalom::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);  /* Thumb color on hover (Powder Blue) */
}

#irodalom::-webkit-scrollbar-button, #tartalom::-webkit-scrollbar-button {
    display: none;  /* Hide the arrows on the scrollbar */
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 95% !important;
    background-color: var(--light-accent) !important;
    color: var(--primary) !important;
    border: none !important;
    border-radius: 0 !important;
    width: 5% !important;
}
#backToTop:hover{
    background-color: var(--metallic) !important;
}

#tabs {
    position: fixed;
    top: 15px;
    right: 1%;
    display: flex;
    gap: 5px;
}

#tabs button {
    background-color: var(--inactive-bg, #ccc); /* Lighter for inactive tabs */
    border: 2px solid var(--primary);
    color: var(--inactive-text, #555); /* Darker text for inactive tabs */
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    min-width: 100px;
    
    /* Rounded top for browser-tab effect */
    border-radius: 12px 12px 0 0;
    
    /* Slight elevation */
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
    
    /* Prevent spacing issues */
    margin-bottom: -2px;
    transition: background-color 0.3s, transform 0.2s, color 0.3s;
}

#tabs button:hover {
    background-color: var(--light-accent);
    transform: translateY(-2px);
}

#tabs button.active {
    background-color: var(--primary);
    color: #fff; /* White text for contrast */
    border-bottom: none; /* Creates the "on top" effect */
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.3);
    
    /* Slightly taller effect */
    padding-top: 14px;
}



#irodalom, #tartalom {
    display: none;  /* Hide both sections initially */
}

#irodalom.active, #tartalom.active {
    display: block;  /* Show the active section */
}

/* Box container for the buttons */
#pdf-buttons-container {
    position: fixed;  /* Fixed position relative to the viewport */
    bottom: 20px;     /* 20px from the bottom */
    right: 20px;      /* 20px from the right */
    display: flex;    /* Use flexbox for button alignment */
    gap: 10px;        /* Space between buttons */
    padding: 10px 15px;  /* Padding around the buttons */
    border-radius: 8px;   /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Slight shadow for a floating effect */
    z-index: 1000;  /* Ensure it stays on top of other content */
}

#pdf-buttons-container button {
    padding: 10px 10px; 
    width: 60px;     /* Button padding */
    background-color: var(--metallic); /* Button background color */
    color: white;            /* Text color */
    border: none;            /* Remove borders */
    border-radius: 5px;      /* Rounded corners */
    cursor: pointer;        /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth hover effect */
    font-size: 18pt;
}

#pdf-buttons-container button:hover {
    background-color: var(--light-accent);
    color: var(--secondary);
}



}


