/* ------ FONTS ------- */
@import url('https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,100..900;1,100..900&display=swap');


/* ------ DEFAULT VARIABLES ------- */
:root {
    --primary-100: #0f212d;
    --primary-200: #142835;
    --primary-300: #132735;
    --primary-400: #0f212d;
    --primary-500: #0a1b25;
    --secondary-col: #ffd500;

    --font-col: white;

    --font-body: 'Saira', sans-serif;
}


/* ------ ALL STYLES ------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    list-style: none;
    border: none;
}


/* ------ BODY & HTML ------- */
body, html {
    background-color: var(--primary-100);
    color: var(--font-col);
    font-family: var(--font-body);
}


/* ------ NAV HEADER ------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    padding: 1rem 2rem;
    align-items: center;
    z-index: 9999;
}

header .title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}


/* ------ MAIN CONTAINER ------- */
main {
    display: flex;
    margin-top: 3rem;
}


/* ------ MAP GRID ------- */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 1rem;
    padding: 1rem;
    width: 100%;
}

.map-grid .card {
    position: relative;
    background: var(--primary-500);
    display: flex;
    border: 3px solid var(--primary-500);
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease-in-out;
    aspect-ratio: 3 / 4.5;
    overflow: hidden;
    text-decoration: none;
    user-select: none;
}

.map-grid .card img {
    width: 100%;
    aspect-ratio: 3 / 3.7;
    object-fit: cover;
    -webkit-user-drag: none;
    z-index: 5;
}

.map-grid .card h3 {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--secondary-col);
    text-transform: uppercase;
    padding: 1rem;
    margin-top: 5px;
    margin-bottom: 3px;
    width: 99%;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    background:
        linear-gradient(to right, var(--secondary-col), transparent) top left / 10px 1px no-repeat,
        linear-gradient(to bottom, var(--secondary-col), transparent) top left / 1px 10px no-repeat,
        linear-gradient(to left, var(--secondary-col), transparent) top right / 10px 1px no-repeat,
        linear-gradient(to bottom, var(--secondary-col), transparent) top right / 1px 10px no-repeat,
        linear-gradient(to right, var(--secondary-col), transparent) bottom left / 10px 1px no-repeat,
        linear-gradient(to top, var(--secondary-col), transparent) bottom left / 1px 10px no-repeat,
        linear-gradient(to left, var(--secondary-col), transparent) bottom right / 10px 1px no-repeat,
        linear-gradient(to top, var(--secondary-col), transparent) bottom right / 1px 10px no-repeat;
}

.map-grid .card .coming-soon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

.map-grid .card:hover {
    border-color: var(--secondary-col);
}
