body, html {
    height: 100%;
    margin: 0;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 80vw;  /* 80% of the viewport width */
    font-size: calc(1vw + 1vh + 0.5vmin);  /* Font-size relative to the viewport */
    min-width: max-content;  /* To expand the box based on content */
    color: #33FF33;
    background-color: black;
    padding: 20px;
    border-radius: 15px;
}

img {
    width: 80%;  /* Changed from scaled relative to the viewport to 80% of the container */
    margin-bottom: 16px;  /* Added linebreak/space between the image and the links */
}

a:link, a:visited {
    color: orange;  /* unvisited and visited links will be orange */
    text-decoration: none;
}

h1 a:link, h1 a:visited {
    color: green;  /* links inside h1 will be green */
}

a:active {
    color: yellow;  /* color changes to yellow when the link is clicked */
}

.no-wrap {
    white-space: nowrap;  /* Prevents word wrapping */
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background-color: black;
}

th, td {
    border: none;  /* Removed borders */
    padding: 8px;
    color: #33FF33;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    border: 1px solid #33FF33;
    padding: 15px;
    z-index: 1;
    display: none;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
}

#instruction {
    text-align: center;
}

#gameInfo {
    background-color: #222;
    min-width: 300px;  /* or whatever value works for you */
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#gameTableDiv table, #gameTableDiv a {
    font-size: calc(1vw + 1vh + 0.5vmin); /* This ensures the font size is explicitly set as per the container's calculation */
}
