/* General Reset */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: Trebuchet,'Trebuchet MS', sans-serif;
    /* Prevent horizontal scrolling */
}

/* Ocean Wave Background */
body {
    background: linear-gradient(to bottom, #87CEEB, #1E90FF);
    position: relative;
}

/* Header Styling */
header {
    padding-top: 15px;
    position: relative;
    text-align: center;
    z-index: 10;
    color: white;
    height: 50vh;
    /* Set the header height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* World of Chap Logo Styling */
.world-of-chap-logo-container {
    padding-top: 30px; /* Adjust padding to prevent overflow */
    padding-bottom: 35px; /* Adjust padding to prevent overflow */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101; /* Ensure it's above other elements */
    width: 100%;
    max-width: 500px; /* Prevent the logo from being too large */
    height: 115%; /* Ensure height adjusts dynamically */
    opacity: 0.9; /* Slightly increase opacity for better visibility */
    overflow: visible; /* Prevent any clipping */
}

.world-of-chap-logo {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensure the logo scales properly */
    max-height: 100%; /* Prevent the logo from overflowing vertically */
}

/* Header Text */
header h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 48px;
    margin: 0;
    z-index: 10;
    position: relative;
}

/* Waves */
.waves {
    position: fixed;
    /* Fix the waves to the bottom of the screen */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    /* Take up 50% of the screen height */
    z-index: 1;
}

.waves use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.waves use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.waves use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.waves use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.waves use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    position: relative;
    margin-top: 25px;
    padding-bottom: 50px;
    /* Add space at the bottom for better scrolling */
}

/* Button Styling */
.button {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    background: #1E90FF;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.button:hover {
    background: #4682B4;
}

/* Lightning Bolt Effect */
.button::before,
.button::after {
    content: '';
    position: absolute;
    width: 100%;
    /* Extend the lightning bolt across the entire button */
    height: 100%;
    background: white;
    /* Set the lightning bolt color to white */
    transform: skewX(-45deg) translateX(-100%);
    /* Start off-screen */
    transition: transform 0.3s ease;
    opacity: 0.5;
    /* Add a slight transparency */
}

.button::before {
    left: 0;
    top: 0;
}

.button::after {
    right: 0;
    top: 0;
    transform: skewX(45deg) translateX(100%);
    /* Start off-screen */
}

.button:hover::before {
    transform: skewX(-45deg) translateX(100%);
    /* Move across the button */
    opacity: 1;
}

.button:hover::after {
    transform: skewX(45deg) translateX(-100%);
    /* Move across the button */
    opacity: 1;
}

/* Lightning Effect */
.button {
    position: relative;
    overflow: hidden;
}

.lightning {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    transform: skewX(-45deg) translateX(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

.lightning.right {
    transform: skewX(45deg) translateX(100%);
}

.lightning.active {
    opacity: 0.5;
    transform: skewX(-45deg) translateX(100%);
}

.lightning.right.active {
    transform: skewX(45deg) translateX(-100%);
}

/* Icon Styling */
.icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Shrinking for mobile */
@media (max-width: 768px) {
    .waves {
        height: 50vh;
        /* Ensure the waves still take up 50% of the screen height */
    }

    h1 {
        font-size: 24px;
    }
}

h3 {
    color: white
}