/* General Styles */

html {
  height: 100%;
}
body {
	margin: 0;
  min-height: 100%;
}

body {
	background: black url('../../images/background.jpg');
	background-attachment: fixed;
	color: white;
	font-family: "Ojuju", sans-serif;
}

/* Custom Styles */

/* CARDS */
#cards {
	height: 100vh;
	position: fixed;
	width: 100vw;
	z-index: 4;
}

.card1 {
	display: none;
	left: calc(50% - 75px);
    position: absolute;
    opacity: 0.3;
    top: 150px;
    transform: rotate3d(1, 1, 1, 172deg);
    width: 150px;
}

.card2 {
	display: none;
	left: calc(50% - 400px);
    position: absolute;
    opacity: 0.3;
    top: 50px;
    transform: rotate3d(2, -1, -1, 321deg);
    width: 150px;
}

.card3 {
	display: none;
	left: calc(50% + 225px);
    position: absolute;
    opacity: 0.3;
    top: 350px;
    transform: rotate3d(1, 1, 1, 65deg);
    width: 150px;
}

.card4 {
	display: none;
	left: calc(50% - 200px);
    position: absolute;
    opacity: 0.3;
    top: 450px;
    transform: rotate3d(-1, -1, 1, 292deg);
    width: 150px;
}

.card5 {
    display: none;
    left: calc(50% + 550px);
    position: absolute;
    opacity: 0.3;
    top: 250px;
    transform: rotate3d(-1, -1, 1, 165deg);
    width: 150px;
}

.card6 {
    display: none;
    left: calc(50% - 720px);
    position: absolute;
    opacity: 0.3;
    top: 400px;
    transform: rotate3d(-1, -1, 1, 218deg);
    width: 150px;
}

#cards img {
	width: 100%;
}


/* SECTION 1 */

#header {
	width: 100%;
  	height: 100vh;
}

#mouseeffect {
	height: 100vh;
	left: 0;
	position: fixed;
	top: 0;
	width: 100vw;
}

#main {
	position: relative;
	z-index: 5;
}

#head-main {
	position: relative;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
}

#head-main p {
	font-size: 35px;
  font-weight: 600;
  margin: 0;
	opacity: 0;
	transition: all 1s ease;
}

#header h1 {
	color: white;
	font-family: "Fjalla One", sans-serif;
  font-weight: 800;
	font-size: 200px;
	margin: 0;
}

#heading span {
	display: inline-block;
	filter: blur(20px);
	opacity: 0;
	transform: translateY(100px);
	transition: all 1s ease;
}

.downlink {
	left: 50%;
	position: absolute;
	top: calc(100vh - 100px);
	transform: translateX(-50%);
	transition: all 0.5s ease;
	width: 50px;
}

.downlink:hover {
	cursor: pointer;
	opacity: 0.6;
}

.downlink img {
	animation: downlinkfloat 2s ease;
	animation-iteration-count: infinite;
	width: 100%;
}

@keyframes downlinkfloat {
	0% {
		transform: translateY(-10px);
	}
	50% {
		transform: translateY(10px);
	}
	100% {
		transform: translateY(-10px);
	}
}

/* SECTION 2 */

#spieler {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 100px 50px 200px 50px;
	width: 100%;
}

#spieler h2 {
	font-family: "Fjalla One", sans-serif;
  	font-weight: 800;
	font-size: 80px;
	margin-top: 0;
	text-align: center;
}

#playerlist {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

#spieler .spieler {
	background-color: #0000008f;
	/*background: linear-gradient(126deg, rgb(39 22 22 / 61%) 45%, rgba(0, 0, 0, 0.8295693277310925) 65%);*/
	height: 150px;
	padding: 20px;
	margin: 10px;
	transform-style: preserve-3d;
	transform: perspective(200px);
	width: 400px;
}

#spieler .spieler h3 {
	margin-top: 20px;
	transform: translateZ(30px);
}

#spieler h3 i {
	
	font-size: 16px;
	font-weight: 100;
  margin-left: 5px;
}

#spieler .spf {
	height: 150px;
	margin-right: 30px;
}

#spieler p {
	transform: translateZ(30px);
}

#spieler .spieler .spf {
	float: left;
}


/* SECTION 3 */
#statistics {
	margin-bottom: 300px;
	min-height: 100vh;
}

#statistics h2 {
	font-family: "Fjalla One", sans-serif;
  	font-weight: 800;
	font-size: 80px;
	text-align: center;
}

#statistics .statcats {
	display: flex;
	justify-content: space-around;
}

#statistics .statcats .stat {
	align-items: center;
	background-color: #0000006e;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 30%;
}

.stat p {
	font-size: 30px;
}

.stat .count {
	font-size: 6vw;
	margin: 0;
	margin-bottom: 30px;
}

#chart-teilnahmen {
	margin: 100px auto;
	max-width: 900px;
	width: 80%;
}

#chart-teilnahmen h3 {
	font-family: "Fjalla One", sans-serif;
  font-size: 30px;
  text-align: center;
}

