
:root {
    --background-color-main: #ffffff;
	--background-color-secondary: #e1e1e1;
	--main-line-color: #6d6d6d;
	--second-line-color: #cccccc;
    --text-color: #000000;
	--shadow-color: #808080;
}

:root.dark-mode {
    --background-color-main: #121212;
	--background-color-secondary: #3a3a3a;
	--main-line-color: #6d6d6d;
	--second-line-color: #474747;
    --text-color: #e0e0e0;
	--shadow-color: #000000;
}

/*******/

html {
	scroll-behavior: smooth;
	height: 100%;
}

* {
	box-sizing: border-box;
}

body {
	height: 100%;
    margin: 0;
	text-align: center;
    padding: 0;
	color: var(--text-color);
	background-color: var(--background-color-main);
    font-family: "Poppins", sans-serif;
	letter-spacing: 1px;
}

@media screen and (max-width: 800px) {

	#logologin {
		height: 20% !important;
	}

	#footerlogin {
		margin-top: 0;
	}

	#txtdiscord {
		font-size: 2vh !important;
	}

	#logoh {
		width: 60px !important;
	}

	#h2 {
		font-size: 25px!important;
	}

	#titredash {
		font-size: 13px;
		margin: 0;
	}
}


header {
    color: #fff;
	background-color: var(--background-color-secondary); 
    padding: 0;
    width: 100%;
	height: 60px;
    top: 0;
    display: flex;
	flex-direction: column;
	text-align: center;
	z-index: 999;
	box-shadow: 0px 0px 4px var(--text-color);
	transition: 0.3s;
}

header table {
	border: none;
	height: 100%;
	width: 100%;
	border-spacing: 0px;
}

header table.selec {
	height:30% ;
}
	
.wrapper {
	position: relative;
	min-height: 100vh;
	max-height: 100vh;
	display: flex;
	flex-direction: column;
}

.content { 
	flex: 1;
	display: flex;
    flex-direction: column;
}

main {
	display: flex;
	flex: 1;
	flex-direction: column;
	height: 100%;
	padding: 10px;
	box-sizing: border-box;
}

main a {
	text-decoration: none;
	transition: color 0.4s;
	color: black;
}

.footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding-bottom: 20px;
	height: 160px; 
	background-color: var(--background-color-secondary); 
	text-align: center;
	display: flex; 
	justify-content: center;
	align-items: center;
	border-color: #ffffff;
	flex-shrink: 0;
	transition: 0.3s;
}		

.footer table {
	border-style: solid none none;
	border-width: 2px;
	border-image: linear-gradient(to right, #4800CC, #b40000);
	height: 92% ;
	width: 80%;
	margin-top: 30px;
	border-image-slice: 1;
}

.footer a {
	font-style: normal;
	text-decoration: none;
	padding: 5px;
	transition: color 0.4s;
}

p {
	font-size: 20px;
}

h3 {
	font-size: 35px;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.about tr {
	margin: 10px;
}

#abtable {
	margin-left: 25%;
	width: 50%;
	font-size: 20px;
}

#about {
	font-size: 30px;
	margin-bottom: 5px;
}

/*scroll bar*/

::-webkit-scrollbar {
	width: 12px;
  }
  
  ::-webkit-scrollbar-track {
	background-color: var(--background-color-main);
  }
  
  ::-webkit-scrollbar-thumb {
	background-color: var(--background-color-secondary);
	border-radius: 6px 0 0 6px;
	border: 3px solid var(--background-color-secondary);
  }

  ::-webkit-scrollbar-thumb:hover {
	background-color: var(--second-line-color);
  }

/* ANIMATION*/


.hidden {
	opacity: 0;
}

.fade {
	animation: fadeIn 2s ease;
	opacity: 0;
	animation-fill-mode: forwards;
}

.fadeleft {
	animation: fadeInLeft 1s ease;
	opacity: 0;
	animation-fill-mode: forwards;
}

