@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: content-box;
}

body{
    background-color: #fafaff;
    color: #1c1c1c;
    font-family: "Cabin", sans-serif;
    font-weight: 400; 
}

header{
    padding: 2rem; /* rem: relative unit of measurement */
    background-color: #747ff8;
    text-align: center;
    color: white;
}

/* using flexbox */
main{
    padding: 2rem;
    display: flex; /* horizontal alignment */
    flex-direction: column; /* vertical alignment */
    gap: 1.5rem; /*space between the sections*/
}

section{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h2 {
    color: #073693;
    font-size: 1.2rem;
}

input[type="radio"], [type="checkbox"]{
    accent-color: #747ff8;
}

input[type="text"], input[type="password"], input[type="date"], input[type="email"]{
    width: 98%;
    padding: 0.6rem;
    border: 2px solid #747ff8;
    outline: none;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
}

/*Fixing the checkbox section*/
.option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 6px; /*space between the checkbox and the text*/
}

/*Styling pseudo-element*/
input::placeholder{
    color: #073693;
}

select{
    cursor: pointer;
    background-color: #bcc1fe;
    color: #073693;
    border-radius: 5px;
    border: none;
    outline: none;
}

img {
    width: 5rem;
    border-radius: 5px;
}

figcaption {
    color: #545151;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #747ff8;
    color: white;
    padding: 0.5rem;
}

td {
    padding: 0.5rem;
    text-align: center;
}

tfoot td{
    background-color: #747ff8;
    color: white;
}

details{
    background-color: #747ff8;
    border-radius: 5px;
    color: white;
    padding: 1rem;
}

summary{
    color: white;
    margin: 0.5rem;
    cursor: pointer;
}

ol {
    margin-left: 1.5rem;
}

ol li{
    padding: 0.2rem;
}

fieldset {
    border: 2px solid #747ff8;
    border-radius: 5px;
    padding: 1rem;
}

legend{
    color: #073693;
    padding: 0 0.5rem; /* vertical and horizontal padding*/ 
}

textarea{
    background-color: transparent;
    outline: none;
    border-radius: 5px;
    border: 2px solid #747ff8
}

button {
    background-color: #747ff8;
    color: white;
    cursor: pointer;
    border: 1px solid black;
    padding: 0.15rem;
    margin-top: 1rem;
    border-radius: 5px;
}

footer{
    background-color: #1b1b1c;
    padding: 1rem;
    text-align: center;
}
.p-footer{
    color: white;
}

a {
    text-decoration: none;
    color: #747ff8;
}