@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
	padding: 0px;
	box-sizing: border-box;
	border: none;
	font-family: 'Roboto', sans-serif;
}

body {
	height: 10vh;
	margin: auto;
	width: 95%;
	padding: 10px;
	background-image: url('bina_Çalışma Yüzeyi 1.png');
	background-repeat: no-repeat;
	background-size: 70%;
	background-attachment: fixed;
	background-position: center;
}

.container {
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 1200px;
	margin: 0 auto;
}

.modal-content {
	top: 105px;
}

.birimler {
	align-items: center;
	justify-content: center;
	display: flex;
}


.tree ul {
	padding-top: 20px;
	position: relative;
	animation: slide-in 1s ease-out;

}

.tree li {
	display: inline-table;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 10px;

}

.tree li::before,
.tree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-top: 2px solid rgb(0, 0, 0);
	width: 60%;
	height: 30px;
	z-index: -1;
}

.tree li::after {
	right: auto;
	border-left: 2px solid rgb(0, 0, 0);
	margin-left: -0.8rem;

}

.tree li:only-child::after,
.tree li:only-child::before {
	display: none;
}

.tree li:only-child {
	padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
	border: 0 none;
}

.tree li:last-child::before {
	border-right: 2px solid rgb(8, 4, 4);
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;
	margin-right: 0.6rem;
}

.tree li:first-child::after {
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
}

li {
	margin: 0px;
}

.tree ul ul::before {
	/*1*/
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-left: 2px solid rgb(0, 0, 0);
	width: 0;
	height: 20px;
	margin-left: -0.5rem;
}


.tree li a img {
	height: 100px;
	margin-bottom: 10px;
	border-radius: 100px;
	margin: auto;
}

#baskan img {
	width: 180px;
	height: 200px;
	margin-top: 10px;
}

.tree li a {
	border: 2px solid rgb(0, 0, 0);
	display: inline-grid;
	background-color: rgb(241, 241, 241);
	border-radius: 5px;
	text-decoration-line: none;
	width: 132px;
	cursor: pointer;
	height: 80%;

}

#baskan {
	width: 210px;
	justify-content: center;
}

.tree li a span {
	border: 1px solid rgb(255, 255, 255);
	border-radius: 5px;
	color: rgb(255, 255, 255);
	background-color: #2d407a;
	padding: 3px;
	font-size: 12px;
	letter-spacing: 1px;
}


.card {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);

}

.card:hover {
	box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

ul li:nth-child(1) {
	animation-delay: 0s;
}

ul li:nth-child(2) {
	animation-delay: 0.1s;
}

ul li:nth-child(3) {
	animation-delay: 0.2s;
}

ul li:nth-child(4) {
	animation-delay: 0.3s;
}

ul li:nth-child(5) {
	animation-delay: 0.4s;
}

ul li:nth-child(6) {
	animation-delay: 0.5s;
}

ul li:nth-child(7) {
	animation-delay: 0.6s;
}

ul li:nth-child(8) {
	animation-delay: 0.7s;
}

ul li:nth-child(9) {
	animation-delay: 0.8s;
}

ul li:nth-child(10) {
	animation-delay: 0.9s;
}

.tree li a:hover,
.tree li a:hover i,
.tree li a:hover span,
.tree li a:hover+ul li a {
	background: #2d407a;
	color: rgb(255, 255, 255);
}

.tree li a:hover+ul li::after,
.tree li a:hover+ul li::before,
.tree li a:hover+ul::before,
.tree li a:hover+ul ul::before {
	border-color: #94a0b4;
}


label {
	font-size: 25px;
	font-weight: bold;
	color: rgb(85, 85, 85);
}

::-webkit-scrollbar {
	width: 5px;
	height: 5px; 
}

/* Track */
::-webkit-scrollbar-track {
	box-shadow: inset 0 0 5px grey;
	border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: #2d407a;
	border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #2d407a;
}
.modal-body {
	max-height: 500px;
	overflow: auto;
}

.modal-backdrop {
	opacity: 0.2 !important;
}

@media screen and (max-width: 768px) {
	.container {
		max-width: 95%;
	}

	#baskan {
		margin-left: 15px;
	}
}