*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

body {
    background: rgba(203, 151, 55, 0.301);
}

h1 {
    position: absolute;
    top: 20px;
    left: 50%;
    color: #8fc460;
}

h1:hover {
    transform: rotate(15deg);
    transition: 200ms;
    cursor: crosshair;
}

nav {
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    margin-bottom: 20px;
}

nav a {
    text-decoration: none;
    font-size: 18px;
    color: #24292E;
    letter-spacing: 1px;
}

nav a:hover {
    color: rgba(202, 48, 48, 0.833);
    transition: 300ms;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    height: 3px;
    background: #fd4765d3;
    transition: 0.3s;
    bottom: 0;
}

nav a:hover::after {
    width: 100%;
}

header section {
    align-content: center;
    text-align: center;
}

/* Section used for centering process */
section {
    width: 100%;
    height: 100vh;
    background-color: #24292E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.accordion-item {
    background-color: #283842;
    border-radius: .4rem;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: .5rem 2px .5rem rgba(0,0,0,.1);
}

.accordion-link {
    font-size: 1.6rem;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    background-color: #283842;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.accordion-link i {
    color: #e7d5ff;
    padding: .5rem;
}

.answer {
    max-height: 0;
    overflow: hidden;
    position: relative;
    background-color: #212838;
    transition: max-height 650ms;
}

.answer::before {
    content: "";
    position: absolute;
    width: .6rem;
    height: 90%;
    background-color: #8fc460;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.answer p {
    color: rgba(255,255,255,.6);
    font-size: 1.4rem;
    padding: 2rem;
}

.accordion-item:target .answer {
    max-height: 20rem;

}

.back-to-home {
    position: absolute;
    top: 15px;
    left: 20px;
    margin-right: 20px;
}

.back-to-home a {
    margin-top: 40px;
    text-decoration: none;
    font-size: 20px;
    color: #cadf6dd0;
}

.back-to-home a:hover {
    color: rgba(226, 155, 24, 0.897);
    transition: 200ms;
}