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

body {
    font-size: 16px;
    font-weight: 600;
    font-family: Calibri, sans-serif;
    color: #2d2d2d;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 15px 0;
    font-weight: bold;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.8rem;
}

p {
    margin: 10px 0;
}

img {
    width: auto;
    height: auto;
}

/* Text aligns. */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

header,
.content {
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    padding: 40px 15px;
}

.main-logo {
    height: 65px;
    margin: 10px;
}

.hamburger {
    text-align: center;
}

.hamburger:link,
.hamburger:visited,
.hamburger:active,
.hamburger:focus,
.hamburger:hover {
    color: #2d2d2d;
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.hamburger:active,
.hamburger:focus,
.hamburger:hover {
    background-color: #2d2d2d33;
}

.hamburger i {
    font-size: 3rem;
}

/* Links */
a.hyperlink,
a.hyperlink:link,
a.download,
a.download:link {
    color: #9d4b66;
    text-decoration: none;
}

a.hyperlink:visited {
    color: #794c74;
}

a.hyperlink:hover,
a.hyperlink:active,
a.hyperlink:focus {
    color: #9d4b66;
    border-bottom: 2px solid #9d4b66;
}

a.hyperlink:after {
    font-family: 'Material Icons Round';
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    margin-left: 3px;
    content: "link";
}

a.phone:after {
    content: "phone";
}

a.email:after {
    content: "email";
}

a.download:after {
    content: "cloud_download";
}

a.blank:after {
    content: none;
}

a.skip-link,
a.skip-link:visited,
a.skip-link:link,
a.slip-link:active,
a.skip-link:hover {
    color: #2D2D2D;
    opacity: 0;
    transition: opacity 0.3s;
}

a.skip-link:focus {
    opacity: 1;
}

p i.material-icons-round {
    display: inline;
    vertical-align: middle;
    margin-right: 4px;
}

/* Buttons */
button {
    appearance: none;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0);
    font-weight: bold;
    color: #2D2D2D;
    cursor: pointer;
    border: 4px solid rgba(0, 0, 0, 0);
    border-radius: 4px;
}

button.primary {
    border: 4px solid #2D2D2D;
    border-radius: 4px;
}

button:hover,
button:active,
button:focus {
    color: #794c74;
}

button.primary:hover,
button.primary:active,
button.primary:focus {
    border: 4px solid #c5bec4;
}

.hero {
    padding: 20px 0 80px;
    text-align: center;
}

.hero img {
    height: 200px;
    margin-bottom: 20px;
}

.profile,
.experience,
.trivia {
    background-color: #5c969e;
    color: white;
}

.skill-cards {
    margin: 40px 0;
}

.skill-cards .skill-card,
.bordered-card {
    border: 4px solid #2D2D2D;
    border-radius: 4px;
    padding: 15px;
}

.skill-cards div .card-head {
    text-align: left;
}

.skill-cards div .card-head i {
    font-size: 3rem;
    display: inline-block;
}

.skill-cards div .card-head img {
    height: 3rem;
    display: inline-block;
    margin-right: 5px;
}

.skill-cards div .card-head h3 {
    vertical-align: top;
    display: inline-block;
}

.skill-cards div ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.skill-cards div ul li {
    width: 50%;
    margin-bottom: 10px;
}

.skill-cards div ul li:last-child {
    margin-bottom: 0;
}

.confidence-bar {
    height: 10px;
    width: 96px;
    border-radius: 15px;
    display: block;
    overflow: hidden;
    text-align: left;
}

.confidence-bar.red .segment {
    background-color: #f55246;
}

.confidence-bar.orange .segment {
    background-color: #ffc107;
}

.confidence-bar.green .segment {
    background-color: #4CAF4F;
}

.confidence-bar .segment.blank {
    background-color: #cecece;
}

.confidence-bar .segment {
    display: inline-block;
    width: calc(100px / 5 - 4px);
    height: 150%;
    margin-right: 4px;
}

.confidence-bar .segment:last-child {
    width: calc(100px / 5 - 4px);
    margin-right: 0px;
}

.experience-cards {
    margin: 40px 0;
    text-align: center;
}

