@import url('https://fonts.googleapis.com/css2?family=Nova+Square&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Science+Gothic:wght@100..900&display=swap');

:root{
    --speedvalue : 1
}

.nova-square-regular {
    font-family: "Nova Square", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.science-gothic {
    font-family: "Science Gothic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "CTRS" 0;
}

body {
    font-family: "Science Gothic";
    cursor: crosshair;
}


h1 {
    font-size: 40px;
    font-family: "Nova Square";
}

a {
    font-size: 20px;
    color: purple;
}

a:hover {
    color: orange;
}

article {
    margin: auto;
}

#btnportfolio {
    background-color: purple;
}

#btnjour {
    background-color: black;
}

#btnnuit,
#btnsolar {
    background-color: white;
}

button {
    position: relative;
    padding: 15px;
    color: white;
    border-radius: 10px;
    font-family: "Nova Square";
    font-size: 20px;
    border: none;
    transition: ease-in-out 0.2s;
    z-index: 1;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    height: 550%;
    border-radius: 10px;
    background: conic-gradient(from 0deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00fffb, #b145ff, #9400d3, #ff0000);
    animation: rainbow 5s linear infinite;
    z-index: -2;
}

button::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 10px;
    z-index: -1;
}


header {
    width: 100%;
    position: relative;
    display: flex;
}

hr {
    border: solid purple 4px;
    border-radius: 4px;
}

footer {
    width: fit-content;
    text-align: center;
    margin: auto;
    width: fit-content;
}

footer>p {
    font-style: italic;
    font-size: 20px;
    text-align: center;
}

td {
    text-align: center;
    vertical-align: middle;
}

i {
    font-size: 32px;
}

ul {
    width: fit-content;
    margin: auto;
}

.lienexercices {
    font-size: 24px;
}

.spacer {
    height: 25px;
}

.lispacer {
    height: 10px;
}

.menubutton {
    min-width: 64px;
    text-align: center;
    margin-bottom: 10px;
    background-color: white;
    color: black;
}

.lastspacer {
    height: 50px;
}

.aiguille {
    position: absolute;
    height: 200px;
    width: 200px
}

#divbutton {
    text-align: center;
    margin: auto;
    width: fit-content;
}

#textheader {
    font-size: 25px;
}

#menutable {
    margin: auto;
}

#titre {
    max-width: 1000px;
    text-align: center;
    height: fit-content;
    margin: auto;
}

#divanimation {
    width: 300px;
    height: 300px;
    margin: auto;
    position: relative;
    animation: spin calc(6s / var(--speedvalue)) linear infinite;
}

#box {
    padding: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes reversespin {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.reverseanimation {
    animation: reversespin calc(2s / var(--speedvalue)) linear infinite;
}

.animation {
    animation: spin calc(3s / var(--speedvalue)) linear infinite;
}

.bigreverseanimation {
    animation: reversespin calc(4s / var(--speedvalue)) linear infinite;
}


#cell1 {
    position: absolute;
    width: 48px;
    left: 126px;
    top: 14px;
}

#cell2 {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 120px;
    top: 60px;
}

#cell3 {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 126px;
    left: 14px;
}

#cell4 {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 59px;
    top: 120px;
}

#cell5 {
    position: absolute;
    width: 72px;
    height: 72px;
    left: 114px;
    top: 114px;
}

#cell6 {
    position: absolute;
    width: 60px;
    height: 60px;
    right: 59px;
    top: 120px;
}

#cell7 {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 126px;
    right: 14px;
}

#cell8 {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 120px;
    bottom: 60px;
}

#cell9 {
    position: absolute;
    width: 48px;
    height: 48px;
    left: 126px;
    bottom: 14px;
}

#cell10 {
    position: absolute;
    width: 300px;
    animation: reversespin calc(15s / var(--speedvalue)) linear infinite;
}

#testhorloge {
    width: 200px;
    height: 200px;
    margin: auto;
}

#fondhorloge {
    position: absolute;
    width: 200px;
}

#italique {
    font-style: italic;
    font-size: 13px;
}

#btnportfolio::after {
    background: purple;
}

#btnjour::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    height: 120px;
    border-radius: 10px;
    background: conic-gradient(from 0deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00fffb, #b145ff, #9400d3, #ff0000);
    animation: rainbow 5s reverse linear infinite;
    z-index: -2;
}

#btnjour::after {
    background: white;
}

#btnnuit::before,
#btnsolar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    height: 120px;
    border-radius: 10px;
    background: conic-gradient(from 0deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00fffb, #b145ff, #9400d3, #ff0000);
    animation: rainbow 5s reverse linear infinite;
    z-index: -2;
}

#btnnuit::after,
#btnsolar::after {
    background: white;
}

@keyframes rainbow {
    100% {
        transform: rotate(360deg);
    }
}

#divcontrol {
    text-align: center;
    margin: auto;
    width: 150px;
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    h1 {
        font-size: 30px;
    }
}