body {
    margin: 0;
    height: 100vh;
    background-image: url('../../assets/images-UBNHS/BG5-Blurred.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #DAD2D8;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.box {
    background-color: rgba(218, 210, 216, 0.6);
    padding: 75px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 150px;
    position: relative;
}

/* Unified Button Design with Flash Glow */
button,
.student-button,
.admin-button {
    display: block;
    width: 150px;
    padding: 15px;
    margin: 10px auto;
    font-size: 16px;
    border: 2px solid #c1e9f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #143642;
    color: #c1e9f8;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(20, 54, 66, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glow Pulse Effect */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(120, 195, 222, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 40px rgba(120, 195, 222, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(120, 195, 222, 0.6);
    }
}

button:hover,
.student-button:hover,
.admin-button:hover {
    background-color: #78c3de;
    color: #143642;
    transform: translateY(-2px);
    animation: pulse-glow 1s infinite;
}

button:active,
.student-button:active,
.admin-button:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(20, 54, 66, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Flash Effect Overlay */
button::before,
.student-button::before,
.admin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

button:hover::before,
.student-button:hover::before,
.admin-button:hover::before {
    left: 100%;
}

.image-container-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1a1a26d;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.image-container1 {
    text-align: center;
    flex: 1;
}

.image-container1 img {
    width: 18vw;
    max-width: 260px;
    height: auto;
}

.image-container2,
.image-container3 {
    flex-basis: 80px;
    text-align: center;
}

.image-container2 img,
.image-container3 img {
    width: 90px;
    height: auto;
}

.tagline {
    text-align: center;
    font-style: italic;
    font-size: 14px;
    color: #143642;
    margin-top: 5px;
}

.message-container {
    text-align: center;
    margin-bottom: 20px;
    display: inline-block;
    white-space: nowrap;
}

.welcome-message {
    font-size: 47px;
    color: #800000;
    font-weight: bold;
    margin-bottom: 0px;
    vertical-align: middle;
}

.destination-message {
    font-size: 16px;
    color: #800000;
    font-weight: normal;
    margin-top: 12px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .box {
        padding: 40px 20px;
        width: 250px;
        height: auto;
    }

    .main-content {
        padding: 15px;
    }

    .image-container-wrapper {
        padding: 10px 15px;
        gap: 8px;
        min-height: auto;
        flex-direction: row;
        justify-content: space-between;
    }

    .image-container1 img {
        width: 140px;
    }

    .image-container2 img,
    .image-container3 img {
        width: 80px;
    }

    .welcome-message {
        font-size: 24px;
    }

    .destination-message {
        font-size: 13px;
    }

    .tagline {
        font-size: 12px;
    }

    button,
    .student-button,
    .admin-button {
        font-size: 14px;
        padding: 12px;
        width: 130px;
    }
}

@media screen and (max-width: 480px) {
    .box {
        padding: 30px 15px;
        width: 200px;
        min-height: 120px;
    }

    .main-content {
        padding: 10px;
    }

    .image-container-wrapper {
        padding: 10px 15px;
        gap: 8px;
        min-height: auto;
        flex-direction: row;
        justify-content: space-between;
    }

    .image-container1 img {
        width: 120px;
    }

    .image-container2 img,
    .image-container3 img {
        width: 60px;
    }

    .welcome-message {
        font-size: 20px;
    }

    .destination-message {
        font-size: 12px;
    }

    .tagline {
        font-size: 11px;
    }

    button,
    .student-button,
    .admin-button {
        font-size: 13px;
        padding: 10px;
        width: 120px;
    }
}

@media screen and (max-width: 320px) {
    .box {
        padding: 20px 20px;
        width: 180px;
        min-height: 100px;
    }

    .image-container-wrapper {
        padding: 8px 10px;
        gap: 5px;
        min-height: auto;
        flex-direction: row;
        justify-content: space-between;
    }

    .image-container1 {
        text-align: right;
        flex: 1;
    }

    .image-container1 img {
        width: 100px;
    }

    .image-container2 {
        display: none;
    }

    .image-container3 {
        text-align: left;
        flex: 1;
    }

    .image-container3 img {
        width: 50px;
    }

    .welcome-message {
        font-size: 18px;
    }

    .destination-message {
        font-size: 11px;
    }

    .tagline {
        display: none;
    }

    button,
    .student-button,
    .admin-button {
        font-size: 12px;
        padding: 8px;
        width: 100px;
    }
}

