* {
    box-sizing: border-box; /*this makes the entire content in fit in the center*/
}




/* Ensure full height for centering */
html, body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal center */
    justify-content: flex-start; /* starting at the top */
    text-align: center;
}

.border {
    border: 2px solid black;
    background-color: aqua;
    margin-top: 25px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 30px;
    border-radius: 20px;
     
}

/* Header styling */
header .design {
    margin-bottom: 20px;
}

/* Main content wrapper */
main {
    width: 100%;
    max-width: 400px;
    height: 100vh;
  }
.main input {
    /* margin-top: 40px;  */
    height: 70px; 
    font-weight: bold;
    color: black;
   }


.design h1 {
    font-size: 1rem;
    margin-bottom: -1rem;
}

.design h2 {
    font-size: 1rem;
    margin-bottom: -2rem;
    color: darkblue;
}


/* Calculator title */
.modern h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }


/* Date and time display */
.date-time {
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
 
    }

.date-time p {
    margin-top: -10px;
}


/*MAIN FUNCTION*/
.numeric {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

/* Style buttons consistently */
.numeric button {
    padding: 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #4285F4;
    color: white;
    transition: background-color 0.3s;
    user-select: none;
}

.numeric button:hover {
    background-color: #3367D6;
}

/* Optional: Different colors for special buttons */
#equals {
    background-color: #0F9D58;
}

#equals:hover {
    background-color: #0B7E43;
}

#backspace {
    background-color: black;
}

#clear, #clear-entry {
    background-color: #DB4437;
}

#clear:hover, #clear-entry:hover, #backspace:hover {
    background-color: #A33328;
}

/* Style the input box */
.main > div > input {
    width: 100%;
    font-size: 1.5em;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    text-align: right;
    box-sizing: border-box;
    user-select: none;
}
