/* Global styles */
html, body {
    background-color: #fafafa;
    height: 96%;
    font-size: 150%;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
}

.small {
    font-family: "Roboto", sans-serif;
    font-size: 1.25rem;
}

.mail {
    font-family: "Lucida Console", "Courier New", monospace;
}

/* Remove default list styles */
.year-list {
    list-style-type: none;
    padding-left: 10px;
}

/* Style list items */
.year-list li {
    position: relative;
    padding-left: 100px;    /* Space for the year labels */
    margin-top: 0.5em;     /* Spacing between items */
    line-height: 1.5em;    /* Line height for readability */
}

/* Style the year labels */
.year-label {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;          
    font-weight: bold;
    text-align: right;    
}

/* Anchor links in body */
body a {
    color: #1496bb;
}

/* Publication list */
li .pub-list {
    padding-left: 5px;   
    margin-top: 0;  
}

/* Common styles for navhead elements */
#navhead {
    background-color: #fafafa;
    width: 240px;
    height: 135px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 240px 135px;
    position: fixed;
    left: 0px;
    top: 0px;
    cursor: pointer;
}

/* Header styles */
header {
    background-color: #19373b;
    color: #fafafa;
    height: 135px;
    width: calc(100% - 240px);
    text-align: center;
    padding: 0;
    position: fixed;
    left: 240px;
    top: 0px;
}

.header-left-link,
.header-right-link {
    position: absolute;
    top: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.header-left-link {
    left: 15px;
    width: 136px;
    background-image: url('https://ai.elte.hu/csbalint/files/mathai_cut_2.svg');
    background-size: auto 109px;
}

.header-right-link {
    right: 10px;
    width: 120px;
    background-image: url('https://ai.elte.hu/csbalint/files/elte_new_2.svg');
    background-size: auto 115px;
}

header h2,
header h3 {
    color: #fafafa;
    margin: 12px;
}

/* Navigation styles */
#nav {
    color: #fafafa;
    line-height: 40px;
    width: 220px;
    font-size: 0.98rem;
    position: fixed;
    left: 0px;
    top: 135px;
    padding: 10px 10px;
    background-size: 150px;
    overflow-y: hidden;
    height: calc(100% - 177px);
    max-height: calc(100% - 177px);
    background-color: #19373b;
}

#nav a {
    color: #fafafa;
}

/* Section styles */
#section, #section_demo {
    background-repeat: no-repeat;
    background-position: right top;
    width: calc(100% - 240px);
    position: fixed;
    left: 240px;
    top: 135px; 
    height: calc(100% - 177px);
    max-height: calc(100% - 177px);
    vertical-align: top;
    overflow-y: auto;
}

#section_EEG {
    width: calc(100% - 240px);
    position: fixed;
    left: 240px;
    top: 135px;
    height: calc(100% - 177px);
    overflow-y: auto;
}

#section_text {
    position: relative;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
    padding: 30px;
}

/* Links in section */
#section a:link, #section_demo a:link {
    color: #1496bb;
}

#section a:visited, #section_demo a:visited,
#section a:hover, #section_demo a:hover,
#section a:active, #section_demo a:active{
    color: #10708c;
}

/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
    color: #fafafa;
}

h4 {
    margin-block-start: 0;
    margin-block-end: 0;
}

#section h1,
#section h2,
#section h3,
#section h4,
#section h5,
#section h6 {
    color: #222222;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Roboto", sans-serif;
    color: #222222;
}

/* Footer styles */
#navfoot {
    background-color: #19373b;
    height: 42px;
    width: 240px;
    background-repeat: no-repeat;
    position: fixed;
    left: 0px;
    bottom: 0px;
}

footer {
    width: calc(100% - 250px);
    height: 32px;
    color: #fafafa;
    text-align: right;
    padding: 5px;
    position: fixed;
    left: 240px;
    bottom: 0px;
    background-color: #19373b;
    font-size: 1.25rem;
}

/* Responsive iframe */
.resp-iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Boxes */
.box {
    width: 100%;
    height: 80px;
    background: transparent;
}

.box3 {
    width: 240px;
    height: 135px;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
}

/* Image popup */
#img_popup {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

#img_popup_back {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #222;
    opacity: 0.8;
}

#img_popup_img_back {
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

#img_popup img {
    display: inline;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border: 0;
    box-shadow: 0 0 20px 5px #000;
}

/* Select elements */
select {
    font-size: 42px;
    color: #1496bb;
    background-color: #19373b;
    border-color: #10708c;
}

.h2 {
    font-size: 54px;
    color: #1496bb;
}

textarea {
    font-size: 1.1rem;
}

/* Header title and project links */
.header-title {
	max-width: 100%;
	margin: 0;
	text-align: center;
	box-sizing: border-box;
}

.project-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: 100%;
	margin-top: 8px;
	padding: 0 10px;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.project-links a.iconlink {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;

	padding: 4px 8px;
	border: 1px solid rgba(25, 55, 59, 0.25);
	border-radius: 999px;

	background: #19373b;
	color: #1496bb !important;

	font-size: 0.95em;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;

	opacity: 1 !important;
	visibility: visible !important;
}

.project-links a.iconlink:hover {
	background: #1496bb;
	color: #19373b !important;
	border-color: #1496bb;
}

.project-links a.iconlink i,
.project-links a.iconlink span {
	display: inline !important;
	color: inherit !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.project-links i {
	font-size: 1.05em;
}