/*
|------------------------------------------
|  Global
|------------------------------------------
*/

body {
    font-family: 'VT323', monospace;
    text-align: center;
}

.is-flex {
    display: flex;
}

a {
    text-decoration: none;
    outline: 0;
}

a:focus,
a:visited {
    color: #000;
}

input[type='radio']{
    transform: scale(2);
}

p {
    font-family: 'Roboto Mono', monospace;
}


/*
|------------------------------------------
|  The Grid
|------------------------------------------
*/

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-11 {
    flex: 0 0 91.6666666667%;
    max-width: 91.6666666667%;
}

.col-10 {
    flex: 0 0 83.3333333333%;
    max-width: 83.3333333333%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-8 {
    flex: 0 0 66.6666666667%;
    max-width: 66.6666666667%;
}

.col-7 {
    flex: 0 0 58.3333333333%;
    max-width: 58.3333333333%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-5 {
    flex: 0 0 41.6666666667%;
    max-width: 41.6666666667%;
}

.col-4 {
    flex: 0 0 33.3333333333%;
    max-width: 33.3333333333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-2 {
    flex: 0 0 16.6666666667%;
    max-width: 16.6666666667%;
}

.col-1 {
    flex: 0 0 8.3333333333%;
    max-width: 8.3333333333%;
}

/*
|------------------------------------------
|  Header
|------------------------------------------
*/

.header {
    justify-content: space-between;
    align-items: center;
    background: #ffbc42;
    min-height: 77px;
}

/*
|------------------------------------------
|  Novigation
|------------------------------------------
*/

.logo-wrapper p {
    align-self: center;
    font-size: 2em;
    margin-left: 3em;
}

.logo {
    width: 53px;
    margin: -0.85em 1em;
    position: fixed;
    z-index: 10;
}

.gn ul {
    justify-content: space-evenly;
}

.gn li {
    list-style: none;
    font-size: 1.5em;
}

.gn li::before {
    content: '';
    display: block;
    margin: auto;
    width: 0%;
    height: 3px;
    background: #000;
    margin-bottom: 5px;
    transition: 0.25s ease;
}

.gn li::after {
    content: '';
    display: block;
    margin: auto;
    width: 0%;
    height: 3px;
    background: #000;
    margin-top: 5px;
    transition: 0.25s ease;
}

.gn li:hover::before {
    width: 100%;
}

.gn li:hover::after {
    width: 100%;
}

/*
|------------------------------------------
|  Sections
|------------------------------------------
*/

.list-item-heading {
    font-size: min(9vw, 92px);
    width: 100vw;
    padding-top: 22px;
}

.section-heading {
    font-size: 4vh;
    text-align: left;
    margin-bottom: 10px;
    background: #ffbc41;
    width: 80vw;
    margin: auto;
    padding: 10px 0 10px 50px;
}

.section-heading::before {
    content: '';
    display: block;
    background: cornflowerblue;
    height: 15vh;
    width: 15vh;
    position: absolute;
    top: -1.05em;
    left: 0;
    right: 0;
    z-index: -1;
    margin: auto;
    border-radius: 50%;
}

.section-heading::after {
    content: '';
    display: block;
    background: cornflowerblue;
    height: 100%;
    width: 8px;
    position: absolute;
    left: 10px;
    top: 0;
}

section:nth-of-type(2) p,
section:nth-of-type(n + 2) p {
    width: 80%;
    margin: auto;
    margin-top: 48px;
    column-count: 2;
    column-gap: 99px;
    text-align: left;
    font-size: 18px;
    background: #e2d9c1;
    padding: 1em;
}

/*
|------------------------------------------
|  Intro
|------------------------------------------
*/

.intro {
    margin-bottom: 8em;
}

.intro-container {
    width: 61vw;
    margin: 3em auto;
}

.intro-container img {
    margin-top: 3em;
}

.intro h1{
    font-size: 8vw;
    position: relative;
    background: #fff;
    padding-bottom: 1px;
    border-radius: .25em;
    top: 0.2em;
}

.intro p {
    padding-top: 2em;
    margin-top: 2em;
    font-size: 30px;
}

.intro h1::before {
    content: "";
    height: 1em;
    background: #7385a1;
    display: block;
    width: 100vw;
    position: absolute;
    left: -32%;
    z-index: -1;
}

.intro h1::after {
    content: '';
    height: 1.5em;
    background: #ffbc41;
    display: block;
    width: 100vw;
    position: absolute;
    left: -32%;
    top: -25%;
    z-index: -2;
}

/*
|------------------------------------------
|  How-to
|------------------------------------------
*/

.how-to {
    position: relative;
    flex-direction: column;
    top: 13em;
    padding-top: 1em;
}

.how-to-list {
    flex-direction: column;
}

.how-to-flag {
    height: 30vh;
    justify-content: center;
    line-height: 1.3;
    background: rgb(116, 134, 161);
    width: 100%;
    align-self: center;
    border-radius: 2em;
    border: 10px solid #fff;
    position: relative;
    top: -15em;
    margin-top: 0.75em;
    padding-top: 1em;
}

.how-to-flag::after {
    top: 100%;
	left: 50%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(136, 183, 213, 0);
	border-top-color: rgb(116, 134, 161);
	border-width: 20px;
	margin-left: -20px;
}

.how-to h2 {
    font-size: min(9vw, 50px);
    max-width: 280px;
    max-height: 156px;
    padding: 12px 0 16px 0;
}

.card-container h3 {
    position: absolute;
    top: 0;
    left: 0;
}

.list-item-heading::before {
    content: '';
    position: relative;
    top: -72px;
    font-size: min( 30px, 5vw)
}

.card-container .list-item-heading::before {
    content: 'step1';
}
.form-container .list-item-heading::before {
    content: 'step2';
}
.step3 .list-item-heading::before {
    content: 'step3';
}

.list-item-heading::after {
    content: '';
    height: 1em;
    width: 100vw;
    background: #e2dac1;
    position: relative;
    display: block;
    z-index: -1;
    top: -1em;
}

.card-container h4 {
    position: relative;
    top: -1em;
}

.card-container {
    justify-content: space-evenly;
    top: 400px;
    width: 100%;
    height: 100%;
    margin-bottom: 8em;
}

.card-container div {
    background: #ffbc41;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 1em;
    min-width: 131.25px;
    transition: .25s ease-in-out;
}

.card-container div img {
    max-width: 100%;
    max-height: 75%;
    align-self: center;
    padding: 1em;
}

.card-container a:hover h4::before {
    content: '{';
    position: relative;
}

.card-container a:hover h4::after {
    content: '}';
    position: relative;
}

.card-container a:hover div {
    background:cornflowerblue;
}

.form-container {
    margin-top: 3em;
}

.enter-info {
    flex-direction: column;
    margin: 0 auto;
}

.form-label {
    align-self: flex-start;
    margin: 1em 0 0.5em 0;
}

.button {
    margin-top: 5em;
    width: 35vw;
    padding: 8px;
    border-radius: 5px;
    margin: 4em auto;
}

.personality {
    display: flex;
    flex-direction: column;
    height: 52vh;
    align-items: center;
    margin-bottom: 10em;
}

.radio-label {
    padding-left: 1em;
    font-size: 30px;
}

.step3 {
    margin-bottom: 3em;
}

.radio-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    align-content: space-evenly;
    justify-content: space-around;
}

.radio-wrapper div {
    margin: 1em 0;
}

/*
|------------------------------------------
| About
|------------------------------------------
*/
.about {
    position: relative;
    top: 25em;
    margin-top: -25px;
}

/*
|------------------------------------------
| Contact
|------------------------------------------
*/
.contact {
    position: relative;
    top: 40em;
}

.contact-container {
    margin: auto;
    height: 20vh;
    justify-content: space-around;
    margin-top: 3em;
    margin-bottom: 3em;
}

.contact-tile {
    background: #7385a1;
    border-radius: 1em;
    transition: 0.5s ease;
    height: 100%;
}

.contact-tile::after {
    content: '';
    display: block;
    margin: auto;
    width: 0%;
    height: 3px;
    background: #000;
    margin-top: 30px;
    transition: 0.25s ease;
}

.contact-tile:hover {
    background: #ffbc41;
}

.contact-tile:hover::after {
    width: 100%;
}

.contact-tile img {
    width: 8em;
    mix-blend-mode: soft-light;
}

.tel {
    padding-top: 11px;
}

.contact-link {
    height: 100%;
}

/*
|------------------------------------------
| footer
|------------------------------------------
*/

footer {
    position: relative;
    top: 50em;
}

.social {
    height: 3em;
    justify-content: space-around;
    align-items: center;
}

.social img {
    mix-blend-mode: overlay;
}

.social::after {
    content: '';
    height: 100%;
    width: 100%;
    background: #ffbc41;
    position: absolute;
    z-index: -2;
}

.social a::after {
    content: '';
    width: 0;
    height: 0;
}

.social a:hover::after {
    position: absolute;
    height: 2em;
    width: 2em;
    background: #7284a1;
    border-radius: 50%;
    top: 7px;
    margin-left: -28px;
    z-index: -1;
    transition: 0.15s ease;
}
/*
|------------------------------------------
|  js event
|------------------------------------------
*/

#thanks {
    display: none;
    color: limegreen;
    font-size: 20px;
    background: #fff;
    margin: 2em auto;
    width: 30%;
}

#thanks::after {
    content: '';
    position: absolute;
    height: 5px;
    width: 100vw;
    display: block;
    background: chartreuse;
    top: 126px;
    left: 0;
    z-index: -1;
}

