/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-bottom: 100px;
}

h1 {
    font-size: 6rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    letter-spacing: -2px;
    text-shadow: -200px 0px 1px #ff0000, 200px 0px 1px #ff0000;
    text-transform: uppercase;
    background-color: #f4f4f4; 
    width: 100%;
    display: block;
    z-index: 1; 
    padding: 20px; 
}

.image-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0; 
}

.title-overlay {
    display: block;
    background-color: white;
    color: black;
    font-size: 6rem; 
    text-align: center;
    font-weight: bold;
    padding: 20px 40px; 
    letter-spacing: -2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    border-bottom: 2px solid black; 
}

.image-container .image {
    height: 0; 
    overflow: hidden;
    transition: height 0.5s ease-in-out;
}

.image-container .image-background {
    background-color: #ff0101;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.image-container img {
    width: 100%;
    height: auto; 
    max-height: 100vh; 
    object-fit: contain; 
    display: block;
}

.image-container input[type="checkbox"] {
    display: none; 
}

.image-container input[type="checkbox"]:checked + label + .image {
    height: 100vh;
}

.title-overlay::before {
    content: attr(data-hover);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: red;
    font-size: 6rem;
    font-weight: bold;
    letter-spacing: -2px;
    text-align: center;
    z-index: -1; 
    opacity: 0; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.title-overlay:nth-of-type(1):hover::before {
    opacity: 1;
    transform: translate(10px, -10px);
}

.title-overlay:nth-of-type(1):hover::after {
    content: attr(data-hover);
    position: absolute;
    top: 20px;
    left: 20px;
    color: red;
    font-size: 6rem;
    font-weight: bold;
    letter-spacing: -2px;
    text-align: center;
    z-index: -1;
    opacity: 1;
    transform: translate(-10px, 10px);
}

.title-overlay:nth-of-type(2):hover::before {
    opacity: 1;
    transform: translate(-40px, 10px);
}

.title-overlay:nth-of-type(2):hover::after {
    content: attr(data-hover);
    position: absolute;
    top: 10px;
    left: -20px;
    color: red;
    font-size: 6rem;
    font-weight: bold;
    letter-spacing: -2px;
    text-align: center;
    z-index: -1;
    opacity: 1;
    transform: translate(20px, -20px);
}

.title-overlay:nth-of-type(3):hover::before {
    opacity: 1;
    transform: translate(15px, 20px);
}

.title-overlay:nth-of-type(3):hover::after {
    content: attr(data-hover);
    position: absolute;
    top: -30px;
    right: -30px;
    color: red;
    font-size: 6rem;
    font-weight: bold;
    letter-spacing: -2px;
    text-align: center;
    z-index: -1;
    opacity: 1;
    transform: translate(-30px, 30px);
}

.title-overlay:nth-of-type(4):hover::before {
    opacity: 1;
    transform: translate(-20px, -20px);
}

.title-overlay:nth-of-type(4):hover::after {
    content: attr(data-hover);
    position: absolute;
    top: -10px;
    left: 40px;
    color: red;
    font-size: 6rem;
    font-weight: bold;
    letter-spacing: -2px;
    text-align: center;
    z-index: -1;
    opacity: 1;
    transform: translate(30px, 30px);
}


.title-overlay:hover::before {
    opacity: 1;
}
