:root {
    --primary: #121212;
    --secondary: #1e1e1e;
    --primary-accent: #e0e0e0;
    --secondary-accent: #999999;
    --accent-purple: #6200ea;
    --accent-light-purple: #a569f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Mono", monospace;
}

body, html {
    height: 100%;
    width: 100%;
    background-color: var(--secondary); /* Set background to match container */
    color: var(--primary-accent);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center */
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 5vmin auto;
    padding: 5vmin;
    max-width: 1000px; /* Increased width */
    max-height: 90vh; /* Increased height */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    background-color: var(--secondary);
    position: relative;
    overflow: hidden; /* Keep content inside the container */
    width: 100%; /* Dynamic resizing */
    height: auto; /* Dynamic resizing */
    box-sizing: border-box; /* Keep padding and margin inside */
}


h1.title {
    font-size: 45px; /* Larger font size */
    font-weight: 400;
    color: var(--primary-accent);
    text-align: center;
    margin-bottom: 30px;
    font-family: "Roboto Mono", monospace; /* Roboto Mono for title */
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.card-images {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap; /* Allow for wrapping of card images if the container is smaller */
}

img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    max-height: 200px; /* Limit image height */
    object-fit: contain;
}

input[type="text"] {
    background-color: #333;
    color: var(--primary-accent);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
}

button, input[type="button"] {
    background-color: var(--accent-purple);
    color: var(--primary-accent);
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover, input[type="button"]:hover {
    background-color: #3700b3;
}

button:focus, input[type="button"]:focus {
    outline: none;
    box-shadow: 0 0 8px var(--accent-purple);
}

form.well {
    background-color: var(--secondary);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow form items to wrap if needed */
}

#curcount {
    font-size: 30px;
    color: var(--primary-accent);
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
}

#info {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  
  .button-container {
    display: flex;
    justify-content: space-between; /* Distribute space evenly */
    width: 100%;
    align-items: center; /* Vertically align button and current-turn */
  }
  
  #current-turn {
    font-size: 20px;
    color: var(--primary-accent);
    font-weight: bold;
    text-align: center;
    margin-left: 10px; /* Add some spacing between button and current turn text */
    flex-grow: 1; /* Make this element take remaining space */
    display: flex;
    justify-content: center; /* Center the text within the available space */
  }
  
button.show-count-btn {
    margin-left: 10px;
}

input[type="button"]:disabled {
    cursor: not-allowed;
    background-color: #999;
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--primary-accent);
}

footer a {
    text-decoration: underline;
    transition: color 0.25s ease;
    color: var(--primary-accent);
}

footer a:hover {
    color: var(--accent-light-purple);
}

@media screen and (max-width: 600px) {
    .container {
        padding: 4vmin;
        gap: 20px;
    }

    h1.title {
        font-size: 32px;
    }

    input[type="text"], button, input[type="button"] {
        font-size: 14px;
    }

    .card-images {
        flex-direction: column;
        gap: 15px;
    }

    img {
        max-width: 90%;
    }
}