.experience-card {
    border: 4px solid #2D2D2D;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-size 0.3s, transform 0.3s;
    background-size: 160%;
    background-position: center;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.experience-card.pop:hover {
    background-size: 130%;
}

.experience-card.tilt:hover {
    transform: rotate(4deg) scale(1.05);
}

.experience-card img {
    display: inline-block;
    height: 100px;
    margin: 25px 0;
}

.experience-card.setl img {
    height: 60px;
    margin: 45px 0;
}

.experience-card.verafide img {
    height: 30px;
    margin: 60px 0;
}

.experience-card.invision {
    background-image: linear-gradient(60deg, #34319e, #00b3bb);
}

.experience-card.invision img {
    height: 60px;
    margin: 45px 0;

    /* Make image white. */
    -webkit-filter: brightness(0) invert(1);
    /* Safari 6.0 - 9.0 */
    filter: brightness(0) invert(1);
}

.experience-card p {
    font-size: 0.8rem;
}

.qualifications {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    /* align-items: flex-start; */
    width: 100%;
}

.qualifications .qualification,
.qualifications .certificate {
    margin: 10px;
    width: calc(25% - 20px);
    position: relative;
}

@media only screen and (max-width: 540px) {

    .qualifications .qualification,
    .qualifications .certificate {
        margin: 5px;
        width: calc(50% - 10px);
    }
}

.qualifications .qualification h2,
.qualifications .qualification h3,
.qualifications .qualification h4,
.qualifications .certificate h3,
.qualifications .certificate h5 {
    margin-top: 0px;
}

.qualifications .qualification h2:last-child,
.qualifications .qualification h3:last-child,
.qualifications .qualification h4:last-child,
.qualifications .certificate h3:last-child,
.qualifications .certificate h5:last-child {
    margin-bottom: 0px;
}

.qualifications .qualification h2 {
    margin-bottom: 0px;
}

.qualifications .qualification h3 {
    margin-right: 20%;
}

.qualifications .qualification img,
.qualifications .certificate img {
    width: 20%;
    position: absolute;
    right: 15px;
    top: 15px;
}

.qualifications .certificate img {
    width: 40%;
}

.qualifications .certificate h3 {
    margin-right: 40%;
}

.contact ul {
    list-style-type: none;
}

.contact li {
    margin-bottom: 10px;
}

.contact li i {
    display: inline-block;
    vertical-align: middle;
}

.document-downloads a,
.document-downloads a:link,
.document-downloads a:visited {
    text-decoration: none;
    margin-right: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.document-downloads a:hover,
.document-downloads a:focus,
.document-downloads a:active {
    opacity: 1;
}

.document-downloads a img {
    width: 50px;
}

.document-downloads.social-media {
    margin-top: 15px;
}

.footer {
    color: white;
    background-color: #794c74;
}

.footer .footer-buttons a,
.footer .footer-buttons a:link,
.footer .footer-buttons a:visited {
    text-decoration: none;
    color: white;
    padding: 10px;
    margin-right: 10px;
    transition: border 0.3s, color 0.3s;
    display: inline-block;
    border-bottom: 4px solid rgba(0, 0, 0, 0);
}

.footer .footer-buttons a:hover,
.footer .footer-buttons a:active,
.footer .footer-buttons a:focus {
    color: white;
    border-bottom: 4px solid white;
}

.footer .footer-buttons a i {
    font-size: 1.5rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.footer .footer-buttons a span {
    vertical-align: middle;
    display: inline-block;
}

.button-group {
    background-color: rgba(255, 255, 255, .2);
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
}

.button-group button {
    outline: none;
    color: #2d2d2d;
}

.button-group button:hover,
.button-group button:active,
.button-group button:focus {
    background-color: rgba(255, 255, 255, .2);
}

.button-group button.active {
    color: #FFF;
}

.copyright {
    font-size: 0.8rem;
}

@media only screen and (max-width: 1024px) {
    .footer .box {
        text-align: center;
    }
}

img.inline {
    display: inline-block;
    width: 1rem;
}

/* Modals */
body.no-scroll {
    overflow-y: hidden;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: none;
}

.modal-backdrop.active {
    display: block;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: calc(100% - 80px);
    margin: 80px auto;
    z-index: 2;
    background-color: white;
    display: hidden;
    border: 4px solid #2D2D2D;
    border-radius: 4px;
    transform: scale(0);
    transition: transform 0.3s;
    overflow-y: scroll;
    max-width: 600px;
}

.modal.active {
    transform: scale(1);
    display: block;
}

.modal .head {
    border-bottom: 4px solid #2D2D2D;
    margin-bottom: 15px;
    padding: 15px;
}

.modal .head h2 {
    margin: 10px 0;
}

.modal .head button {
    margin-top: -10px;
    margin-bottom: -10px;
    margin-right: -15px;
}

.modal .head button i {
    font-size: 3rem;
}

.modal .body {
    padding: 15px;
}

.modal .body h3 {
    font-weight: bold;
}

.modal .body p {
    font-weight: normal;
}

.modal ul {
    margin-left: 20px;
}

@media only screen and (max-width: 560px) {
    .modal {
        width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .footer {
        text-align: center;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: -400px;
    width: 320px;
    margin: 20px;
    background-color: rgba(25, 25, 25, 0.9);
    padding: 10px;
    border-radius: 4px;
    color: #FFF;
    transition: left 0.3s;
}

.cookie-banner.active {
    left: 0
}

.cookie-banner button,
button.ghost {
    outline: none;
    background-color: #FFFFFF;
    border-radius: 4px;
    color: #FFF;
}

button.ghost {
    color: #2d2d2d;
}

button.ghost {
    background: #f0f0f0;
}

.cookie-banner button.accept {
    background: #4CAF4F;
}

.cookie-banner button.decline {
    background: #f55246;
}

button.ghost:hover {
    background: #e6e6e6;
}

.cookie-banner button.accept:hover {
    background: #3f9642;
}

.cookie-banner button.decline:hover {
    background: #d4453a;
}