html {
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    height: 100%;
    width: 100%;
}

nav {
    height: 280px;
    overflow: hidden;
}

img {
    width: 120px;
    height: 100px;
    border-radius: 10px;
}

.collage {
    display: grid;
    width: auto;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    justify-content: space-evenly;
    align-content: space-around;
    transform: skewY(-7deg);
    -webkit-transform: skewY(-7deg);
    -moz-transform: skewY(-7deg);
    -ms-transform: skewY(-7deg);
    -o-transform: skewY(-7deg);
}

header {
    margin: 2rem 0 5rem 0;
}

header p {
    padding-left: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    display: block;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: rgb(209, 54, 209);
    font-weight: bold;
}

a:hover {
    color: rgb(31, 31, 197);
}

fieldset {
    border: none;
}

[for="name"], [for="phone"], [for="password"], [for="email"] {
    display: flex;
    flex-flow: row wrap;
}

.line {
    border-bottom: 1px solid grey;
    margin: 1.2rem 0;
}

input:not([type="radio"]) {
    display: inline-block;
    margin: 1rem 0.5rem;
    font-size: .8rem;
    padding: 0.5rem 0.5rem;
}

input:focus {
    outline: none;
}

.radio {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.line label {
    align-items: center;
}

@media only screen and (max-width:600px) {
    aside {
        display: none;
    }

    figure {
        display: none;
    }

    header {
        text-align: center;
    }

    ul {
        padding-bottom: 3rem;
    }

    section {
        padding-bottom: .5rem;
    }

    input:not([type="radio"]) {
        width: 90%;
        margin: 1rem 0.5rem;
        font-size: 1rem;
        padding: 0.5rem 0.5rem;
    }

    button {
        display: flex;
        justify-content: center;
        align-items:center;
        background-color: rgb(8, 161, 8);
        color: white;
        padding: 10px 100px;
        border: none;
        font-size: 1rem;
        border-radius: 20px;
        margin: 2rem auto;
        transition-duration: 0.4s;
    }

    button a {
        text-decoration: none;
    }

    button:hover {
        transform: translateY(-15px);
        color: black;
    }
}

/*For desktop*/
@media only screen and (min-width: 610px) {
    body {
        margin: 0;
        padding: 0;
        font-family: 'Poppins', sans-serif;
        height: 100%;
        width: 100%;
    }

    nav {
        display: none;
    }

    .wrapper {
        display: flex;
        flex-flow: row nowrap;
        margin: 0 auto;
        height: 100%;
        padding: 0;
    }

    figure {
        flex-basis: 10%;
        color: rgb(194, 43, 194);
        font-size: 2rem;
        margin: 0;
        padding: 1rem 0 0 1rem;
    }

    section {
        position: relative;
        flex-basis: 60%;
        padding-left: 0;
        line-height: 1.5;
        overflow-y: auto;
    }

    form {
        overflow: auto;
        width: 100%;
        height: 100%;
    }

    header p {
        width: 480px;
    }

    fieldset {
        width: 85%;
        font-size: 1rem;
    }

    .line, .line2 {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    aside {
        position: relative;
        padding: 0;
        margin: 0;
        height: 100%;
        flex-basis: 30%;
    }

    aside img {
        width: 100%;
        height: 100%;
    }

    .img-responsive {
        background-size: cover;
    }

    aside h1 {
        font-size: 20px;
        font-weight: bold
    }

    aside p {
        font-size: 15px;
        padding-bottom: 1.5rem;
        color: #575d64;
    }

    .text {
        position: absolute;
        bottom: 20px;
        right: 20px;
        color: black;
        padding-left: 20px;
        padding-right: 20px;
        animation: text 2s linear -1s reverse;
    }

    .text h1, p {
        margin: 0;
        padding: 0 1rem 0 1rem;
    }

    @keyframes text {
        from {
            bottom: 0px;
        }

        to {
            bottom: 100px;
        }
    }

    button {
        position: absolute;
        right: 2rem;
        background-color: rgb(8, 161, 8);
        color: white;
        padding: 10px 50px;
        border: none;
        font-size: 1rem;
        display: inline-block;
        border-radius: 20px;
        margin: 2rem 0 1rem 0;
        transition-duration: 0.4s;
    }

    button a {
        text-decoration: none;
    }

    button:hover {
        box-shadow: 0 8px 16px 0 rgb(8, 161, 8);
        color: black;
    }
}