
html {
    scroll-behavior: smooth;
  }
/* Reset some basic styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}
*,
::before,
::after {
  box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
	display: flex;
	flex-direction: column;
    overflow: hidden;
    font-weight: 400;
    font-style: normal;
	height: 100vh;
	position: relative;
    line-height: 1.6;
    background-color: #000;
    color: #fff;
	transition: opacity .5s, filter 1s ease-in-out;
}

.smooth {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

a {
    color: #fff;
    text-decoration: none;
}

/* NAVIGATION SECTION */

#nav-heading {
	margin-left: 5%;
}

.navbar {
    background-color: #141414;
    padding: 1rem 0;
	display: flex;
    align-items: center;
    justify-content: space-between;
	font-size: 1.1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar ul {
    list-style: none;
	display: flex;
	margin-right: 5%;
}

.navbar ul li {
    display: inline-block;
    margin: 0 1rem;
}

.navbar ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #3498db;
}
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    margin-right: 5%;
}

.invite-button {
	display: none;
}

.discord-icon {
    display: none;
}
/* HOME SECTION */

header.hero-section {
	background: url('assets/sparks.png') no-repeat center center/contain,url('assets/sung.png') no-repeat right center/contain, linear-gradient(rgba(38,39,114,0.9), rgba(0,0,0,0.9)), url('assets/sung_bg.jpeg') no-repeat center center/cover;
    position: relative;
    height: 100vh;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
	font-family: "Kaushan Script", cursive;
	font-size: 25px;
    font-weight: 400;
    font-style: normal;
    scroll-snap-align: center;
	margin-top: 100px;
}

header.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

header.hero-section .hero-content {
    position: relative;
    z-index: 2; 
    color: #fff; 
    padding: 0 20px; 
}

header.hero-section h1 {
	margin-top: 100px;
	font-family: 'Sedan SC', serif;
    font-size: 70px;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.35em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
	overflow: hidden;
}
header.hero-section #description {
    opacity: 0;
    animation: fadeIn 2.5s forwards 1.5s;
}


header.hero-section h1 span {
    display: inline-block;
    opacity: 0;
    animation: fadeInLetter 1s forwards;
    animation-delay: calc(0.1s * var(--i)); 
}

@keyframes fadeInLetter {
    to {
        opacity: 1;
    }
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.button-div {
    opacity: 0;
	margin-top: 60px;
	display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
	margin-bottom: -40px;
    animation: fadeIn 2.5s forwards 1.5s;
}

.btn-primary {
    padding: 10px 30px;
    background-color: #3498db;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.arrowcontainer {
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100px; 
    position: relative;
    animation: fadeIn 2.5s forwards 1.5s;
}

.chevron {
    position: absolute;
    width: 30px; 
    height: 6px; 
    opacity: 0;
    transform: scale(0.3);
    animation: move-chevron 3s ease-out infinite;
}

.chevron:first-child {
    animation: move-chevron 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
    animation: move-chevron 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: #fff;
}

.chevron:before {
    left: 0;
    transform: skewY(30deg);
}

.chevron:after {
    right: 0;
    width: 50%;
    transform: skewY(-30deg);
}

@keyframes move-chevron {
    25% {
        opacity: 1;
    }
    33.3% {
        opacity: 1;
        transform: translateY(38px); 
    }
    66.6% {
        opacity: 1;
        transform: translateY(52px); 
    }
    100% {
        opacity: 0;
        transform: translateY(80px) scale(0.5); 
    }
}

/* FEATURE SECTION */

#feature-container {
    height: 100vh;
    width: 80%;	
}

#feature-container h2 {
	margin-top: 35px;
    font-size: 50px;
}

.features-section h2 {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 2.0s ease-out, transform 1.0s ease-out;
}

/* Animation state */
.features-section h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-item h3 {
	font-family: "Kaushan Script", cursive;
    font-weight: 400;
	font-size: 25px;
	color: #a8fbff;
    text-shadow: 0 0 15px black;
}
.feature-des {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
	line-height: 20px;
	font-size: 15px;
	color: white;
    text-shadow: 0 0 10px black;
}

.features-columns {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.feature-column {
    width: 45%;
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    background: rgba(162, 200, 236, 0.5);
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.feature-button:hover {
    transform: scale(1.05);
    background: rgba(162, 200, 236, 0.8);
}

#column1 {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 2.0s ease-out, transform 1.0s ease-out;
}

/* Animation state */
#column1.animate {
    opacity: 1;
    transform: translateX(0);
}

#column2 {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 2.0s ease-out, transform 1.0s ease-out;
}

