@import url('https://fonts.googleapis.com/css2?family=Varela+Round&family=Pacifico&display=swap');

/* General styles */

body {
	overflow-x: hidden;
	margin: 0;
}
.home {
	font-family: "Varela Round", Arial, sans-serif;
}

.home h1 {
	margin: 0;
	font-size: 2.5rem;
}
.home h2 {
	margin: 0.5rem 0 1rem 0;
	font-size: 1.5rem;
	font-weight: normal;
}
.home p {
	font-size: 1.3rem;
	line-height: 1.2;
}

/* Nav bar */

.home.navbar {
	position: sticky;
	top: 0;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	border-bottom: 1px solid #ddd;
	z-index: 1000;
}

.home.navbar .logo {
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.home.navbar .logo p {
	margin: 0 0.3rem;
	font-family: Pacifico;
	font-size: 1.2rem;
	color: #0d8bf2;
}
.home.navbar .logo img {
	height: 40px;
}

.home.navbar .toplink.topchallenge .login {
	display: none;
}
.home.navbar .toplink.toplogin .challenge {
	display: none;
}
.home.navbar .login {
	font-size: 1rem;
	color: #069;
}


/* Hero section & Navbar challenge button */

.home .hero-section {
	display: flex;
	margin: 30px 0 6rem 0;
	align-items: center;
	justify-content: center;
	flex-direction: row;
}

.home .hero-section-text {
	max-width: 50%;
	padding: min(60px,8vw,8vh);
	padding-top: 0;
	text-align: left;
}
.home .hero-section-text h1 {
	margin-bottom: min(60px,8vw,8vh);
	font-size: 2.5rem;
}

.home .hero-section-image {
	flex: 1;
	max-width: 50%;
	padding: min(60px,5vw,5vh);
}

.home .hero-section-image img {
	display: block !important;
	margin: auto;
	padding: 1rem;
	height: auto;
	max-width: 100%;
	max-height: min(90vh, 400px);
	width: auto;
}

.home .hero-section-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
	margin-top: 20px;
}

.home .hero-section-buttons .button {
	padding: 10px 20px;
	margin: 5px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	box-sizing: border-box;
}

.home .hero-section-buttons .primary, .home.navbar .topchallenge .challenge {
	width: 100%;
	background-color: #2196f3;
	text-decoration: none;
	color: white;
	box-shadow: 0 4px 8px rgba(105, 189, 69, 0.3);
}
.home .hero-section-buttons .primary {
	margin: auto;
}
.home.navbar .topchallenge .challenge {
	font-size: 1rem;
	padding: 0.5rem;
}
.home .hero-section-buttons .primary:hover, .home.navbar .topchallenge .challenge:hover {
	background-color: #55aef6;
	box-shadow: 0 2px 4px rgba(105, 189, 69, 0.2);
}

.home .hero-section-buttons .secondary {
	flex: 1;
	background-color: white;
	text-decoration: none;
	color: black;
	border: 1px solid #E5E5E5;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.home .hero-section-buttons .secondary:hover {
	background-color: #F8F8F8;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home .hero-section-buttons .get-started {
	background-color: #4caf50;
	color: white;
}

.home .hero-challenge {
	position: relative;
	max-width: 600px;
	padding: 1.2rem;
	border-radius: 1rem;
	border: 4px solid #0d8bf2;
}

.home .hero-challenge .first-guild-badge {
	position: absolute;
	display: flex;
	gap: 0.2rem;
	top: -1px;
	right: -1px;
	background: #0d8bf2;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 0 8px 0 8px;
	font-size: 0.875rem;
	font-weight: 500;
}

