* {
	outline: none;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	background-color: #E6E6E6;
	font-size: 11px;
	font-family: var(--bs-body-font-family), sans-serif;
	font-weight: 300;
	letter-spacing: 0;
	text-align: center;
	min-width: 320px;
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

body:before {
	content: "";
	position: fixed;
	top: -10px;
	left: 0;
	width: 100%;
	height: 10px;
	z-index: 100;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
}

a {
	text-decoration: none;
}

a img {
	border: 0;
}

h1 {
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
	font-size: 20px;
	color: #fff;
	font-variant: small-caps;
	font-weight: 400;
}

b,
strong {
	font-weight: 400;
}

hr {
	border: 1px solid #000;
}

.small {
	font-size: 70%;
}

.muted {
	color: #666;
}

h1 .muted {
	color: #ddd;
}

.content,
.content * {
	user-select: none;
	-webkit-user-select: none;
}



/*
HEADER
*/
header {
	padding-bottom: 3px;
	margin-bottom: 5px;
	position: relative;
	background-color: #660119;
}

.header-logo {
    width: 250px; /* Adjust size as needed */
    height: auto;
    display: block;
    margin: 0 auto; /* Center the logo */
	filter: invert(1); /* Turns black logos white */
}


header .fb-like {
	margin-top: 10px;
}

header .fb-like.pull-left {
	float: none;
	position: absolute;
	top: 0;
	left: 4px;
}

header .university-logo {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	height: 80%;
	max-height: 150px;
}

header .program-selector {
	display: inline-block;
	background-color: #3062cf;
	margin-top: 8px;
	margin-bottom: 20px;
	padding: 3px;
	position: relative;
	z-index: 2;
	margin-right: -8px;
	box-shadow: #131a21 1px 1px,
				#131a21 2px 2px,
				#131a21 3px 3px,
				#131a21 4px 4px,
				#131a21 5px 5px,
				#131a21 6px 6px,
				#131a21 7px 7px,
				#131a21 8px 8px;
}

header .program-selector .toggle {
	cursor: pointer;
}

header .program-selector .faculty {
	margin-bottom: 10px;
}

header .program-selector .faculty .faculty-name {
	font-family: sans-serif;
	font-size: 13px;
	letter-spacing: 0;
	margin-bottom: 4px;
}

header .program-selector .program {
	padding: 3px;
	font-size: 11px;
	color: #000;
	border-color: #aaa;
	background-color: white;
	margin-left: 2px;
	margin-right: 2px;
	transition: all 0.1s linear;
}

header .program-selector .program.active {
	background-color: #2ecc71;
}

header .program-selector .program:hover {
	background-color: #3498db;
	color: #fff;
}

header .program-description {
	color: #ddd;
	font-size: 14px;
}

header .program-curriculum-updated {
	color: #ddd;
	font-size: 12px;
}

header .program-curriculum-outdated {
	color: #fff;
	font-size: 14px;
}

.program-wrapper {
    padding: 5px 0; /* Adjust padding as needed */
}


/*
MAIN
*/
main {
	flex: 1;
	position: relative;
}

main .university-logo {
	max-height: 200px;
	margin-bottom: 6px;
}

main .university {
	position: relative;
	width: 200px;
	display: inline-block;
	border: 1px solid #ddd;
	background-color: #eee;
	border-radius: 6px;
	padding: 10px 10px 30px;
	color: #444;
	transition: all 0.1s linear;
}

main .university:hover {
	background-color: #fff;
}

main .university .logo {
	height: 200px;
	line-height: 200px;
	font-size: 36px;
	font-weight: 400;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

main .university .name {
	position: absolute;
	bottom: 2px;
	left: 0;
	width: 100%;
	font-size: 18px;
	font-variant: small-caps;
	color: #666;
}

main h1 {
	font-size: 30px;
	color: #000;
	margin-bottom: 40px;
}



/*
FOOTER
*/
footer {
	padding-top: 20px;
}

main .adsbygoogle,
footer .adsbygoogle {
	display: block;
	margin-bottom: 15px;
}

footer .github {
	height: 30px;
	width: 130px;
	border: 0;
}

footer .disclaimer {
	margin-bottom: 2px;
	color: #666;
}



/*
FADE
*/
.fade {
	position: fixed;
	top: 0;
	left: 0;
	opacity: 0.75;
	width: 100%;
	height: 100%;
	background-color: #000;
	z-index: 101;
	display: none;
}



/*
BUTTONS
*/
.buttons {
    position: fixed;
    right: 5px;
    bottom: 8.5px;
    z-index: 1;
}

.buttons .button {
    display: block;
    cursor: pointer;
    transition: all 0.2s linear;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 28px;
    border-radius: 6px;
    text-align: center;
    color: #000;
}

/* Style for University Button */
.buttons .button.university .fa {
    margin-left: 2px;
}



/* Hover effects */
.buttons .button:hover {
    background-color: black;
    color: white;
}


.buttons .button.reset:hover {
    background-color: #f88;
}



/*
PROGRESSBAR
*/
.progressbar {
	width: 800px;
	height: 15px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 8px;
	text-align: center;
	font-weight: bold;
	white-space: nowrap;
	text-align: left;
	color: #222;
	border-right: 2px solid #666;
	border-left: 2px solid #666;
}

.progressbar .finished,
.progressbar .processing {
	height: 100%;
	display: inline-block;
	font-size: 10px;
	overflow: hidden;
	text-align: center;
	vertical-align: top;
	white-space: normal;
	opacity: 0.85;
	filter:alpha(opacity=85);
}



/*
CREDITS COUNTER
*/
.credits-counter {
	color: #555;
	font-size: 16px;
	width: 800px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 8px;
}

.credits-counter * {
	user-select: none;
	-webkit-user-select: none;
}

.credits-counter .finished {
	float: left;
}

.credits-counter .processing {
	float: right;
}

.credits-counter .credits-optional-container {
	width: 300px;
	display: inline-block;
	position: relative;
	padding: 2px 0px;
}

.credits-counter .credits-optional-title {
	font-size: 12px;
	margin-top: -6px;
}

.credits-counter .credits-optional-control {
	display: inline-block;
	width: 25px;
	height: 25px;
	background-color: #ccc;
	border-radius: 20px;
	line-height: 25px;
	text-align: center;
	vertical-align: 1px;
	margin: 0 3px;
	cursor: pointer;
}

.credits-counter .credits-optional-control.plus {
	background-color: #a8d3ff;
	color: #444;
}

.credits-counter .credits-optional-control:hover {
	background-color: #8e44ad;
	color: #fff;
}

.credits-counter .credits-optional-control.muted {
	cursor: default;
	background-color: #fff;
	color: #999;
}

.credits-counter .credits-overflow {
	font-size: 12px;
	position: absolute;
	top: 18px;
	right: 15px;
}

/* Info section ********************************************/ 
#Specializations {
    width: 100%;
}

/* Move .targyInfo slightly inside */
.targyInfo {
    position: relative;
    width: 80%; /* Make it slightly narrower than full width */
    min-width: auto;
    border-radius: 5px;
    font-size: 14px;
	color:#fff;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: flex-start;
    margin: 20px auto; /* Center it horizontally */
    padding: 15px; /* Add some spacing inside */
    background-color: #660119; /* Light background for better visibility */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
    border: 1px solid #ddd; /* Optional: border for definition */
}

/* Ensure info boxes align properly */
.targyInfoBox {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 5px 0;
}

/* Ensure labels and values are aligned properly */
.targyInfoTitle {
    font-weight: bold;
    min-width: 160px; /* Adjust width for better spacing */
    text-align: left;
}

.targyInfoSingle {
    margin-left: 10px;
}

.tad-link {
    color: #0d6efd;
    text-decoration: underline;
    font-weight: 600;
}

.tad-link:hover {
    color: #0a58ca;
}


/* Ensure hours are aligned properly */
.Hours {
    display: inline-block;
    margin-right: 5px;
}

/* Other sections remain responsive */
.szakiranyWrap {
    position: relative;
    width: 100%;
    display: block;
    padding-top: 10px;
}

.selectWrap {
    position: relative;
    width: 82%;
    display: block;
    padding-left: 0;
	margin: 20px auto; /* Center it horizontally */
	
}

.selectWrap h4 {
	text-align: left;
    font-size: 16px; /* Set font size */
    font-weight: bold;
    color: #333; /* Dark text for readability */
    margin: 10px;
}

.separator {
	font-size: 14px;
	display: flex;
	align-items: center;
	text-align: center;
	margin-top: 20px;
	color: #000000;
}
.separator::before, .separator::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #000000;
}
.separator::before {
	margin-right: .75em;
}
.separator::after {
	margin-left: .75em;
}