.faderight {
	animation: fadeInRight 1s ease;
	opacity: 0;
	animation-fill-mode: forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeInLeft {
	from {
		transform: translateX(-10%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fadeInRight {
	from {
		transform: translateX(10%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.fadeblur {
	animation: blurin 2s ease;
	filter: blur(3px);
	opacity: 0;
	animation-fill-mode: forwards;
}

@keyframes blurin {
	from {
		filter: blur(3px);
		opacity: 0;
	}
	to {
		filter: blur(0px);
		opacity: 1;
	}

}

.transl {
	animation: transIn 2s ease;
	opacity: 0;
	animation-fill-mode: forwards;
}

@keyframes transIn {
	from {
		transform: translateX(-10%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.transld {
	animation: transInd 2s ease;
	opacity: 0;
	animation-fill-mode: forwards;
}

@keyframes transInd {
	from {
		transform: translateX(30%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 0.4;
	}
}

.translu {
	animation: transInu 2s ease;
	opacity: 0;
	animation-fill-mode: forwards;
}

@keyframes transInu {
	from {
		transform: translateY(20%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.shadow {
	filter: drop-shadow(0px 0px 5px var(--shadow-color));
}

.shadowbox {
	box-shadow: 1px 1px 4px var(--text-color);
}

/* INDEX STYLES*/

#h2 {
	font-size: 40px;
}

#event-list {
	color: white;
}


/*Login Page*/

#loginpage #logindiv {
	align-items: center;
	border-radius: 3vh;
	background-color: var(--background-color-secondary);
	height: 75%;
	width: 60%;
	margin-left: auto;
	margin-right: auto;	
}

#loginpage {
	display: flex;
	justify-content: center;
	height: 100vh;
	align-items: center;
}

#logologin {
	height: auto;
	width: 30%;
	margin-top: 5px;
	margin-bottom: 10px;
}

#footerlogin {
	margin-top: 4vh;
}
		
#connect {
	padding: 10px;
	border-radius: 10px;
	background-color: #000000;
	color: #ffffff;
}

#logoh {
	width: 80px;
	height: auto;
	margin-top: 4px;
	transition: 0.1s;
	user-select: none;
	pointer-events: none;
}

#logoh:hover, #theme-toggle {
	filter: drop-shadow(0px 0px 10px #000000);
}

.loading-spinner {
	width: 80px;
    height: 80px;
	border: 10px solid rgba(0, 0, 0, 0.1); /* Bordure semi-transparente */
	border-top-color: var(--text-color);
    border-bottom-color: var(--text-color);
	border-radius: 50%; 
	animation: spin 0.7s linear infinite; /* Animation de rotation */
	position: absolute;
	z-index: 9999;
	top: 40%;
	left: 43%;
}
  
  /* Animation de rotation */
  @keyframes spin {
	to { transform: rotate(360deg); }
  }

#txtdiscord {
	font-size: 3vh; 
	margin: 0;
}

/*DASHBOARD*/
/*                   */  

#dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3vh;
    flex: 1;
}

.course {
	background-color: #4787bc;
	padding: 5px;
	font-size: 12px;
	border-radius: 5px;
	text-align: center;
	color: #fff;
	font-weight: bold;
	overflow: hidden;
	box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.31);
	display: flex;
	transition: 0.2s;
	flex-direction: column;
}

.course:hover {
	scale: 1.02;
	cursor: pointer;
	z-index: 999;
}

.course-profs {
	width: 50%;
	font-weight: 500;
}

.course-location {
	font-weight: 500;
	width: 50%;
	line-height: 14px;
}

.course-title {
	line-height: 14px;
	text-wrap-style: balance;
	text-decoration: underline;
}

.course-description {
	font-weight: 600;
	line-height: 14px;
	margin-top: auto;
	font-size: 11px;
}

.course-details {
    display: flex;
    justify-content: space-between;
	margin-top: auto;
}

.course-time { 
	margin-top: auto;
	font-weight: 400;
	font-size: 11px;
	opacity: 0.7;
}

#timetable-nav {
	justify-content: space-between;
	margin-bottom: 5px;
	display: flex;
}

#current-date {
	font-weight: bold;
	margin: 0 15px;
}

#timetable {
	background-color: var(--background-color-secondary);
	border-radius: 8px;
	padding: 10px;
	color: white;
	width: 100%;
	flex-shrink: 1;
	min-height: 35rem;
	transition: 0.3s;
	position: relative;
	box-shadow: 1px 1px 4px var(--text-color);
}

#timetable-content {
	grid-column: span 1;
	display: grid;
	grid-template-columns: auto 1fr;
	width: 100%;
	flex-shrink: 1;
}

#time-indicator {
    position: absolute;
    right: 0;
    width: 10%;
    height: 4px;
    background-color: red;
	color: red;
    z-index: 10;
    pointer-events: none;
    transition: top 0.3s ease-in-out;
}

.time-label {
	color: var(--text-color);
	transition: 0.3s;
	height: 1.7vh;
	font-size: 10px;
	user-select: none;
}

#currentDayDisplay {
	color: var(--text-color);
}

#devoirs {
	grid-column: span 1;
	background-color: var(--background-color-secondary);
	border-radius: 8px;
	padding: 10px;
	color: var(--text-color);
	width: 100%;
	flex-shrink: 1;
	animation-delay: 0.2s;
	transition: 0.3s;
	box-shadow: 1px 1px 4px var(--text-color);
}

#additional-content {
	grid-column: span 1;
	display: flex;
	flex-direction: column;
	gap: 3vh;
	width: 100%;
	flex-shrink: 1;
	animation-delay: 0.4s;
}

#cours,
#notes {
    background-color: var(--background-color-secondary);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-color);
	height: 50%;
	flex-shrink: 1;
	transition: 0.3s;
	box-shadow: 1px 1px 4px var(--text-color);
}

#infos {
	grid-column: span 1;
	background-color: var(--background-color-secondary);
	border-radius: 8px;
	padding: 10px;
	color: var(--text-color);
	width: 100%;
	flex-shrink: 1;
	animation-delay: 0.6s;
	transition: 0.3s;
	box-shadow: 1px 1px 4px var(--text-color);
}

#refresh-btn {
	width: 200px;
	margin-left: auto;
	margin-right: auto;
	display: none;
}

#timetable button {
	border-radius: 10px;
	border: 2px solid #9b9b9b;
	background-color: #9b9b9b;
	user-select: none;
	transition: 0.12s;
}

#timetable button:hover {
	border: 2px solid #fff;
	color: white;
}

#theme-toggle {
	padding: 10px;
	height: 3.5rem;
	float: right;
	user-select: none;
}

header th {
	width: 33%;
}

@media (max-width: 1350px) {
	#dashboard {
		grid-template-columns: 1fr 1fr 1fr;
	}
	#infos {
		grid-column: 3;
	}
	#devoirs, #timetable {
		grid-row: span 2;
	}
}

@media (max-width: 1030px) {
	#dashboard {
		grid-template-columns: 1fr 1fr;
	}
	#infos {
		grid-column: unset;
	}
	#devoirs, #timetable {
		grid-row: span 2;
	}
}

@media (max-width: 740px) {
	#dashboard {
		grid-template-columns: 1fr;
	}

	header {
		height: 45px !important;
	}

	.time-label {
		height: 13px;
	}

	#additional-content {
		flex-direction: column;
	}

	#infos {
		grid-column: unset;
	}

	#devoirs, #timetable {
		grid-row: unset;
	}
}
/*2025 Vamros™ */