@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');

body {
    position: relative;  /* ensure position is set to relative */
    overflow: hidden;    /* optional, as in the previous CSS */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('4314.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;   /* to ensure the pseudo-element is behind the content */
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
}

.centered-text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: calc(33vw);  /* This makes the text size relative to the screen width. You might need to tweak it a bit to get it exactly right for different screens. */
    color: rgba(0, 0, 0, 0.8);  /* 80% black */
    text-shadow:
      -4px -4px 0 #fdfdfd,
      4px -4px 0 #fdfdfd,
      -4px 4px 0 #fdfdfd,
      4px 4px 0 #fdfdfd;
}

.attribution {
    position: absolute;  /* This will position the attribution at the bottom */
    bottom: 10px;  /* A little spacing from the bottom */
    width: 100%;
    text-align: center;  /* Center the text horizontally */
    font-size: 10px;  /* Tiny text size */
    color: gray;  /* Make it white for better visibility, adjust as needed */
    background-color: rgba(255, 255, 255, 0.6);  /* Add a slight background for readability */
    padding: 2px 5px;  /* A little padding for better appearance */
}

.attribution a {
    color: gray;
    text-decoration: none;  /* Remove underline */
}

.attribution a:hover {
    text-decoration: underline;  /* Add underline on hover for better UX */
}

@media screen and (min-width: 768px) {
    .centered-text {
        font-size: calc(33vh);
    }
}
