*, *::before, *::after { 
    box-sizing: border-box;
}
html{ 
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: url("https://cdn.fallensworkshop.com/KireNekoWorld/images/Home.png");
    --overlay: rgba(0, 0, 0, 0.25);
    --text-color: #fff;
}

body {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    height: inherit;
    align-items: center;
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #1e1564, #4e2492, #321f66);
    color: rgb(213, 194, 255);
    padding: 1rem;
    margin: 0;
    overflow-x: hidden;
    overflow: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: var(--bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
}

header {
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
}

.header-button {
    padding: 1.2rem 1.7rem;
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
    border-radius: 1rem;
    font-size: large;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    text-decoration: none;
    text-align: center;
    max-width: fit-content;
}

.header-button:hover {
    transform: scale(1.1);
    background-color: #2563eb;
}

.login-button {
    background-color: #9333ea;
    justify-self: end;
}

.login-button:hover {
    background-color: #7e22ce;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.logo {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    animation: glow 2.5s infinite alternate;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-wrapper {
    position: relative;
    width: 50%;
    aspect-ratio: 16 / 9;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel-image {
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.current-image {
    transition: all 0.7s ease-in-out;
    width: 90%;
    height: auto;
    transform: scale(1.1);
    z-index: 10;
    opacity: 0;
}

.side-image {
    transition: all 0.7s ease-in-out;
    width: 50%;
    height: auto;
    opacity: 0;
}

footer {
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.01), #361a85);
  color: white;
  text-align: center;
  margin-top: 25px;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  left: 0;
}

@media (min-width: 768px){
    @keyframes glow {
        from {
            text-shadow: 0 0 10px rgb(184, 98, 255), 0 0 20px rgb(115, 12, 199), 0 0 30px rgb(74, 14, 187), 0 0 40px rgb(184, 98, 255), 0 0 50px rgb(74, 14, 187), 0 0 60px rgb(45, 5, 190), 0 0 70px rgb(184, 98, 255);
        }
        to {
            text-shadow: 0 0 20px rgb(115, 12, 199), 0 0 30px rgb(74, 14, 187), 0 0 40px rgb(45, 5, 190), 0 0 50px rgb(115, 12, 199), 0 0 60px rgb(45, 5, 190), 0 0 70px rgb(184, 98, 255), 0 0 80px rgb(74, 14, 187);
        }
    }
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }

    .header-center {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .header-button:first-child {
        grid-row: 2;
        grid-column: 1;
        justify-self: center;
    }

    .login-button {
        grid-row: 2;
        grid-column: 2;
        justify-self: center;
    }

    .main-title {
        font-size: 2rem;
    }

    .carousel-wrapper {
        width: 90%;
    }

    .current-image {
        transition: all 0.7s ease-in-out;
        width: 90%;
        height: auto;
        transform: scale(1.1);
        z-index: 10;
        opacity: 0;
    }

    .side-image {
        transition: all 0.7s ease-in-out;
        width: 10%;
        height: auto;
        opacity: 0;
    }

    @keyframes glow {
        from {
            text-shadow: 0 0 5px rgb(184, 98, 255), 0 0 10px rgb(115, 12, 199), 0 0 15px rgb(74, 14, 187), 0 0 20px rgb(184, 98, 255), 0 0 25px rgb(74, 14, 187), 0 0 30px rgb(45, 5, 190), 0 0 35px rgb(184, 98, 255);
        }
        to {
            text-shadow: 0 0 10px rgb(115, 12, 199), 0 0 15px rgb(74, 14, 187), 0 0 20px rgb(45, 5, 190), 0 0 25px rgb(115, 12, 199), 0 0 30px rgb(45, 5, 190), 0 0 35px rgb(184, 98, 255), 0 0 40px rgb(74, 14, 187);
        }
    }

}