.home .hero-challenge.blur .guild-data {
	color: transparent;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.home .hero-challenge small {
	margin: -0.2rem auto auto auto;
	font-size: 0.875rem;
}
.home .hero-challenge small:first-of-type {
	margin: 0.5rem auto auto auto;
	color: #4b5563;
}
.home .hero-challenge small svg {
	margin-right: 0.1rem;
	width: 0.7rem;
	height: 0.7rem;
}

/* Content section */

.home .content-section {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: auto;
	padding: 2rem 5rem;
	min-height: min(70vh, 400px);
}
.home .content-title {
	margin: 0 2rem;
	color: #0d8bf2;
	font-weight: 1000;
	text-shadow: 1px 0 #0d8bf2;
}
.home .content-section-text p {
	margin: 1.5rem 2rem;
}
.home .content-section:nth-child(even) {
	flex-direction: row-reverse;
}

.home .content-section-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: min(60%, 600px);
}
.home .content-section-image {
	flex: 1;
}
.home .content-section-image img {
	display: block;
	margin: 2rem auto;
	box-sizing: border-box;
	padding: 0;
	height: auto;
	max-width: min(100%, 250px);
	max-height: min(60vh, 400px);
	width: auto;
}

.home .button {
	padding: 1rem;
	border-radius: 8px;
	border: none;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s ease;
}

/* Stats section */
	
.home .stat-section {
	display: grid;
        grid-template-columns: repeat(4, 1fr);
	align-items: center;
	gap: 2rem;
	margin-top: 2rem;
	padding: 4rem 0;
	background-color: #e6f7ff;
}

    .stat-card {
      text-align: center;
    }

    .stat-section svg {
      width: 3rem;
      height: 3rem;
      margin-bottom: 1rem;
      color: #2563eb;
    }

    .stat-number {
      font-size: 2.5rem;
      font-weight: bold;
      color: #2563eb;
      margin-bottom: 0.5rem;
    }

    .stat-label {
      color: #6b7280;
    }


/* Final section */

.home .final-section {
	margin-top: 5rem;
	padding: 20px;
	background-color: #e6f7ff;
	text-align: center;
	height: calc(100vh - 3rem - 100px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.home .final-section .hero-challenge {
	margin-top: 2rem;
	min-width: 50%;
}

.home .final-section-buttons button {
	padding: 10px 20px;
	margin: 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
}

.home .footer {
	display: flex;
	align-content: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2rem;
	min-height: 3rem;
	background-color: #000;
	color: white;
	list-style: none;
}
.home .footer, .footer li {
	margin: 0;
}
.home .footer a {
	color: white;
	text-decoration: none;
	font-size: 1rem;
	transition: opacity 0.2s;
}
.home .footer a:hover {
	opacity: 0.8;
}

.Toastify__toast-body img {
	margin: 0 10px 10px 0;
	float: left;
	height: 100px;
	width: auto;
}
.Toastify__toast-icon {
	display: none !important;
}
.Toastify__toast-container {
	width: min(550px, 100vw) !important;
}
.S9gUrf-YoZ4jf {
	margin: auto !important;
	max-width: fit-content !important;
}

@media (max-width: 900px) {
	.home .hero-section {
		margin-top: 3rem;
	}

	.home .hero-section-text h1 {
		font-size: 2rem;
		margin-bottom: 2rem;
	}
}

@media (max-width: 768px) {
	.home .hero-section {
		flex-direction: column;
		margin-top: 0;
	}

	.home .hero-section-text {
		max-width: 100%;
	}

	.home .hero-section-image {
		max-width: 80%;
	}
	.home .hero-section-image img, .content-section-image img {
		max-height: 40vh;
	}

	.home .stat-section {
		grid-template-columns: repeat(2, 1fr);
	}

	.home .footer {
		gap: 1rem;
	}
}	


@media (max-width: 900px) {
	.home .content-section, .home .content-section:nth-child(even) {
		flex-direction: column;
		padding: 3rem 8vw;
	}

	.home .content-section-text {
		max-width: 100%;
	}

	.home .content-section-image img {
		margin: 0 auto;
		max-height: max(30vh, 30vw);
	}
}

@media (max-width: 650px) {
	.home h1 {
		font-size: 1.5rem;
	}
	.home h2 {
		font-size: 1.3rem;
		font-weight: normal;
	}
	.home p {
		font-size: 1.2rem;
	}
	.home li {
		font-size: 1.15rem;
	}
	.home .button {
		font-size: 1rem;
		padding: 0.4rem;
	}
	.home.navbar .topchallenge .challenge {
		font-size: 0.8rem;
		padding: 0.4rem;
	}
}
