/* base.css */
body {
    background-color: #1f2029; /* Dark background */
    color: #e0e0e0;          /* Light text */
    font-family: sans-serif;
    font-size: 16px;
    margin: 0;            /* Remove default margin */
    padding: 0;
    display: flex;
    justify-content: center; /* Center the content horizontally */
    min-height: 100vh;      /* Ensure full viewport height */
    user-select: none;
    flex-direction: column; /* Stack container and footer VERTICALLY */
    align-items: center;     /* Center items HORIZONTALLY */
}

.container {
    width: 100%;
    max-width: 800px; /* Limit maximum width */
    padding: 20px;
    box-sizing: border-box; /* Include padding in width */
    /* flex-grow: 1;  Removed this, as it's not needed with align-items: center on the body */
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
}


h3 {
    color: #f0f0f0;
    text-align: center; /*Center the heading*/

}

.title{
    margin-bottom: 24px;
}

code, .textarea {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    gap: 8px;
}

.label {
    color: #ccc;          /* Slightly darker label for contrast */
    margin-bottom: 4px;   /* Space below the label */
    width: 100%;
    text-align: left;
}

.input, .textarea, .button {
    background-color: #2c2c2c; /* Darker input background */
    border: 1px solid #444;   /* Subtle border */
    color: #eee;
    padding: 10px 15px;    /* More padding */
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;            /* Full width */
    font-size: 1rem;      /* Consistent font size */

}
.input{
    user-select: all;
}


.textarea {
    margin-top: 4px;
    min-height: 16em;
    max-height: 24em;
    resize: vertical;      /* Allow only vertical resizing */
    width: 100%;
    user-select:all;
}

.button {
    background-color: #539bf5; /* WinRAR blue color */
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;   /*  width to fit content */
    align-self: center;  /* Center the button */
    margin-top: 8px;
    margin-bottom: 15px;
}

.button:hover {
    background-color: #4287f5; /* Lighter blue on hover */
}

.instructions, .download-section, .explanation{
  margin-top: 35px;
  width: 100%;
}
.instructions p, .explanation p{
  color:#ccc;
  text-align: justify;
  line-height: 1.5;
  max-width: 100%;
}

.download-section h3 {
    margin-bottom: 10px;
}
.download-list{
  list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 8px; /* Space between list items */
    line-height: 1.5; /* Make the list look a bit spacious*/
}

.download-list a {
    color: #539bf5; /* Link color */
    text-decoration: none;
    word-break: break-all; /*Prevent a long URL from overflowing its container*/
}

.download-list a:hover {
    text-decoration: underline;
}
.version-code{
    color: #87CEEB; /*Keep original color*/
    margin-right: .5em; /*Space from the URL*/
    white-space: pre; /*Preserve spaces in version numbers*/
}

code {
  margin: 0 0.2rem;
  color: #87CEEB;
  word-wrap: break-word;
  white-space: pre;
}

/* New styles for button group */
.button-group {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: center; /* Center buttons horizontally */
    width: 100%; /* Ensure it takes the full width */
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Push footer to the bottom */
    border-top: 1px solid #444; /* Subtle separator */
    font-size: 0.9rem;
}


/* Media Query for smaller screen*/
@media (max-width: 768px) {
  .container{
    padding: 10px;
  }

  .textarea{
    min-height: 12em;
    max-height: 20em;
  }
    .button-group {
        flex-direction: column; /* Stack buttons vertically on small screens */
    }
     .button-group .button{
        width: 100%;
     }
}