html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.container {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    max-width: 80%;
    max-height: 80vh;
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

.text {
    position: absolute;
    bottom: 2%;
    text-align: center;
    /*font-size: 12pt;*/    
    font-size: max(min(1.5vw,10pt),8pt); /* Dynamically resizable text */
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* For better readability */
}