body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: rgb(240, 237, 237);
}


.panel {
    height: 100vh;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index:0;
    pointer-events:none;
}

.panel h1 {
    font-size: 8vw;
    position: relative;
    margin: 0;
    padding: 0 20px;
    z-index: 1;
    line-height: 1.1;
    color:beige;

}


.about p {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    
}

#main-title {
    background-image: url("../img/Ireland.jpg");
}
    

#qr {
    background-image: url("../img/tablet.jpeg");
}

#tour {
    background-image: url("../img/talbotst.jpeg");
}

#psyche {
    background-image: url("../img/mentalhealthireland.JPG");
}


.panel .content {
    display: flex;
    flex-direction: column;  
    align-items: center;     
    text-align: center;   
    z-index: 1;  

        
}


.text-box {
    margin-top: 20px;               
    padding: 20px 30px;
    max-width: 800px;
    background-color: rgba(85, 85, 107, 0.85); 
    color: #f5f1f1;
    border: 2px solid #272525;
    border-radius: 10px;
    font-size: 1.2rem;
}


.text {

    padding: 20px 30px;
    max-width: 800px;
    background-color: rgba(85, 85, 107, 0.85); 
    color: #f5f1f1;
    border: 2px solid #272525;
    border-radius: 10px;
    font-size: 1.2rem;
}


.about-photo img {
    max-width: 200px;      
    width: 100%;           
    border: 3px solid #fff; 
}

.about-photo {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #fff;    
    text-align:center;
    margin-top: 30px;
    text-align: center;
    z-index: 1;  
    padding:20px;
}

#about .content {
    display: flex;
    flex-direction: column;       
    align-items: center;   
    height: 100%;                
    text-align: center;   
    padding:20px;

                        
}


.panel.animate-on-scroll {
    transform: translateY(50px) scale(0.9);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Active state: slide up to original position and scale to 1 */
.panel.animate-on-scroll.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.extra-text {
    display: none; /* hidden by default */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    z-index: 2; /* make sure it’s above overlay if needed */
}
.extra-text.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    background-color: rgba(67, 64, 106, 0.85); 
    color: #f5f1f1;
    border: 2px solid #272525;
    margin-top: 10%;
    margin-left: 10%;
    margin-right: 10%;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    background-color: #180338;
    color: white;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin: 10px;
}
.footer i {
    margin-right: 8px;
    font-size: 1.6rem;  
    vertical-align: middle;
}