/* Animation state */
#column2.animate {
    opacity: 1;
    transform: translateX(0);
}

.feature-column li {
    margin-bottom: 0px;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 2rem 0;
}

.features-section1 {
	font-family: 'Sedan SC', serif;
	font-weight: 400;
	background: linear-gradient(rgba(0,0,0,0.75), rgba(38,39,114,0.75),rgba(0,0,0,0.75)), url('assets/sung_bg2.jpeg') no-repeat center center/cover;
}

/* SHOP SECTION */

@keyframes bounce {
    0%, 100% {
        background-position: 95% 75px, center, center center;
    }
    50% {
        background-position: 95% 65px, center, center center; /* Move up by 10px */
    }
}

.shop-section {
	background: url('assets/embed3.png') no-repeat right center, linear-gradient(rgba(38,39,114,0.9), rgba(0,0,0,0.9)), url('assets/sung_bg3.jpeg') no-repeat center center/cover;
	background-size: 35% auto, auto, cover;
    background-position: 95% 75px, center, center center;
    animation: bounce 1.5s infinite ease-in-out;
}

#shop-container {
    height: 100vh;
    width: 90%;	
}

#shop-container h2{
	text-align: left;
	margin-top: 45px;
    font-size: 50px;
}


#shop-container .shop-item{
	display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 60%;
    text-align: left;
}

#shop-container p {
	font-family: "Itim", cursive;
    font-weight: 400;
	font-size: 20px;
    font-style: normal;
}

.shop-item h3{
	font-family: "Kaushan Script", cursive;
    font-weight: 400;
	font-size: 25px;
	color: #a8fbff;
}

.shop-item ul {
	list-style-type: disc;
}
	
.shop-item li{
	display: grid;
	grid-template-columns: 250px auto;
	align-items: baseline;
	margin-bottom: 15px;
	white-space: nowrap;
}

#h2p {
	width: 60%;
	margin-bottom: 30px;
	margin-top: 10px;
}

#h3p{
	width: 100%;
	margin-top: 10px;
}

/* CHARACTER SECTION */

.characters-section {
	background: linear-gradient(rgba(0,0,0,0.75), rgba(38,39,114,0.75),rgba(0,0,0,0.75)), url('assets/sung_bg4.jpeg') no-repeat center center/cover;
}

.characters-section .characters-grid {
    display: grid;
	justify-content: center;
    grid-template-columns: repeat(7, minmax(0, 12%));
    gap: 0px;
    margin-top: 50px;
}

#characters-container {
	height: 100vh;
	width: 100%;
}

#characters-container h2{
    margin-top: 40px;
    font-size: 50px;
	color: #ffa700;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 2.0s ease-out, transform 1.0s ease-out;
}

/* Animation state */
#characters-container h2.animate {
    opacity: 1;
    transform: translateX(0);
}

#characters-container p{
	text-align: center;
    margin-bottom: 50px;
    margin-top: 10px;
	font-size: 30px;
	opacity: 0;
    animation: fadeIn 1.5s forwards 0.5s;
}

.characters-section .character {
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
	overflow: visible;
}
	

.characters-section img {
    width: 100px; /* Set a fixed width for images */
    height: auto;
    margin: 0; /* Remove margin from images */
    padding: 0; /* Remove padding from images */
}


.col1 {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 2.0s ease-out, transform 1.0s ease-out;
}

/* Animation state */
.col1.animate {
    opacity: 1;
    transform: translateX(0);
}

.col4 {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 2.0s ease-out, transform 1.0s ease-out;
}

/* Animation state */
.col4.animate {
    opacity: 1;
    transform: translateX(0);
}

.col3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2.0s ease-out, transform 1.0s ease-out;
}

/* Animation state */
.col3.animate {
    opacity: 1;
    transform: translateY(0);
}

#col21, #col41, #col22 {
    grid-row: 1;
}

#col11, #col31, #col12, #col42 {
    grid-row: 2;
}

#col11 {
    grid-column: 1;
}

#col21 {
    grid-column: 2;
}

#col31 {
    grid-column: 3;
}

#col41 {
    grid-column: 4;
}

#col12 {
    grid-column: 5;
}

#col22 {
    grid-column: 6;
}

#col42 {
    grid-column: 7;
}
.neon-frame img {
    border: 5px solid transparent; /* Adjust the border width as needed */
    border-radius: 15px; /* Optional: Rounded corners */
	box-shadow: 0 0 0 2px white, 0 0 10px 3px white, 0 0 20px rgba(0, 76, 255, 0.8), 0 0 80px rgba(0, 128, 255, 0.6);
}

