/* ===============================
   General page styles
================================ */

body {
    margin: 0;
    padding: 0;
    font-family: 'NewOne', sans-serif;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

/* ===============================
   Background image
================================ */

/*.background-image {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background-image: url('montrealmap-compressed.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 2s forwards;
    z-index: -1;
    pointer-events: none;
}
*/
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.6; }
}

/* ===============================
   Navbar
================================ */

.navbar {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 90px;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 10;
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 0;
}

.nav-item {
    width: 100%;
    padding: 5px 0;
    color: #333;
    text-align: center;
    text-decoration: none;
    font-family: 'NewOne';
    font-size: 45px;
    transition: background-color 0.3s, color 0.3s;
    background-color: transparent;
}

.nav-item:hover {
    background-color: rgba(200, 200, 200, 0.3);
    color: #000;
}

.nav-item.active {
    color: #d9534f;
    background-color: transparent;
}

/* ===============================
   Responsive navbar
================================ */

@media (max-width: 600px) {
    .navbar {
        width: 70px;
        padding: 15px 0;
    }

    .nav-item {
        padding: 10px 0;
        font-size: 30px;
    }
}

@media (max-width: 400px) {
    .navbar {
        width: 60px;
        padding: 10px 0;
    }

    .nav-item {
        padding: 8px 0;
        font-size: 20px;
    }
}

/* ===============================
   Panel container
================================ */

.panel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 1000;
    opacity: 0;
    background-color: white;
    height: 55vh;
    width: 60vw;
    box-sizing: border-box;
    transition: opacity 0.5s, height 0.5s, top 0.5s;
    padding: 20px;
}

/* ===============================
   Panel content
================================ */

.panel-title {
    font-size: 6em;
    text-align: center;
    margin-bottom: .3em;
    opacity: 0;
    z-index: 1002;
    transition: opacity 0.5s;
}

.panel-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    width: 100%;
    padding: 0 30px;
    transition: overflow 0.5s;
}

.panel-text {
    font-size: 4em;
    text-align: justify;
    padding: 30px 0;
    margin: 0;
    opacity: 0;
    margin-top: .2em;
    z-index: 1002;
    transition: opacity 0.5s;
}

.additional-content {
    font-size: 1.2em;
    text-align: justify;
    margin-top: 1em;
    opacity: 0;
    z-index: 1002;
    transition: opacity 0.5s;
}

/* ===============================
   Arrow container
================================ */

.arrow-container{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px); /* responsive gap like your screenshot */
  margin-top: 2em;
  opacity: 0;
  z-index: 1002;
}

.left-arrow,
.right-arrow{
  height: 20px !important;
  width: auto !important;
  flex: 0 0 auto !important;
  display: block;
  object-fit: contain;
  cursor: pointer;
}



/* click animation */
.arrow-container img.clicked {
    animation: growShrink 0.2s ease-in-out;
}

@keyframes growShrink {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ===============================
   Back to map button
================================ */

.back-to-map {
    width: 18%;
    position: absolute;
    bottom: 6%;
    right: 10%;
    cursor: pointer;
    z-index: 1003;
    opacity: 0;
}

/* ===============================
   Responsive panel
================================ */

@media (max-width: 951px) {
    .panel-container {
        top: 60%;
        transform: translate(-50%, -60%);
        height: 50vh;
        width: 70vw;
        padding: 20px;
    }

    .panel-title {
        font-size: 4.5em;
        margin-bottom: 0.2em;
    }

    .panel-text {
        font-size: 3.5em;
        text-align: left;
        padding: 20px 0;
    }

    .additional-content {
        font-size: 1em;
        text-align: left;
        margin-top: 0.5em;
    }

    .arrow-container {
        margin-top: .2em;
        margin-bottom: .5em;
    }
}

@media (max-width: 576px) {
    .panel-container {
        top: 62%;
        transform: translate(-50%, -65%);
        height: 50vh;
        width: 80vw;
    }

    .panel-title {
        font-size: 4em;
        margin-bottom: 0.2em;
    }

    .panel-text {
        font-size: 3em;
    }

    .left-arrow,
    .right-arrow {
        height: 20px !important;
    }
}



/* ===============================
   Back to map animation
================================ */

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.fade-loop {
    animation: fadeInOut 2s infinite;
}