/*
|------------------------------------------
|  Queries
|------------------------------------------
*/
@media (max-width: 490px) {
    .logo-wrapper {
        max-width: 100%;
        padding: 1.5em 0.9em 1em 0;
        align-self: flex-start;
    }

    .logo {
        width: 31px;
        margin: 0 1em;
    }

    .intro {
        margin-bottom: 4em;
    }

    .how-to {
        top: 3em;
        -top: 9em;
    }

    .how-to-flag {
        top: -6em;
    }

    .card-container {
    flex-direction: column;
    align-items: center;
    align-content: space-evenly;
    height: 100vh;
    top: 235px;
    margin-bottom: 0;
    }

    .card-container h3 {
        top: 15vh;
    }

    .header {
        flex-direction: column;
    }

    .gn {
        max-width: 100%;
    }

    .gn ul {
        width: 100vw;
        padding-bottom: 1em;
    }

    .intro-container p {
        font-size: 17px;
    }

    .list-item-heading::before {
        top: -30px;
    }

    .personality {
        height: 65vh;
        position: relative;
        top: 3em;
        margin-bottom: -13em;
    }

    .radio-wrapper {
        height: 85%;
    }

    #thanks {
        width: 40%;
    }

    #thanks::after {
        top: 185px;
    }
}

@media (max-width: 750px) {
    section:nth-of-type(2) p,
    section:nth-of-type(n + 2) p {
        column-count: 1;
}
}