/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Patrick Hand SC', cursive;
    z-index: 1;
}

/* Body styling with background image and overlay */
body {
    position: relative;
    background-image: url('background.jpg'); /* your image file */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;  /* FIX for iOS Safari */
    -webkit-background-size: contain; /* Safari prefix just in case */
    color: #fff; /* text color for readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    z-index: 1;
}


/* Dark overlay for readability */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* black with 40% opacity */
    z-index: 0; /* behind all content */
}

/* Header */
h1 {
    font-size: 2.2em;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

#subtitle {
    font-size: 18px;
    color: #ddd;
    margin-top: -10px;   /* pulls it closer to the header */
    margin-bottom: 20px; /* space before buttons */
    font-style: italic;
}

/* Connect Button */
#connectButton {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 40px;
}

#connectButton:hover {
    background-color: #2980b9;
}

#changeBackgroundButton {
    background-color: #2ecc71; /* green for distinction */
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 40px;
}

#changeBackgroundButton:hover {
    background-color: #27ae60;
}


/* Message Box Wrapper to vertically center */
.message-container {
    flex: 1; /* takes remaining space */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Message Label - big text, centered, responsive */
#messageLabel {
    font-size: 40px; /* initial font size */
    background-color: rgba(236, 240, 241, 0.85); /* light box with transparency */
    color: #2c3e50; /* darker text inside box for contrast */
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    min-width: 300px;
    min-height: 150px;
    max-width: 80vw;
    max-height: 60vh;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
}
