/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -1px;
    background: white;
}
a.black-underline::after {
    background: black;
}

a:hover::after {
    width: 100%;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    text-align: center;
}

/* Header styling */

header {
    background: #4CAF50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header nav{
    width: 10%;
    display: flex;
    justify-content: space-around;
}

/* main content styling */

main{
    flex: 1;
    width: 60%;
    margin: 10% auto;
}


/* Question form styling */

.question, form {
    margin: 20px 20%; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.question h3 {
    margin-bottom: 10px;
    color: #333;
}

.question p , form label {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}


.question input[type="text"], form input {
    width: 70%;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.question button, form button {
    font-size: 120%;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    scale: 0.9;
    transition: background 0.3s ease-in-out, scale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.question button:hover, form button:hover {
    scale: 1;
    background: #45a049;
    cursor: pointer;
}

form div{
    margin: 2% 0;
}

/* footer styling */

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}