@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --dark-gray: #212121;
    --pale-yelow: rgb(255, 255, 133);
}

body {
    background-color: #1b1b1b;
    background-image: url(../img/piano-action-closeup.jpg);
    background-size: cover;
    backdrop-filter: blur(12px);
    background-blend-mode: overlay;
    background-attachment: fixed;
}

.guestbook-image {
    border-radius: 25px;
    box-shadow: 8px 8px 20px 0px black;
    outline: 1px solid black;

    max-height: 100%;
}

.guestbook-image-holder {
    transition: transform 4s ease-in-out, opacity 0.5s ease-in-out;
    z-index: 2;
    opacity: 0;
    height: 60%
}

.zoom-in {
    transform: scale(1.05);
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1 !important;
}

.image-data {
    position: relative;
    padding-block: 20px;
    top: -60px;
    background: #15151585;
    border-radius: 20px;
    overflow-x: hidden;
}

.background-text {
    position: absolute;
    width: 100%;
    display: flex;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    color: var(--pale-yelow);
}

.background-subtext {
    font-weight: 300;
    font-size: 2rem;
}

#stop-animation {
    position: absolute;
    top: 90%;
    right: 5%;
    z-index: 100;
    border-radius: 14px;
    width: unset;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}

.intro-transition{
    transition: opacity 0.9s ease-in-out;
    opacity: 0;
}

.intro-image{
    width: 400px;
    transition: width 0.9s ease-in-out, transform 0.9s, opacity 0.9s ease-in-out;
    transform: translate(0px, -50px);
    margin-top: 10px;
}

.intro-image-transformed{
    transform: translate(0px, 0px);
    width: 140px;
    
}

.intro-text {
    margin-top: 10%
}

.intro-title{
    letter-spacing: 3px;
    font-size: 4rem;
    font-weight: 300;
}

.intro-subtitle {
    font-weight: 100;
}

#map{
    height: 60vh;
    z-index: 10;
    position: relative;
    width: 60%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.map-popup{
    transform: unset !important;
    position: absolute;
    top: 0;
    background: #0000009c;
    padding: 10px;
    border-radius: 10px;
    max-width: 600px !important;
    width: 90% !important;
    left: -50%;
}

.map-popup-location{

}

.map-popup-name{
    color: var(--pale-yelow);
    font-size: 1.5rem;
}

.map-popup-message{
    padding-block: 20px;
}

.map-holder{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80vh;
    flex-wrap: wrap;
}

.mapboxgl-popup-content{

}

.instructions{
    font-size: 0.75em;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructions i{
    margin-inline: 10px;
}

.mapboxgl-control-container{
    display: none;
}

.guestbook-card{
    background: rgba(126, 126, 126, 0.405);
    width: 95%;
    /* margin-right: 6%; */
    padding: 5px;
    border-radius: 35px;
    box-shadow: 10px 9px 11px black;
    margin-top: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    margin-block: 20px;
    justify-content: space-between;
}

.guestbook-card-column{
    width: 32%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: 80vh;
}

.all-view-holder{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.guestbook-img-card-column{
    grid-template-rows: 1fr !important;
}

.guestbook-card-slide{
    transition: transform 0.2s ease-in-out;
}

.card-swiped-right{
    transform: translate(1700px, 10px);
    
}

.card-swiped-left{
    transform: translate(-2000px,0px);
}

.guestbook-card-title{
    font-size: 1.75em;
    background: #ffffff2b;
    width: 97%;
    border-radius: 25px;
    box-shadow: inset 1px 1px 5px black;
    padding-block: 5px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-inline: 21px;
}

.guestbook-card-image{
    max-width: 90%;
    width: 90%;
    height: 40vh;
    object-fit: cover;
    object-position: center center;
    border-radius: 25px;
    transition: opacity 1s ease-in-out;
    margin-block: 15px;
}

.support-mile{
    color: var(--pale-yelow);
    font-size: 1.2em;
    margin-right: 15px;
    outline: 1px solid;
    border-radius: 10px;
}

.support-mile a{
    padding-block: 5px;
    padding-inline: 15px;
}

.support-mile a:hover{
    background-color: var(--pale-yelow);
    color: var(--dark-gray) !important;
    box-shadow: unset;
}

.guestbook-image-slim{
    width: 70%;
    object-position: center 40%;
}

.guestbook-number{
    position: absolute;
    margin-left: 17%;
    font-size: 0.75rem;
    margin-top: -27px;
}

.greetings{
    font-size: 0.66rem;
    position: relative;
    /* margin-top: -77px; */
    margin-left: 28px;
    top: -121%;
    height: 0px;
    left: -43%;
    display: none;
}

.guestbook-location{
    margin-block: 5px;
}

.guestbook-message{
    background: #ffffff2b;
    width: 97%;
    border-radius: 25px;
    box-shadow: inset 1px 1px 5px black;
    padding-block: 15px;

    margin-bottom: 5px;
    padding-inline: 30px;
    max-height: 150px;
    overflow-y: auto;
    
}

.guestbook-message::-webkit-scrollbar {
    width: 0px; /* Adjust width */
    background-color: #f0f0f0; /* Track background color */
  }

.guestbook-time{
    font-size: 0.8rem;
    position: absolute;
    margin-left: 19%;
    margin-top: 16px;
}

#add-card-button, #add-img-card-button{
    position: relative;
    z-index: 100;
}

.mapboxgl-popup-close-button{
    background-color: var(--pale-yelow);
    position: absolute;
    top: -30px;
    right: 0;
    padding: unset;
    border-radius: 5px;
    margin: 5px;
}

.secondary-nav{
    background-color: #2d2d2d;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: sticky;
    top: 65px;
    z-index: 20;
    box-shadow: 0px 1px 20px #000000ba;
    align-items: center;
    font-size: 1.2em;
    height: 40px;
}

/* these are the map view / all view buttons */
.secondary-nav button{
    width: 10%;
    margin-inline: 5px;
    border-radius: 5px;
    padding-block: 5px;
    background: unset;
    color: var(--pale-yelow);
    justify-content: center;
}

#secondary-nav-action-buttons{
    display: flex;
}

#searchbox{
    margin-inline: 20px;
    border-radius: 5px;
}

/* these are the buttons that help navigate the stack of entries */
.secondary-nav-navigation-button {
    width: 5% !important;
}

.secondary-nav-spacer{
    margin-inline: 10px;
}

.secondary-nav i{
    margin-inline: 5px;
}

.hide-image{
    display: none;
}

.hide{
    display: none !important;
}

@media screen and (max-width:500px) {
    .background-subtext {
        font-size: 1.5rem;
        margin-top: 2%;
    }

    .intro-title{
        font-size: 2rem;
    }

    #map{
        width: 100%;
        height: 80vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .map-popup{
        left: 3%;
        top: 50%;        
    }

    .secondary-nav button{
        width: 20%;
    }

    .secondary-nav{
        
    }

    .all-view-holder{
        flex-direction: column;
    }

    .guestbook-card-column{
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: space-evenly;
        height: fit-content;
    }

    .guestbook-card{
        min-height: 150px;
    }

    .guestbook-number{
        margin-left: 40%;
    }

    .support-mile{
        font-size: 0.66em;
        margin-right: 15px;
    }

    .support-mile a{
        padding-inline: 7px;
        padding-block: 15px
    }

    .header-text{
        display: none;
    }
    
    #secondary-nav-action-buttons{
        justify-content: flex-end;
    }
}