/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: calc(100vh - 60px);
    position: relative;
}

/* Divider lines */
.grid-container::before,
.grid-container::after {
    content: "";
    position: absolute;
    background: white;
    z-index: 10;
}

/* Vertical line */
.grid-container::before {
    width: 3px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Horizontal line */
.grid-container::after {
    height: 3px;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Buttons (now links) */
.grid-btn {
    position: relative;
    text-decoration: none;
    overflow: hidden;
	padding: 20px;
	font-weight: bold;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
	
	text-shadow:
        /* outline */
        -1px -1px 0 #ff69b4,
         1px -1px 0 #ff69b4,
        -1px  1px 0 #ff69b4,
         1px  1px 0 #ff69b4,
		 
        0 0 6px #ffb6c1,
        0 0 12px #ffc0cb,
        0 0 18px #ff69b4,
        2px 2px 5px rgba(0,0,0,0.4);
}

/* Overlay */
.grid-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    transition: 0.3s;
}

/* Text */
.grid-btn span {
    position: relative;
    color: white;
    font-size: 2.2rem;
	transition: font-size 200ms, text-shadow 200ms;
    font-weight: bold;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid-btn:hover span {
	text-shadow:
        /* outline (cyan) */
        -1px -1px 0 cyan,
         1px -1px 0 cyan,
        -1px  1px 0 cyan,
         1px  1px 0 cyan,

        /* glow (cyan) */
        0 0 6px rgba(0, 255, 255, 0.9),
        0 0 14px rgba(0, 255, 255, 0.7),
        0 0 22px rgba(0, 255, 255, 0.5),

        /* depth (slightly softer so glow stands out) */
        1px 1px 3px rgba(0,0,0,0.4);
		
    font-size: 2.5rem;
}

/* Hover effect */
.grid-btn:hover::after {
    background: rgba(0,0,0,0.2);
}

/* Background images */
/* 1 → bottom left */
.btn1 {
    background-image: url("./assets/images/toopatiLogoTeaser.webp");
    justify-content: flex-end;
    align-items: flex-end;
}

/* 2 → top right */
.btn2 {
    background-image: url("./assets/images/art/vibing.webp");
    justify-content: flex-start;
    align-items: flex-end;
}

/* 3 → bottom left */
.btn3 {
    background-image: url("./assets/images/previewArt.gif");
    justify-content: flex-end;
    align-items: flex-start;
}

/* 4 → bottom right */
.btn4 {
    background-image: url("./assets/images/beastiary.png");
    justify-content: flex-start;
    align-items: flex-start;
}

/* ========================= */
/* 📱 Mobile Optimization */
/* ========================= */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: auto;
    }

    /* Remove divider lines on mobile */
    .grid-container::before,
    .grid-container::after {
        display: none;
    }

    .grid-btn {
        height: 25vh; /* each takes 1/4 screen height */
    }

    .grid-btn span {
        font-size: 1.5rem;
    }
}