/* General Reset */
body {
    font-family: 'Audrey', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #fce6f2, #f7e4d6);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@font-face {
    font-family: 'Audrey';
    src: url('fonts/Audrey-BoldOblique.woff2') format('woff2'),
         url('fonts/Audrey-BoldOblique.woff') format('woff'),
         url('fonts/Audrey-BoldOblique.ttf') format('truetype');
    font-weight: normal;
    font-style: oblique;
}

/* Header */
.site-header {
    text-align: center;
    padding: 20px;
    background-color: #ff6699;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Portal Container */
.portal-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

/* Portals */
.portal {
    position: relative;
    overflow: hidden;
    border: 4px solid pink;
    width: 250px;
    height: 450px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--portal-color, #333);
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.portal a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10; /* Ensures link sits on top */
    text-decoration: none;
    color: inherit;
}

.portal:hover {
    transform: scale(1.05); /* Zoom the portal */
    border-color: var(--portal-hover-color, pink);
}

/* Image Zoom */
.portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.5s ease-in-out;
    z-index: 0;
}

.portal:hover::before {
    transform: scale(1.2); /* Smooth zoom effect for the image */
}

/* Glare PNG */
.glare {
    position: absolute;
    width: 150%;
    height: 50%;
    background: url('images/your-glare.png') center center / cover no-repeat;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.6s ease-in-out;
}

.glare-top {
    top: -20%;
    left: -20%;
}

.glare-bottom {
    bottom: -20%;
    left: -20%;
}

.portal:hover .glare-top {
    transform: translateX(150%); /* Slide glare out to the right */
}

.portal:hover .glare-bottom {
    transform: translateX(-150%); /* Slide glare out to the left */
}

/* Text Styling (Stationary Text) */
.portal h3, .portal p {
    position: absolute;
    margin: 0;
    width: 100%;
    font-family: 'Audrey', sans-serif;
    font-size: 1.4rem;
    color: var(--portal-color);
    text-shadow: 1px 1px 3px black;
    z-index: 3; /* Keep text above other elements */
    transform: none; /* Ensure no hover movement */
    transition: none; /* Remove hover transitions */
}

.portal h3 {
    top: 10px;
}

.portal p {
    bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, #845f8b, #ff6699);
    color: white;
    margin-top: auto;
}
