@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    background-color: #fff;
    overflow: hidden;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 95vh;
    transition: transform 0.5s;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    text-align: center;
    
    transition: opacity 0.5s, transform 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100vh);
}

.active {
    opacity: 1;
    transform: translateY(0);
}

.passed {
    opacity: 0;
    transform: translateY(-100vh);
}

h2 {
    font-size: 24px;
    margin-bottom: 0.5em;
}

@media screen and (min-width: 769px) {
    .left h2 {
        padding-right: 2em;
    }
}
h3 {
    margin-bottom: 3px;
}
img {
    width: 80%;
    height: 80%;
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
}
p {
    font-size: 16px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.bold {
    font-weight: bolder;
}

.tiny {
    font-size:10px;
}
.column {
    float: left;
    width: 16em;
}
.left {
    text-align: center; 
}
.right {
    text-align: left;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

footer{
    text-align: center;
    opacity: 50%;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 0;
    z-index: 10;
}

image-gallery {
    position: relative;
    height: 280px;
    width: 100%;
    max-width: 240px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    position: relative;
    height: 280px;
    width: 200px;
    perspective: 1000px;
    overflow: hidden;
}

.gallery-item {
    position: absolute;
    width: 100%;
    height: 160px;
    transition: all 0.5s ease;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    top: 50%;
    transform-origin: center center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item.center {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    z-index: 3;
}

.gallery-item.top {
    transform: translateY(-130%) scale(0.8);
    opacity: 0.6;
    z-index: 2;
}

.gallery-item.bottom {
    transform: translateY(30%) scale(0.8);
    opacity: 0.6;
    z-index: 2;
}

.gallery-item.hidden {
    transform: translateY(-210%) scale(0.6);
    opacity: 0;
    z-index: 1;
}

.gallery-item.hidden-bottom {
    transform: translateY(110%) scale(0.6);
    opacity: 0;
    z-index: 1;
}

.image-caption {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item.center .image-caption {
    opacity: 1;
}

.gallery-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gallery-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.gallery-btn:hover {
    background: #555;
}

/* Mobile responsiveness  */
@media screen and (max-width: 768px) {
    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 10px; 
        box-sizing: border-box;
    }
    
    .column {
        float: none;
        width: 100%;
        max-width: 400px;
        margin-bottom: 8px; 
    }
    
    .left, .right {
        text-align: center;
    }
    
    
    h2 {
        font-size: 20px; 
        margin-bottom: 0.2em;  
        margin-top: 0.2em;     }
    
    h3 {
        margin-bottom: 1px; 
        margin-top: 5px; 
        font-size: 16px; 
    }
    
    p {
        font-size: 14px; 
        margin-top: 0px; 
        margin-bottom: 0px; 
        line-height: 1.2; 
    }
    
    .image-gallery {
        height: 140px; 
        width: 100%;
        max-width: 100%; 
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 5px; 
        margin-top: 5px; 
    }
    
    .gallery-container {
        width: 360px; 
        height: 125px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-item {
        height: 100px; 
        width: 85px; 
        left: 50%;
        top: 50%;
        transform-origin: center center;
    }
    
    .gallery-item.center {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        z-index: 3;
    }
    
    .gallery-item.top {
        transform: translate(-150%, -50%) scale(0.8);
        opacity: 0.6;
        z-index: 2;
    }

    .gallery-item.bottom {
        transform: translate(50%, -50%) scale(0.8);
        opacity: 0.6;
        z-index: 2;
    }
    
    .gallery-item.hidden {
        transform: translate(-250%, -50%) scale(0.6);
        opacity: 0;
        z-index: 1;
    }

    .gallery-item.hidden-bottom {
        transform: translate(150%, -50%) scale(0.6);
        opacity: 0;
        z-index: 1;
    }
}

/* Mobile Navigation Hints */
@media screen and (max-width: 768px) {
    .slide {
        height: calc(100vh - 60px); 
        top: 0;
    }
    .nav-hint {
        position: fixed;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: #333;
        z-index: 100;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-hint.visible {
        opacity: 1;
    }
    
    .nav-hint-down {
        bottom: 80px;
        right: 20px;
        flex-direction: row;
        animation: bounceDown 2s infinite;
    }
    
    .nav-hint-up {
        top: 20px;
        left: 20px;
        flex-direction: row;
        animation: bounceUp 2s infinite;
    }
    
    .arrow-icon {
        font-size: 24px;
    }
    
    @keyframes bounceDown {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(10px);
        }
    }
    
    @keyframes bounceUp {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border: 2px solid #333;
    background-color: #fff;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 500;
}

input[type="email"],
textarea {
    padding: 0.75rem;
    border: 2px solid #333;
    background-color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

input[type="email"]:focus,
textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    padding: 0.75rem 1.5rem;
    border: 2px solid #333;
    background-color: #fff;
    color: #333;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background-color: #333;
    color: #fff;
}

button[type="submit"]:active {
    transform: scale(0.98);
}