/* Info section END ********************************************/



/*
CONTENT
*/
.content {
	margin-bottom: 8px;
	position: relative;
}



/*
COURSE BLOCK
*/
.course-block {
	display: inline-block;
	vertical-align: top;
	margin-left: 1.5px;
	margin-right: 1.5px;
	position: relative;
	width: 140px;
	border-radius: 6px;
}

.course-block.finished {
	opacity: 0.6;
	background-color: rgba(144, 238, 144, 0.5);
}

.course-block.finished:hover {
	opacity: 1;
}

.course-block .course-block-title {
	margin-bottom: 4px;
	font-size: 16px;
}

.specialization-label {
    font-size: 14px;
    color: #000000;
    margin-bottom: 5px;
    margin-top: 20px;
}


/*
COURSE
*/
.course,
.course-help {
	background-color: white;
	color: #666;
	border-radius: 6px;
	margin: 2px 0;
	padding: 4px 3px;
	position: relative;
	word-wrap: break-word;
}

.course {
	cursor: pointer;
}

.course-help {
	width: auto;
}

.course.processable,
.course-help.processable {
	background-color: #a8d3ff;
	color: #444;
}

.course.processing,
.course-help.processing,
.progressbar .processing {
	background-color: #3498db;
	color: #fff;
}

.course.finished,
.course-help.finished,
.progressbar .finished {
	background-color: #2ecc71;
	color: #222;
}

