*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:MedievalSharp;
}

:root{
    --main-color:#121620;
    --second-color:#1e2638;
    --details-color:#38bdf8;
    --accent-color:#818cf8;
    --shop-color:#2b241e;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}



section, h1{
    scroll-margin-top: 80px;
}



header{
    z-index: 1000;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    display: flex;
    flex-direction: row;
    background-color: var(--main-color);
    box-shadow: 0px 4px 10px 0px var(--main-color);
    gap: 30px;
    padding: 20px;
    align-items: center;
    justify-content: space-around;

    

}


a{  
    text-decoration: none;
    color: inherit;
    font-size: 20px;
}




.header-menu{
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding-left: 60px;
}

.menu-item{
    color: #f4ecd8;
    border-radius: 5rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    transition: 0.5s;

}

.menu-item:hover{
    background-color: purple;
}

.hero-div{
    color: #f4ecd8;
    height: 100vh;
    width: 100vw;
    padding-top: 100px;
    background-image: url("./assets/darkcloudbackground.png");
    background-size: 1600px;
    background-position: 50% 30%;

}

.hero-description{
    padding: 60px;
}

.hero-description h2{
    padding-top: 20px;
    font-size: 60px;
}

.hero-description p{
    margin: 40px 0 40px 0;
    font-size: 30px;
}

.hero-description button{
    margin-right: 30px;
    font-size: 18px;
    height: 50px;
    width: 180px;
    border-radius: 3.5rem;
    border: none;
    background-color: purple;
    color: #f4ecd8;
    text-transform: uppercase;
    transition: 0.5s;
}

.btn{
display: inline-block;
  padding: 14px 24px;
  background-color: purple;
  color: #f4ecd8;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 18px;
  border-radius: 3.5rem;
  transition: 0.5s;

}

.hero-description button:hover, .btn:hover{
    background-color: rgb(251, 255, 0);
    color: #2c2c2c;
    transform: translateY(-3px)
}

.character-section{
    display: flex;
    flex-direction: column;
    padding: 40px;
    background-color: var(--second-color);
    color: #f4ecd8;
}

.character-section h2, .weapon-section h2, .gallery-section h2, .feature-section h2, .shop-section h2{
    font-size: 50px;
    text-align: center;
    color: #f4ecd8;
    margin-bottom: 10px;
}


.character-section .characters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.characters img{
    width: 200px;
}


.character-section .characters:nth-child(odd) {
    flex-direction: row-reverse;
}


.character-info {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.character-info h2{
    font-size: 40px;
    text-align: left;
}

.character-info.right h2{
    text-align: right;
}

.character-info p{
    font-size: 20px;
}

.weapon-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    gap: 20px;
    background-color: var(--main-color);
    color: #f4ecd8;
}

ul{
    list-style-type: none;
    padding-top: 30px;
}

article{
    display: grid;
    grid-template-columns: 1fr 1fr ;
    align-items: center;
    gap: 20px;
}

.side-image{
    margin-left: 30%;
    width: 300px;

}

.icon{
    width: 24px;
}

.weapon-explanation{
    background-color: var(--second-color);
    box-shadow: 8px 8px 4px 4px #000000;
    border-radius: 15px;
    padding: 10px;
    font-size: 20px;
    width: 80%;
}

.gallery-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background-color: var(--second-color);
}

.gallery{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    padding-top: 30px;
    gap: 20px;
    
}

.gallery-item{
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;

}

.gallery-item.large{
    grid-column:span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease-in-out;
}

.gallery-item img:hover{
    transform: scale(1.1);
}

.feature-section{
    padding: 40px;
    background-color: var(--main-color);
}

.feature-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 35px;
    padding-top: 20px;
}

.feature-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    background-color: var(--second-color);
    box-shadow: 8px 8px 4px 4px #000000;
    border-radius: 10px;
    padding: 15px;
    gap: 20px;
    transition: 0.5s ease-in-out;
    color: #f4ecd8;
}

.feature-item p {
    color: var(--accent-color);
}

.feature-item:nth-child(4){
    height: 100%;
}

.feature-item:hover{
    transform: scale(1.1);
}

.feature-item img{
    width: 40px;
    height: auto;
    object-fit: contain;
}

.shop-section{
    padding: 40px;
    background-color: #1a1c18;
}

.shop-sub{
    color:#f4ecd8;
    text-align: center;
    margin-bottom: 20px;
}

.shop-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    color: #f4ecd8;
    
    
}



.shop-item{
    display: flex;
    flex-direction: column;

    background-color: #2b241e;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.5s ease-in-out;
    
    
}

.shop-item:hover{
    transform: translateY(-10px);
    box-shadow: 8px 8px 4px 4px #000000;

}

.shop-img{
    position: relative;
    height: 220px;
    overflow: hidden;
    object-position: center center;

}

.shop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: 0.5s ease-in-out;
}

.shop-img img:hover{
    transform: scale(1.1);
}



.shop-description{
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.price-tag{
    font-size: larger;
    margin-top: auto;
    font-weight: bold;
    color: #e09f3e;
}






/*Reveal Animation*/

.reveal {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.reveal-left {
  transform: translateX(-80px);
}

.reveal-right {
  transform: translateX(80px);
}

.reveal-bellow {
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.4s; }