@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

* {
    color: inherit;
    background-color: inherit;
    box-sizing: border-box;
}

nav[id^="page-"]:hover {
    background-color: #e8e8e8;
    font-weight: bold;
}

nav[id^="chart-"]:hover {
    font-weight: bold;
}

.text {
    text-align: left;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 50px 0 10px 0;
}

.container,
.logo {
    text-align: center;
    background-color: #fff;
    color: #000;
    border-radius: 8px;
}

h1 {
    font-size: 3em;
    background-color: #fff;
    color: #404040;
}

p {
    font-size: 1.2em;
    background-color: #fff;
    color: #404040;
}

.icon {
    font-size: 100px;
    background-color: #fff;
    color: #ff6347;
    margin-bottom: 20px;
}

.message {
    margin-top: 20px;
    font-size: 1.1em;
    background-color: #fff;
    color: #404040;
}

.logo {
    padding: 8px 10px 4px 10px;
    border: 10px solid #000;
    box-shadow: 5px 5px 8px blue, 10px 10px 8px red, 15px 15px 8px green;
}

div#content,
footer {
    width: 100%;
    justify-content: center;
}

div#content,
footer,
nav {
    display: flex;
    align-items: center;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: center;
    width: 200px;
    height: 32px;
    margin-top: 0px;
    line-height: 2;
}

header>nav {
    padding-inline: 50px;
    text-align: center;
}

div#content {
    min-height: 600px;
    background-color: #f8f8f8;
    color: #000;
    padding: 50px;
    width: 75%;
}

footer {
    background-color: #f8f8f8;
    color: #333;
    height: 50px;
    font-size: 10px;
    margin: 50px;
}

#animate {
    position: relative;
    top: 0px;
    left: 0px;
}

#scene {
    perspective: 1200px;
}

#card {
    display: inline-block;
    transform-origin: center center;
    transform-style: preserve-3d;
    animation: pivot-then-flip 5s infinite;
}

/* animation */
@keyframes pivot-then-flip {

    /* position initial */
    0% {
        transform: rotate(0deg) rotateY(0deg);
    }

    /* rotation pivot */
    10% {
        transform: rotate(90deg) rotateY(90deg);
    }

    /* rotation pivot */
    20% {
        transform: rotate(180deg) rotateY(180deg);
    }

    /* rotation pivot */
    30% {
        transform: rotate(270deg) rotateY(270deg);
    }

    /* position initial */
    40% {
        transform: rotate(360deg) rotateY(360deg);
    }

    /* pause */
    50% {
        transform: rotate(360deg) rotateY(0deg);
    }

    /* rotation flip */
    60% {
        transform: rotate(360deg) rotateY(90deg);
    }

    /* rotatio flip */
    70% {
        transform: rotate(360deg) rotateY(180deg);
    }

    /* rotation flip */
    80% {
        transform: rotate(360deg) rotateY(270deg);
    }

    /* position initial */
    90% {
        transform: rotate(360deg) rotateY(360deg);
    }

    /* pause */
    100% {
        transform: rotate(360deg) rotateY(360deg);
    }
}

main {
    width: 100%;
    display: flex;
    padding-top: 50px;
    flex-direction: row;
    justify-content: center;
}

.bordereau {
    background-color: #fff;
    color: #000;
    background-image:
        /* top */
        linear-gradient(to right, black 10%, yellow 10% 20%, black 20% 30%, yellow 30% 40%, black 40% 50%, yellow 50% 60%, black 60% 70%, yellow 70% 80%, black 80% 90%, yellow 90% 100%),
        /* right */
        linear-gradient(to bottom, black 10%, yellow 10% 20%, black 20% 30%, yellow 30% 40%, black 40% 50%, yellow 50% 60%, black 60% 70%, yellow 70% 80%, black 80% 90%, yellow 90% 100%),
        /* bottom */
        linear-gradient(to right, yellow 10%, black 10% 20%, yellow 20% 30%, black 30% 40%, yellow 40% 50%, black 50% 60%, yellow 60% 70%, black 70% 80%, yellow 80% 90%, black 90% 100%),
        /* left */
        linear-gradient(to bottom, yellow 10%, black 10% 20%, yellow 20% 30%, black 30% 40%, yellow 40% 50%, black 50% 60%, yellow 60% 70%, black 70% 80%, yellow 80% 90%, black 90% 100%);

    background-repeat: no-repeat;
    background-size:
        100% 10px,
        /* top: full width, 4px high */
        10px 100%,
        /* right: 4px wide, full height */
        100% 10px,
        /* bottom: full width, 4px high */
        10px 100%;
    /* left: 4px wide, full height */

    background-position:
        top left,
        /* top bar */
        top right,
        /* right bar */
        bottom left,
        /* bottom bar */
        top left;
    /* left bar */

    border: 1px solid #ccc;
    padding: 50px;
}

span:before {
    content: "•";
    padding-right: 5px;
}

h2,
li {
    font-weight: bold;
}

.chart {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
}

th,
td {
    padding: .8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #f0f4ff;
}

.field {
    margin: 10px;
}

input[type="text"] {
    margin-left: 10px;
}

input[type="submit"] {
    padding: 5px;
}

.submit {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.form {
    border-left: 5px solid #808080;
    transition: background-color 0.3s;
    padding-left: 10px;
}

figure {
    text-align: center;
}

figcaption {
    margin-left: 75%;
    margin-top: 25px;
}

.box {
    float: left;
}

.message {
    margin: 70px;
}

.space {
    height: 100px;
}

.left {
    float: left;
    margin-right: 10px;
}

.right {
    float: right;
    margin-left: 10px;
}

.sr-only {
    font-size: 12px;
}

.sr-only:before {
    content: "*";
    padding-inline: 10px;
}

@media only screen and (max-width: 600px) {
    div#animate {
        width: 200px;
        margin: 0;
        padding: 0;
    }

    div#logo {
        height: 180px;
    }

    .logo {
        padding: 0;
    }

    svg {
        width: 175px;
        padding-top: 0;
        margin-top: 0;
        height: 160px;
    }

    header {
        height: 200px;
        flex-direction: column;
    }

    hr {
        width: 50%;
    }

    main {
        font-size: 10px;
    }

    section {
        width: 90%;
        max-width: 450px;
        margin: 0 auto;
    }

    input[type="text"] {
        margin-left: 0;
        width: 130px
    }

    .field {
        margin: 0;
    }

    textarea {
        width: 130px;
        box-sizing: border-box;
    }

    .box {
        float: none;
    }

    figure {
        margin: 0;
    }

    img {
        width: 160px;
    }

    figcaption {
        margin-left: -20px;
    }

    p.message {
        margin: 20px 0;
        padding: 10px;
        width: 100%;
    }

    footer {
        margin-top: 100px;
    }

    .chart {
        flex-direction: column;
        margin-top: 80px;
    }

    footer>h5 {
        margin-top: 50px;
    }

}

/* Buy Me A Coffee Custom Button */
.bmc-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    background-color: #FFDD00;
    color: #000000;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: 2px solid #000000;
}

.bmc-button:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #000000;
    background-color: #ffea00;
}

.bmc-button span {
    margin-right: 10px;
    font-size: 24px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

@media only screen and (max-width: 600px) {
    .bmc-button {
        bottom: 15px;
        right: 15px;
        height: 45px;
        padding: 0 15px;
        font-size: 14px;
    }

    .bmc-button span {
        font-size: 20px;
    }
}