﻿:root {
    --scale-factor: 1.5;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    font-size: calc(1em * var(--scale-factor));
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 20vw);
    gap: 2vw;
    position: relative;
    z-index: 1;
}

.grid-item {
    background: #8fbcd4;
    border-radius: 1em;
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center top;
}

.pin-dt {
    position: absolute;
    width: 10vw;
    height: 10vw;
    border-radius: 50%;
    background-image: url('/Images/TwoBob/TwoBobLogoTransparant307x307.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 1em rgba(0,0,0,0.3);
}

.pin {
    position: absolute;
    width: 10vw;
    height: 10vw;
    border-radius: 50%;
    background-image: url('/Images/TwoBob/TwoBobLogoTransparant307x307.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 1em rgba(0,0,0,0.3);
}
@media (max-width: 600px) {
    .grid-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .grid-item {
        position: relative; /* 👈 Needed for absolute pin positioning */
        width: 90vw;
        aspect-ratio: 3 / 2;
    }

    .pin {
        display: block;
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 3rem;
        height: 3rem;
        transform: none;
    }
    .pin-dt {
        display: none;
    }
}

@media (min-width: 601px) {
    .pin-dt {
        display: block;
    }
    .pin {
        display: none;
    }

}

.tile {
    cursor: pointer;
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}