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

html {
    background-color: #CFD8DC;
    font-family: sans-serif;
}

a {
    color: #499df3;
}

h1 {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 50px;
    font-size: 50px;
    margin-bottom: 0;
    margin-top: 0;
}

.sub-title {
    text-align: center;
    font-size: 32px;
    color: #fd7622;
}

img:not(.arrow) {
    border-radius: 6px;
    margin-bottom: 20px;
    margin-top: 20px;
    width: 100%;
}

img.small-image {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

img.med-image {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

details {
    margin: 2rem auto;
    padding: 0 1rem;
    width: 75em;
    max-width: calc(100% - 2rem);
    position: relative;
    border: 1px solid #78909C;
    border-radius: 6px;
    background-color: #ECEFF1;
    color: #263238;
    transition: background-color .15s;
}

details > :last-child {
    margin-bottom: 1rem;
}

details::before {
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit;
    opacity: .15;
    box-shadow: 0 .25em .5em #263238;
    pointer-events: none;
    transition: opacity .2s;
    z-index: -1;
}

details[open] {
    background-color: #FFF;
}

details[open]::before {
    opacity: .6;
}

summary {
    padding: 1rem 2em 1rem 0;
    display: block;
    position: relative;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

summary:not(.default-summary)::before,
summary:not(.default-summary)::after {
    width: .75em;
    height: 2px;
    position: absolute;
    top: 50%;
    right: 0;
    content: '';
    background-color: currentColor;
    text-align: right;
    transform: translateX(-50%);
    transition: transform .2s ease-in-out;
}

summary:not(.default-summary)::after {
    transform: translateX(-50%) rotate(90deg);
}

[open] summary:not(.default-summary)::after {
    transform: translateX(-50%) rotate(180deg);
}

summary:not(.default-summary)::-webkit-details-marker {
    display: none;
}

p {
    margin: 0 0 1em;
    line-height: 1.5;
    font-size: 34px;
}

ul {
    font-size: 32px;
    margin: 0 0 1em;
    padding: 0 0 0 1em;
}

li:not(:last-child) {
    margin-bottom: 0.5em;
}

code {
    padding: 0.2em;
    border-radius: 3px;
    background-color: #E0E0E0;
    font-size: 32px;
}

pre > code {
    display: block;
    padding: 1em;
    margin: 0;
}

.arrow {
    width: 32px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
    animation: arrow 1s both infinite;
}

details[open] summary ~ * {
    animation: sweep .5s ease-in-out;
}

@keyframes sweep {
    0%    {opacity: 0; margin-left: -10px}
    100%  {opacity: 1; margin-left: 0}
}

@keyframes arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-14px);
    }
    60% {
        transform: translateX(-7px);
    }
}

@media only screen and (max-width: 600px) {
    img.small-image,
    img.med-image {
        width: 100%;
    }
}