@keyframes neonGlow {
    0%, 100% {
        box-shadow: 0 0 20px white, 
                    0 0 40px rgba(0, 128, 255, 0.8), 
                    0 0 80px rgba(0, 128, 255, 0.6), 
                    0 0 120px rgba(0, 128, 255, 0.4);
    }
    25%, 75% {
        box-shadow: 3px 3px 0px white, 
                    0 0 20px white, 
                    0 0 40px rgba(0, 128, 255, 0.8), 
                    0 0 80px rgba(0, 128, 255, 0.6), 
                    0 0 120px rgba(0, 128, 255, 0.4);
    }
    50% {
        box-shadow: 6px 6px 0px white, 
                    0 0 20px white, 
                    0 0 40px rgba(0, 128, 255, 0.8), 
                    0 0 80px rgba(0, 128, 255, 0.6), 
                    0 0 120px rgba(0, 128, 255, 0.4);
    }
}

.features-section, .shop-section, .characters-section, .quests-section, .market-section, .guilds-section, .leaderboard-section, .gallery-section, .download-section {
    background-color: #1a1a1a;
    padding: 4rem 0;
    position: relative;
	display: flex;
	height:100vh;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.features-section h2, .shop-section h2, .characters-section h2, .quests-section h2, .market-section h2, .guilds-section h2, .leaderboard-section h2, .gallery-section h2, .download-section h2 {
	font-family: "Kaushan Script", cursive;
    font-weight: 400;
	font-size: 25px;
    text-shadow: 0 0 15px black;
    text-align: center;
    font-size: 2.5rem;
    color: #3498db;
}

.features-section .feature-item, .shop-section .shop-item, .quests-section .quest, .market-section .market-item, .guilds-section .guild, .gallery-section img {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-in-out;
}

.characters-grid, .quests-grid, .market-grid, .guilds-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quests-section .quest img, .market-section .market-item img, .guilds-section .guild img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.characters-section .character img:hover, .quests-section .quest img:hover, .market-section .market-item img:hover, .guilds-section .guild img:hover {
    transform: scale(1.05);
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: #2a2a2a;
}

.leaderboard-table th, .leaderboard-table td {
    border: 1px solid #3498db;
    padding: 1rem;
    text-align: center;
}

.download-section {
    background-color: #3498db;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.download-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.btn-secondary {
    padding: 1rem 2rem;
    background-color: #2ecc71;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

.footer-section {
    background-color: #141414;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer-section p {
    margin-bottom: 1rem;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}


/* Media query for screens up to 768px */
@media only screen and (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.smooth {
	  position: relative;
	  width: 100%;
	  height: 100%;
	  scroll-behavior: smooth;
	  overflow-y: scroll;
	  scroll-snap-type: y mandatory;
	}

	a {
		color: #fff;
		text-decoration: none;
	}

	/* NAVIGATION SECTION */

	#nav-heading {
		margin-left: 5%;
	}

	.navbar {
		padding: 0.5rem;
		flex-direction: row;
		height: 50px;
		font-size: 1.1rem;
	}

	.navbar ul li {
		margin: 25px 1rem;
	}

	#nav-heading {
		display: none;
	}

	.invite-button {
		display: inline-block;
		background-color: rgba(87, 74, 236, 0.6);
		color: #fff;
		border: none;
		padding: 0.4rem 1rem;
		font-size: 19px;
		cursor: pointer;
		margin-right: -7rem;
		border-radius: 36px; /* Rounded corners */
		transition: background-color 0.3s ease;
	}

	.discord-icon {
		display: inline-block;
		margin-right: 5%;
		font-size: 2rem;
		cursor: pointer;
	}

	.navbar-menu {
		flex-direction: column;
		width: 40%;
		position: fixed;
		top: 0;
		left: -40%;
		height: 100vh;
		background-color: #141414;
		transition: left 0.3s ease;
		padding-top: 4rem;
	}

	.navbar-menu.active {
		left: 0;
	}

	.navbar-menu li {
		margin: 1rem 0;
		text-align: center;
	}

	.menu-icon {
		display: block;
		z-index:10;
	}

	/* HOME SECTION */

	header.hero-section {
		background: url('assets/sparks.png') no-repeat 80% 80%,url('assets/sung.png') no-repeat right center/contain, linear-gradient(rgba(38,39,114,0.9), rgba(0,0,0,0.9)), url('assets/sung_bg.jpeg') no-repeat center center/cover;
		flex-direction: column;
		margin-top: 372px;
	}

	header.hero-section .hero-content {
		position: absolute;
	}

	header.hero-section h1 {
		margin-top: -100px;
		font-size: 10vw;
		font-weight: bold;
		letter-spacing: 5px;
	}

	header.hero-section #description {
		font-size: 19px;
	}


	.button-div {
		margin-top: 60px;
		position: absolute; 
		margin-top: 250px;
	}

	.btn-primary {
		padding: 10px 30px;
		background-color: #363da8;
		border-radius: 12px;
		font-size: 20px;
	}

	.btn-primary:hover {
		background-color: #2980b9;
	}


	.arrowcontainer {
		position: absolute;
		margin-bottom: -370px;
	}

	.chevron {
		width: 30px; 
		height: 6px;
	}

	/* FEATURE SECTION */

	#feature-container {
		width: 90%;	
		padding: 0px;
	}

	#feature-container h2 {
		font-size: 50px;
		margin-top: 0px;
	}


	.feature-item h3 {
		font-size: 23px;
		margin-bottom: 5px;
	}
	.feature-des {
		line-height: 20px;
		font-size: 14px;
	}

	.features-columns {
		margin-top: 20px;
	}

	.feature-button {
		padding: 10px;
		padding-bottom: 20px;
	}

	/* SHOP SECTION */

	.shop-section {
		background: url('assets/embed2.png') no-repeat, linear-gradient(rgba(38,39,114,0.9), rgba(0,0,0,0.9)), url('assets/sung_bg3.jpeg') no-repeat center center/cover;
		background-size: 50% auto, auto, cover;
		background-position: 100% 120px, center, center center;
		animation: none;
		padding: 0px;
	}

	#shop-container {
		display: flex;
		flex-direction: column;
		padding: 0px;
		margin-top: 45px;
	}

	#shop-container h2{
		font-size: 50px;
		position: absolute;
		width:  90%;
		margin-top: 0px;
	}


	#shop-container .shop-item{
		width: 90%;
		position: absolute;
		margin-top: 340px;
	}

	#shop-container p {
		font-size: 18px;
	}

	.shop-item h3{
		font-size: 20px;
	}

	.shop-item ul li:nth-last-child(-n+1) {
		display: None;
	}	

	.shop-item li{
		display: flex;
		flex-direction: column;
		margin-bottom: 10px;
		white-space: initial;
	}

	#h2p {
		width: 47%;
		margin-top: 100px;
		position: absolute;
	}


	/* CHARACTER SECTION */

	.characters-section {
		background: linear-gradient(rgba(0,0,0,0.75), rgba(38,39,114,0.75),rgba(0,0,0,0.75)), url('assets/sung_bg4.jpeg') no-repeat center center/cover;
		padding: 0px;
	}

	.characters-section .characters-grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 10px;
		column-gap: 0px;
		grid-template-rows: repeat(2, 1fr);
		margin-top: 140px;
		width: 100%;
		position: absolute;
	}

	.characters-grid h3 {
	  font-size: 17px;
	}

	#characters-container {
		margin-top: 45px;
		display: flex;
		flex-direction: column;
		padding: 0px;
	}

	#characters-container h2{
		margin-top: 0px;
		font-size: 40px;
		position: absolute;
        align-self: center;
	}

	#characters-container p{
		margin-bottom: 0px;
		font-size: 18px;
		padding: 0px 20px;
		position: absolute;
		margin-top: 60px;
	}

	.characters-section img {
		width: 100px;
	}

	#col11, #col21, #col31 {
		opacity: 0;
		transform: translateX(-20px);
		transition: opacity 2.0s ease-out, transform 1.0s ease-out;
	}

	/* Animation state */
	#col11.animate, #col21.animate, #col31.animate {
		opacity: 1;
		transform: translateX(0);
	}

	#col41, #col12, #col22 {
		opacity: 0;
		transform: translateX(20px);
		transition: opacity 2.0s ease-out, transform 1.0s ease-out;
	}

	/* Animation state */
	#col41.animate, #col12.animate, #col22.animate {
		opacity: 1;
		transform: translateX(0);
	}

	#col11 {
		grid-column: 1;
		grid-row: 1;
	}

	#col21 {
		grid-column: 1;
		grid-row: 2;
	}

	#col31 {
		grid-column: 1;
		grid-row: 3;
	}

	#col41 {
		grid-column: 2;
		grid-row: 1;
	}

	#col12 {
		grid-column: 2;
		grid-row: 2;
	}

	#col22 {
		grid-column: 2;
		grid-row: 3;
	}

	#col42 {
		display: none;
	}
}