@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Suez+One&display=swap');

body {
    margin: 0 auto;
    padding: 0;
    width: 80%;
    height: 100%;
    font-family: "Open Sans", sans-serif;
    background-color: #A5C5CF;
    animation: ease-in-out;
    animation-name: fading;
    animation-duration: 4s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

/* header, main, footer */

header,
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

header,
footer {
    background-color: #121D33;
    color: #fff;
    padding: 30px;
}

main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: #ffffff;
}

header h1 {
    margin-top: 0.5em;
}

footer p {
    font-size: 2em;
    font-family: "Suez One", serif;
    padding-bottom: 0.2em;
}

footer a {
    text-decoration: none;
    color: #A5C5CF;
}

/* section i dijelove sectiona */

section {
    padding: 20px;
    display: flex;
    justify-content: center;
}

h1 {
    font-size: 45pt;
    font-family: "Suez One", serif;
    letter-spacing: 4px;
}

h3 {
    font-size: 25pt;
    font-family: "Suez One", serif;
}

p {
    padding: 20px;
}

/* keyframes */

@keyframes fading {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* flip kartica */

.flip-card {
    background-color: transparent;
    width: 1200px;
    height: 300px;
    perspective: 2000px;
    font-family: sans-serif;
}

.title {
    font-size: 2em;
    font-weight: 900;
    text-align: center;
    margin: 0;
}

.title2 {
    font-size: 1.4em;
    font-weight: 900;
    text-align: center;
    margin: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.9s;
    transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid #121D33;
    border-radius: 1rem;
}

.flip-card-front {
    background: linear-gradient(120deg, rgb(255, 255, 255) 60%, #1f325762 88%,
            #121D33 40%, #121D33 48%);
    color: #121D33;
}

.flip-card-back {
    background: linear-gradient(120deg, #121D33 30%, #121d33 88%,
            #121D33 40%, #A5C5CF 78%);
    color: white;
    transform: rotateY(180deg);
}