#max-points {
	margin: 100px auto;
	max-width: 900px;
	width: 80%;
}

#max-points h3 {
	font-family: "Fjalla One", sans-serif;
  font-size: 30px;
  text-align: center;
}






/* SECTION 4 */
#ergebnisse {
	/*min-height: 100vh;*/
}

#ergebnisse h2 {
	font-family: "Fjalla One", sans-serif;
  	font-weight: 800;
	font-size: 80px;
	text-align: center;
}

#ergebnisse .table {
	margin: 0 5%;
}

.tableheader {
	background: linear-gradient(90deg, rgb(52 52 57) 0%, rgba(34, 34, 38, 1) 100%);
	box-sizing: border-box;
	box-shadow: 0 0 10px black;
	display: flex;
	font-weight: bold;
	margin: 0 0 20px 0;
	justify-content: space-around;
	padding: 20px;
	width: 100%;
}

.row {
	background-color: rgb(52 52 57);
	border-radius: 5px;
	box-shadow: 0 0 10px black;
	box-sizing: border-box;
	margin: 15px 0;
	padding: 15px;
	transition: all 0.5s ease;
	width: 100%;
}

.rowdata {
	display: flex;
	justify-content: space-around;
	width: 100%;
}

.rowstats {
	display: none;
}

.row:hover {
	cursor: pointer;
	scale: 1.02;
}

.row:nth-child(odd) {
	background-color: rgba(34, 34, 38, 1);
}

.row-am, .row-date, .row-name, .row-points {
	text-align: center;
	width: 20%;
}




/* FOOTER */
#footer {
	bottom: 0;
	position: relative;
	width: 100%;
	z-index: 99;
}

#footer img {
	width: 100%;
}


/* ############### FOREIGN EFFECTS ############### */

@keyframes rotate {
  from {
    rotate: 0deg;
  }
  
  50% {
    scale: 1 1.5;
  }
  
  to {
    rotate: 360deg;
  }
}

#blob {
  background-color: white;
  height: 34vmax;
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: linear-gradient(to right, #9b1f1f, #1b2ca7);
  animation: rotate 20s infinite;
  opacity: 0.8;
}

#blur {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
  backdrop-filter: blur(12vmax);
}






/* ############### RESPONSIVE ############### */

@media screen and (max-width: 1200px) {
  #header h1 {
  	font-size: 150px;
  }
}

@media screen and (max-width: 900px) {
  #header h1 {
  	font-size: 100px;
  }

  #statistics .statcats {
  	flex-wrap: wrap;
  }

  #statistics .statcats .stat {
  	margin: 10px;
  	max-width: calc(100% - 20px);
  	min-width: 320px;
  }
}

@media screen and (max-width: 600px) {
  #header h1 {
  	font-size: 50px;
  }

  h2 {
  	font-size: 60px !important;
  }

  #spieler {
  	padding: 100px 0 200px 0;
  }

  #footer img {
  	width: 400%;
    transform: translateX(-50%);
  }
}























/* LOGIN STYLES */

.login-container {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
    position: absolute;
  	top: 50%;
  	left: 50%;
  	transform: translate(-50%, -50%);
}

/* Form Group & Input Styles */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-wrapper input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    outline: none;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.input-wrapper input::placeholder {
    color: transparent;
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    transform-origin: left top;
}

.input-wrapper input:focus,
.input-wrapper input:valid {
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.input-wrapper input:focus + label,
.input-wrapper input:valid + label {
    transform: translateY(-14px) scale(0.86);
    color: #06b6d4;
    font-weight: 500;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #6366f1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.input-wrapper input:focus ~ .focus-border {
    width: 100%;
}

/* Error States */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    margin-left: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group.error .input-wrapper input {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* Loading State */
.btn.loading {
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    opacity: 1;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 20px;
    animation: successPulse 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-message h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.success-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}
/* Animations */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    transition: left 0.5s ease;
}

.login-card:hover::before {
    left: 100%;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    color: white;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
}

/* Password Toggle Specific Styles */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.eye-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eye-icon.show-password {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 11-4.243-4.243m4.242 4.242L9.88 9.88'/%3e%3c/svg%3e");
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.forgot-password {
    color: #06b6d4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #06b6d4;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-password:hover::after {
    width: 100%;
}

.forgot-password:hover {
    color: white;
}

/* Login Button */
.login-btn {
    width: 100%;
    margin-bottom: 24px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

.divider span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    white-space: nowrap;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.google-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%23ea4335' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3e%3cpath fill='%2334a853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3e%3cpath fill='%23fbbc05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3e%3cpath fill='%23ea4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3e%3c/svg%3e");
}

.github-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z'/%3e%3c/svg%3e");
}

/* Signup Link */
.signup-link {
    text-align: center;
}

.signup-link p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.signup-link a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup-link a:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 24px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .login-header h2 {
        font-size: 1.75rem;
    }
    
    .password-wrapper input {
        padding-right: 44px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}