.timetables{
	margin-top: 7em;
	position: relative;
	padding: 5px;
	box-sizing: border-box;
	margin-left:auto;
	margin-right:auto;
}

#timetables-inner{
	background: #f9f9f9;
	padding: 22.4px 1.5rem;
	position:relative;
	overflow: scroll;
}

#timetables-control{
	display: flex;
	justify-content: center;
	margin-top: 2.3em;
	background: #f9f9f9;
	padding-top:1.5rem;
}

#choose-class{
	border:2px solid #d5d5d5;
	font-size:1.2rem;
	padding:5px 10px;
    padding-right: 50px;
    appearance: unset;
    background-position-x: 102%;
    background-size: 40.8px;
    background-repeat: no-repeat;
	cursor:pointer;
}


#choose-class:focus-visible {
    outline: none !important;
}

#choose-class-opener{
	background: #d5d5d5;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: -20px;
	width: 49px;
}

.hour-word{
	display:none;
}

#timetables-table{
	width:100%;
	text-align: center;
	font-weight: 300;
	font-size: 1.1rem;
}

#timetables-table th{
	font-weight: 600;
}

#timetables-table td, #timetables-table th{
	border: 1px solid #d5d5d5;
	padding:4px;
}

.teacher{
	display:none;
}

#timetables-table td:first-child, #timetables-table th:first-child{
	display:none;
}


@media screen and (min-width: 576px) {


	#timetables-inner{
		overflow: hidden;
	}


}


@media screen and (min-width: 768px) {

	#timetables-table td, #timetables-table th{
		position: relative;
    	height: 60px;
	}

	.teacher {
	    display: block;
	    position: absolute;
	    right: 4px;
	    bottom: 4px;
	    font-size: 0.8rem;
	    text-overflow: ellipsis;
	    overflow: hidden;
	    white-space: nowrap;
	    max-width: 60%;
	}

}

@media screen and (min-width: 992px) {

	#timetables-table td:first-child, #timetables-table th:first-child{
		display:table-cell;
	}


}

@media screen and (min-width: 1200px) {

	#timetables-table{
		font-size:1.4rem;
	}

	#timetables-table td:first-child, #timetables-table th:first-child{
		font-weight: 600;
		padding: 1em;
	}

}
