*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-flow: row;
    width: 100%;
    background: #111;
}

@font-face {
    font-family: 'Across The Road';
    src: url('across-the-road.ttf');
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    color: #fff;
    margin: 0;
    font-family: 'Across The Road', sans-serif;
    font-size: clamp(40px, 4vw, 60px);
    font-weight: 300;
    line-height: 1;
}

/* PANEL */
.location {
    position: relative;
    flex: 1 1 33.333%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.location-malta    { background-image: url('malta_updated.jpg'); }
.location-valletta { background-image: url('valletta_latest.jpg'); }
.location-budapest { background-image: url('budapest.jpg'); }

/* DARK OVERLAY */
.location::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 38, 46, 0.5);
    z-index: 1;
}

/* FRAME: the thin outlined box. Content is laid out INSIDE it
   (title top, logo middle, buttons bottom) so nothing crosses the border. */
.frame {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
    min-height: 480px;
    padding: clamp(24px, 5vh, 56px) 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: border-color 0.5s;
}

.frame:hover {
    border-color: transparent;
}

/* CORNER ANIMATED BORDERS (now anchored to the frame, not the whole panel) */
.frame::before,
.frame::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    transform: scale(0);
    transition: transform 0.5s;
}

.frame::before {
    border-bottom: 3px solid #fff;
    border-left: 3px solid #fff;
    transform-origin: 0 100%;
}

.frame::after {
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform-origin: 100% 0;
}

.frame:hover::before,
.frame:hover::after {
    transform: scale(1);
}

/* LOGO sits in the vertical middle */
.logo {
    width: 100%;
    max-width: 420px;
    margin: auto 0;
}

/* BUTTONS */
.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.button,
.button-outline {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 10px 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    font-family: 'Noto Sans', sans-serif;
    cursor: pointer;
    border: 1px solid #fff;
    transition: background-color 0.25s, color 0.25s;
}

.button {
    background-color: #fff;
    color: #000;
}

.button:hover {
    background-color: transparent;
    color: #fff;
}

.button-outline {
    background-color: transparent;
    color: #fff;
}

.button-outline:hover {
    background-color: #fff;
    color: #000;
}

/* COMING SOON STYLE */
.coming-soon {
    margin-top: 40px;
    font-size: 32px;
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* TABLET / MOBILE: stack panels */
@media (max-width: 992px) {
    html,
    body {
        flex-flow: column;
    }

    .location {
        flex: none;
        min-height: 560px;
        padding: 24px 0;
    }

    .frame {
        width: 88%;
        height: auto;
        min-height: 480px;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .frame {
        border: 0;
    }

    .frame::before,
    .frame::after {
        display: none;
    }
}
