/* Import Jura Bold font */
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@700&display=swap');

/* General Styles */
body {
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 20px;
    text-align: center;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */
h1 {
    font-family: 'Jura', sans-serif;
    font-weight: 700; /* Ensure bold weight */
    font-size: 36px;
}

/* Ensure mobile responsiveness */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 16px;
}

/* Container Styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hide elements by default */
.hidden {
    display: none;
}

/* Tile Layout */
.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Tile Styles */
.tile {
    padding: 30px;
    background-color: #1A407D;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Tiles in 'Standort ändern' page - Now use the red button color */
#shareTiles .tile {
    background-color: #EC1D25;
}

#shareTiles .tile:hover {
    background-color: #c4151d;
}

/* Date inside tiles */
.tile small {
    font-size: 16px;
    font-weight: normal;
}

/* Tile hover effect */
.tile:hover {
    background-color: #163563;
    transform: scale(1.05);
}

/* Button Styles */
button {
    padding: 16px 28px; /* Increased padding */
    font-size: 24px; /* Slightly larger font */
    width: 100%;
    max-width: 280px; /* Increased max width */
    margin: 12px auto; /* Slightly more spacing */
    background-color: #0D4881;
    color: white;
    border: none;
    border-radius: 8px; /* Slightly rounder */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
    font-weight: 700;
    font-family: 'Jura', sans-serif;
    height: 80px; /* Explicit height to match */
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Hover effect */
button:hover {
    background-color: #083a64;
    transform: scale(1.07); /* Slightly stronger hover effect */
}

/* 'Standort anzeigen' button on 'Standort ändern' page */
button#viewButton {
    background-color: #1A407D;
    padding: 16px 28px; /* Same padding as the 'Standort ändern' button */
    font-size: 24px; /* Same font size */
    width: 100%;
    max-width: 280px; /* Same max width */
    margin: 12px auto; /* Same margin */
    border-radius: 8px;
    height: 70px; /* Explicit height to match */
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* 'Standort anzeigen' button hover effect */
button#viewButton:hover {
    background-color: #163563; /* Matching hover effect */
    transform: scale(1.07);
}

/* 'Standort ändern' button */
button.back-button {
    background-color: #EC1D25;
    padding: 16px 28px; /* Same padding */
    font-size: 24px; /* Same font size */
    width: 100%;
    max-width: 280px; /* Same width */
    margin: 12px auto; /* Same margin */
    border-radius: 8px;
    height: 70px; /* Explicit height to match */
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap; /* Prevent text from wrapping */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
    font-weight: 700;
    font-family: 'Jura', sans-serif;
}

button.back-button:hover {
    background-color: #c4151d;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .tile-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    button {
        width: 100%;
        font-size: 20px;
    }

    .tile {
        font-size: 20px;
        padding: 20px;
    }

    /* Ensure 'Standort ändern' button is the same size as 'Standort anzeigen' button on mobile */
    button.back-button {
        font-size: 24px; /* Match font size */
        padding: 16px 28px; /* Match padding */
        height: 70px; /* Explicit height to ensure same size */
    }
}