.course.alairas,
.course-help.alairas {
	background-color: #6e0000;
	color: #ffffff;
}

.course.prerequisite,
.course-help.prerequisite {
	background-color: #e67e22;
	color: #000;
}

.course.gyenge,
.course-help.gyenge {
	background-color: #f2ff02;
	color: #000;
}

.course.sequel,
.course-help.sequel {
	background-color: #f1c40f;
	color: #000;
}

.course.end {
	border-left: 4px solid rgba(52, 152, 219, 0.65);
}



/*
HELP
*/
.help {
	position: fixed;
	bottom: 5px;
	left: 3px;
}

/* Tárgygráf frontend polish */
main {
	padding: 0 12px 20px;
	overflow-x: auto;
}

.content {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	min-width: max-content;
}

.course-block {
	width: 130px;
	background: rgba(255, 255, 255, 0.45);
	padding: 4px;
}

.course-block .course-block-title {
	line-height: 1.2;
	font-size: 12px;
	font-weight: 400;
	margin-bottom: 6px;
}

.course,
.course-help {
	font-size: 9px;
	line-height: 1.28;
	padding: 4px 4px;
}

.credit-sum {
	font-size: 11px;
}

.add-course-btn {
	width: 100%;
	margin-top: 4px;
	font-size: 10px;
}

.targyInfo {
	max-width: 1180px;
	width: min(1180px, calc(100% - 20px));
	background: #ffffff;
	color: #222;
	border-color: #d7d7d7;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
	display: grid;
	grid-template-columns: repeat(2, minmax(250px, 1fr));
	gap: 6px 20px;
	padding: 12px 16px;
	margin: 10px auto 14px;
}

.targyInfoTitle {
	min-width: 100px;
	color: #333;
}

.targyInfoBox {
	margin: 2px 0;
}

.selectWrap {
	max-width: 1180px;
	width: min(1180px, calc(100% - 20px));
	margin: 10px auto;
}

#Specializations {
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid #c7c7c7;
	font-size: 13px;
}

.faculty-card {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 14px;
	max-width: 1180px;
	margin: 0 auto 16px;
}

.faculty-card .faculty-header {
	flex: 0 0 220px;
}

.faculty-card .faculty-programs {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 8px;
	text-align: left;
}

.program-link {
	display: inline-block;
	float: none;
	width: auto;
	min-width: 240px;
	text-align: left;
	padding: 10px 12px;
}

@media (max-width: 1200px) {
	body {
		min-width: 320px !important;
	}

	.faculty-card {
		flex-direction: column;
		align-items: center;
	}

	.faculty-card .faculty-programs {
		justify-content: center;
	}

	.course-block {
		width: 122px;
	}

	.course,
	.course-help {
		font-size: 8px;
	}

	.targyInfo {
		grid-template-columns: 1fr;
	}
}

.faculties-logo-grid {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
}

.faculty-logo-only {
	padding: 10px;
	width: 220px;
}

.faculty-logo-only .logo {
	height: 180px;
}

.program-link {
	text-decoration: none;
}
