@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap');

html {
    font-family: 'Hind', sans-serif;
}

body {
    width: 80%;
    margin: 50px auto;
    color: #333
}

h1,h2,p {
    margin:0;
    padding:0;
}

h1 {
    margin-top:20px;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 5px;
}

a {
    display: inline-block;
    padding: 10px 30px;
    text-decoration: none;
    color: white;
    background: darkgray;
    transition: .2s all ease-in-out;
    margin: 20px 0;
}

a:hover {
    background: #333;
    transition: .2s all ease-in-out;
}


section, header, footer {
    padding: 20px 50px;
}

header {
    background: bisque;
}

section {
    background: khaki;
}

section.flexing {
    display: flex;
}

section div {
    padding: 20px 50px;
}

section img {
    width: 30%;
    height: 100%;
    position: relative;
}

footer {
    background: lightgrey;
    text-align: center;
}

footer a {
    hyphens: auto;
}

@media screen and (max-width: 600px){
    section {
        background: indianred;
        display: block !important;
    }

    div {
        padding: unset !important;
    }

    img {
        width: 100% !important;
    }

    textarea,input {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 5px;
    }

}

@media screen and (max-width: 450px){
    section, header, footer {
        padding: 20px;
    }

}

input, textarea {
    padding: 10px;
    border: none;
    border-radius: 3px;
}

label {
    display: block ;
    padding-top: 20px;
}

input[type=submit], input[type=reset] {
    border: none;
    padding: 10px 40px;
    margin-top: 30px;
}

input[type=submit]:hover {
    background: limegreen;
}


input[type=reset]:hover {
    background: indianred;
}

ul ul {
    background:red;
}

ol {
    color: blue;
}

ol li:first-of-type {
    background: green;
}

ol li:nth-of-type(2) {
    color: yellow;
}