* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #2a2a2a;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.grid-container {
    display: grid;
    grid-template-rows: 1fr 30vh 1.618fr;
    height: 100vh;
    width: 100vw;
    justify-items: center;
    align-items: center;
}

.media-container {
    grid-row: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-image {
    max-width: 40vw;
    max-height: 40vh;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-rows: 1fr 50vh 1.618fr;
    }

    .media-container {
        max-width: 80vw;
        max-height: 50vh;
    }

    .grid-image {
        max-width: 80vw;
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-rows: 1fr 60vh 1.618fr;
    }

    .media-container {
        max-width: 90vw;
        max-height: 60vh;
    }

    .grid-image {
        max-width: 90vw;
        max-height: 60vh;
    }
}

/* Blazor error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
