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

:root {
    --dark-blue: #163746;
    --light-blue: #98c1d4;
    --x-light-blue: #c4e1ee;
    --blue: #1f6585;
    --green: #5C8F21;
    --red: #BF1717;
    --orange: #e09407;
    --yellow: #F9DC5C;
    --white: #edeff0;
    --grey: #696969;
}

:focus-visible {
    outline-color: var(--orange);
    outline-offset: 5px;
    outline-width: 5px;
}

body {
    width: 100%;
    min-height: 100vh;
    color: var(--white);
    font-family: "Quicksand", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgrey;
}

.card {
    width: 280px;
    height: 490px;
    perspective: 600px;
}

.card-inner {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    transition: transform 2s;
    transform-style: preserve-3d;
    position: relative;
    background: var(--dark-blue);
}

.card-inner.isFlipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.2);
}

#back-face {
    transform: rotateY(180deg);
}

.card-content {
    width: 100%;
    height: 100%;
}

#back-face .card-content {
    padding: 15px;
}

#front-face .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 33px;
}

#front-face p {
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
}

h2 {
    font-weight: 600;
    letter-spacing: .5px;
    font-size: 25px;
}

h3 {
    font-size: 15px;
}

p {
    font-size: 17px;
}

.profile-pic {
    display: none;
}

#logo,
.social-icon {
    height: 30px;
    margin-right: 5px;
}

.social-icon {
    fill: var(--dark-blue);
}

.social-link {
    border: none;
    height: fit-content;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: background-color .3s ease;
    width: 100%;
    padding: 5px;
}

.social-link-container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    height: 55px;
    width: 100%;
    border-radius: 10px;
    padding: 15px;
}

.social-link:hover,
.social-link:focus,
.social-link:focus-visible {
    background-color: var(--yellow);
}

.back-content-box {
    background-color: #FFFFFF;
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 10px;
}

.link-div {
    width: 100%;
    justify-content: space-evenly;
    display: flex;
    flex-direction: column;
    height: 70%;
}

#qr-container {
    background-color: #F3F3F3;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    height: 30%;
    font-size: 12px;
}

#qr-code {
    height: 100px;
    width: 100px;
}

#qr-container p {
    font-size: 16px;
    color: var(--dark-blue);
    font-family: 'Fira Sans Condensed', sans-serif;
    text-align: center;
    padding: 10px;
}

.flip-btn {
    border-radius: 10px;
    background-color: var(--orange);
    border: none;
    z-index: 1;
    position: absolute;
    bottom: 10px;
    right: 15px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    transition: scale .25 ease;
}

.flip-btn:hover,
.flip-btn:focus-visible {
    transform: scale(1.1);
}

.flip-icon {
    z-index: 2;
    position: absolute;
    bottom: 12px;
    right: 12px;
    height: 25px;
    width: 25px;
}

.hidden {
    display: none;
}

@media screen and (min-width: 768px) {

    .profile-pic {
        display: block;
        height: 100%;
        border: none;
        border-radius: 10px;
    }

    .card {
        height: 320px;
        width: 620px;
    }

    .back-content-box {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .link-div {
        width: 55%;
        height: 100%;
    }

    #qr-container {
        height: 100%;
        width: 200px;
        padding: 10px;
        flex-direction: column;
        justify-content: space-evenly;
    }
    
    #qr-code {
        height: 80px;
        width: 80px;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .social-link-container {
        height: 35px;
        width: 80%;
        margin: 0 auto;
        padding: 5px 15px;
    }

    #logo,
    .social-icon {
        height: 25px;
    }
}