/* ==================================================
   Reu's Website Styles (The Paint!)
================================================== */

/* We reset some basic things so it looks exactly how we want */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* The main background */
body {
    background-color: black;
    color: white;
    /* Default text color */
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    /* A fun, comic-ey font */
    overflow-x: hidden;
    /* Stop things from scrolling sideways */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================================================
   Header (Title and Link)
================================================== */
.header {
    display: flex;
    justify-content: center;
    /* Center everything together! */
    gap: 40px;
    /* Space between title, button, and icon */
    align-items: center;
    padding: 20px 40px;
    position: relative;
    /* So it sits above lasers */
    z-index: 10;
}

.main-title {
    color: red;
    font-size: 3rem;
    text-align: center;
    /* We removed flex-grow so the title stays close to your button! */
}

.thingiverse-link {
    color: red;
    text-decoration: none;
    transition: transform 0.2s;
    /* Makes the icon bounce slightly on hover! */
    display: flex;
    align-items: center;
}

.thingiverse-link:hover {
    transform: scale(1.1);
    /* Slightly enlarge the icon when hovered */
}

/* ==================================================
   Main Content Area
================================================== */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    gap: 40px;
    /* Space between the button and the comic */
    position: relative;
    z-index: 10;
}

/* ==================================================
   Party Mode Button
================================================== */
.party-button {
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    /* Makes it a circle! */
    width: 90px;
    height: 90px;
    font-size: 1.2rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    /* A cool glowing shadow */
    transition: transform 0.1s, box-shadow 0.2s;
}

/* When somebody hovers their mouse over the button */
.party-button:hover {
    transform: scale(1.1);
    /* Make it 10% bigger */
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
}

/* When somebody clicks the button down */
.party-button:active {
    transform: scale(0.95);
}

/* ==================================================
   The Comic Image
================================================== */
.comic-container {
    max-width: 800px;
    width: 100%;
}

#comic-img {
    width: 100%;
    /* Keep the aspect ratio */
    height: auto;
    border: 5px solid white;
    /* A slight frame, remove if you want! */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ==================================================
   Lasers Effects!
================================================== */
#laser-container {
    position: fixed;
    /* Stays in place even if you scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* So you can still click the button behind the lasers */
    z-index: 1;
    /* Behind the other stuff */
}

.laser {
    position: absolute;
    width: 8px;
    /* Thickness of laser */
    height: 100px;
    /* Length of laser */
    border-radius: 4px;
    /* The animation that makes it fall */
    animation: fall 1.5s linear infinite;
}

/* Keyframes describe the animation from start (0%) to end (100%) */
@keyframes fall {
    0% {
        transform: translateY(-200px);
        /* Start above the screen */
    }

    100% {
        transform: translateY(120vh);
        /* End below the screen */
    }
}

/* ==================================================
   Corner Decorations!
================================================== */
.corner-decoration {
    position: fixed;
    /* 'fixed' keeps it exactly in the corner even if you scroll! */
    width: 200px;
    /* You can change this number to make it bigger or smaller! */
    z-index: 0;
    /* Keeps it behind the main important stuff */
    pointer-events: none;
    /* Lets you click 'through' the image */
}

.top-left {
    top: -20px;
    left: -20px;
    transform: rotate(90deg);
}

.top-right {
    top: -20px;
    right: -20px;
    transform: rotate(180deg);
}

.bottom-left {
    bottom: -20px;
    left: -20px;
    transform: rotate(0deg);
}

.bottom-right {
    bottom: -20px;
    right: -20px;
    transform: rotate(270deg);
}

/* ==================================================
   Making it work on Phones (Responsive!)
================================================== */
@media (max-width: 800px) {

    /* If the screen is smaller than 800px wide (like a phone or small tablet) */
    .header {
        flex-direction: column;
        /* Stack the title and link on top of each other */
        text-align: center;
        gap: 15px;
    }

    .main-title {
        font-size: 2rem;
    }

    .content {
        flex-direction: column-reverse;
        /* Put the button UNDER the comic */
        gap: 20px;
    }

    .party-button {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }
}