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

html, body, :root {
    max-width: 100vw;
    overflow-x: hidden;
}

:root {
    --primary-color: #f28705;
    --light-orange: #f29f05;
    --deep-orange: #DF4904;
    --deep-blue: #111c26;
    --text-color: #f2f2f2;
    --background-color: black;
    --transparent-background: rgba(0, 0, 0, 0.165);
}

header {
    position : absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100vw;
    height:50px;
}

#canvas {
    width: 30vw;
    aspect-ratio: 1/1;
    background-color: transparent;
    position: relative;
    border-radius: 50%;
  }

/*Barre de naviguation*/
nav {
    background-color: var(--deep-blue);
    display: flex;
    justify-content: end;
    align-items: center;
}

.navbar {
    color: var(--text-color);
    display: flex;
    justify-content: end;
    list-style-type: none;
    box-shadow: none;
    margin-bottom: 0%;
    margin-top: 0;
    margin-right: 5%;
    padding: 10px;
    border-style: none;

}

.navbar li a {
    text-decoration: none;
    color: var(--background-color);
    font-size: 25px;
    margin: 0 10px;
    background-color: var(--primary-color);
    padding: 5%;
    border-radius: 10%;
    font-family: 'Ghoulish', sans-serif;

}

.logo-titles {
    width: 15vw;
    margin-left: 5vw;
    position: absolute;
    z-index: 1000;
    transform: translateY(-15%);
}

.navbar li a:hover {
    background-color: var(--text-color);
}

.rules {
    margin-right: 3%;
}

/*Partie citrouille et compteurs*/

.picture-background {
    margin-top: 50px;
    background-image: url("../docs/assets/Images/background.png");
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-size: cover;
    width: 100vw;
    padding: 5vh 0 5vh 0;
    overflow: hidden;
}

#boutonClic {
    border-radius: 100%;
    position: absolute;
    z-index: 1;
    clip-path: polygon(71% 95%, 78% 91%, 86% 88%, 91% 83%, 95% 78%, 98% 70%, 98% 62%, 99% 54%, 98% 45%, 97% 36%, 94% 29%, 91% 23%, 83% 15%, 76% 14%, 66% 9%, 56% 5%, 48% 1%, 36% 0%, 30% 6%, 21% 13%, 11% 18%, 5% 26%, 1% 35%, 0% 43%, 0% 53%, 0% 65%, 0% 76%, 5% 84%, 9% 91%, 14% 95%, 21% 100%, 32% 100%, 42% 100%, 50% 100%, 58% 100%, 64% 99%);
}
.top-body {
    color: var(--text-color);
}

#boutonImage{
    width: 90%;
}
#boutonClic{
    width: 20vw;
    background-color: transparent;
    border: none;
}
.first-counter {
    width: 25vw;
    border-radius: 15px;
    font-size: xx-large;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.second-counter {
    width: 25vw;
    border-radius: 15px;
    font-size: xx-large;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

body {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    justify-content: center;

}

#shop {
    width: 90%;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto';
}

#shop_title {
    width: 100%;
    height: 60px;
    display: flex;
    color: var(--text-color);
    justify-content: center;
    align-items: center;
    background-color: var(--deep-blue);
    border-radius: 10px;
}

#shop_title p {
    font-size: clamp(1rem, 2vw, 2.5rem);
    font-weight: bold;
}

#shop_boosters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1vh 0 1vh 0;
}

.shop_item {
    width: 49%;
    height: 60px;
    display: flex;
    align-content: center;
    background-color: var(--deep-blue);
    border-radius: 10px;
    box-shadow: 5px 5px 18px 5px #0b0b0b;
    margin-bottom: 10px;
    transition: 0.3s;
}

.shop_item:hover {
    background-color: #354c62;
}

.shop_item_content {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.shop_img {
    width: 50px;
}

.booster_name {
    width: 25%;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    align-items: center;
    color: var(--text-color);
    font-size: clamp(0.3rem, 1vw, 1rem);
    font-weight: bold;
}


.price {
    width: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.price p {
    padding-right: 5px;
    font-size: clamp(0.3rem, 2vw, 1.5rem);
    color: var(--primary-color);
    font-weight: bold;
}

.click_booster {
    width: 25%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: var(--text-color);
    gap: 5px;
}

p.click_booster_copy {
    font-size: 1em;
    text-align: center;
}

.click_booster_number {
    font-size: clamp(0.3rem, 2vw, 1.5rem);
    padding-left: 10px;
    text-align: center;
    color: var(--light-orange);
    font-weight: bold;
}

.price_icon {
    width: 35px;
}

.level {
    width: 15%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1.1em;
}

p.level_text {
    color: var(--text-color);
}

p.level_number {
    font-size: clamp(0.5rem, 2vw, 1.5rem);
    color: var(--deep-orange);
    font-weight: bold;
}

.float, .close{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	color:#FFF;
	border-radius:50px;
	text-align:center;
	box-shadow: 2px 2px 3px #69390a;
}

.close{
	background-color: var(--primary-color);
}

.float{
    background-color: var(--deep-orange);
    z-index: 1;
}

.my-float{
	margin-top:22px;
}

i{
    font-size:24px;
 }

.footer {
    width: 100%;
    border-left: 8px;
    border-right: 8px;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    background-color: var(--deep-blue);
    color: var(--text-color);
    margin-top: auto;
}

.footer .social a {

    display: flex;
    text-decoration: none;
    color: var(--text-color);
    align-items: center;
    flex-direction: row-reverse;

}

.social img {

    display: flex;
    padding-right: 4px;
    padding-left: 8px;

}

.footer .society {

    width: 33%;
    display: flex;
    justify-content: center;
}

.footer .society .wcs {

    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    font-size: 1em;

}

.social {
    width: 33%;
    padding-left: 8px;
    display: flex;
    justify-content: start;
    align-items: center;
}

.footer .logo {
    width: 33%;
    padding-right: 8px;
    display: flex;
    justify-content: end;
}

.society img {
    padding-right: 4px;
}

.tumblr,
.twitter,
.discord {
    display: flex;
}


#rules {
    width: 500px;
    height: 600px;
    top: 50%;
    left: 80%;
    background-image: url(../docs/assets/Images/page.png);
    background-size: 100%;
    background-repeat: no-repeat;
    padding: 120px;
    text-align: center;
    font-size: 15px;
    position: absolute;
    transform: translate(-50%, -50%);
    display: none;
}

#contact {
    width: 500px;
    height: 600px;
    margin: auto;
    top: 50%;
    left: 80%;
    background-image: url(../docs/assets/Images/page.png);
    background-size: 100%;
    background-repeat: no-repeat;
    padding: 80px;
    text-align: center;
    font-size: 15px;
    position: absolute;
    transform: translate(-50%, -50%);
    display: none;

}

/*test boutton nav*/

.modaleButton {
    --c: #f27405;
    /* text color */

    background:
        linear-gradient(90deg, #0000 33%, #f27405, #0000 67%) var(--_p, 100%)/300% no-repeat,
        #02020200;
    /* background color */
    color: #0000;
    border: #ccc;
    border-radius: 10%;
    transform: perspective(500px) rotateY(calc(20deg*var(--_i, -1)));
    text-shadow:
        calc(var(--_i, -1)* 0.08em) -.01em 0 var(--c),
        calc(var(--_i, -1)*-0.08em) .0em 2px #0004;
    outline-offset: .1em;
    transition: 0.7s;
}

.modaleButton:hover,
.modaleButton:focus-visible {
    --_p: 0%;
    --_i: 1;
}

.modaleButton:active {
    text-shadow: none;
    color: var(--c);
    box-shadow: inset 0 0 9e9q #0005;
    transition: 0s;
}

.modaleButton {
    font-family: roboto;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0;
    cursor: pointer;
    padding: .1em .3em;
}


.btn-close {
    --c: #000000;
    /* text color */

    background:
        linear-gradient(90deg, #0000 33%, #ffffff, #0000 67%) var(--_p, 100%)/300% no-repeat,
        #02020200;
    /* background color */
    color: #0000;
    border: #ccc;
    border-radius: 10%;
    transform: perspective(800px) rotateY(calc(10deg*var(--_i, -1)));
    text-shadow:
        calc(var(--_i, -1)* 0.08em) -.01em 0 var(--c),
        calc(var(--_i, -1)*-0.08em) .0em 2px #0004;
    outline-offset: .1em;
    transition: 0.7s;
}

.btn-close:hover,
.btn-close:focus-visible {
    --_p: 0%;
    --_i: 1;
}

.btn-close:active {
    text-shadow: none;
    color: var(--c);
    box-shadow: inset 0 0 9e9q #0005;
    transition: 0s;
}

.btn-close {
    font-family: roboto;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0;
    cursor: pointer;
    padding: .1em .3em;
    margin-left: 250px;
    margin-bottom: 5%;
}


h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    margin-top: 10px;
}


/*Transition page 1 2*/
.transition {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #222222;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: ease-in 2s;
}

.transition.active {
    opacity: 1;
    pointer-events: none;
}

/*Animation citrouille clickable*/

#boutonImage {
    display: inline-block;
    box-shadow: none;
    appearance: none;
    border: 0;
    outline: 0;
    line-height: 42px;
    font-size: 20px;
    border-radius: 30px;
    color: rgb(40, 45, 50);
    cursor: pointer;
    transition: all .5s;
    transition-timing-function: cubic-bezier(.2, 3, .4, 1);
    user-select: none;

    &:hover {
        transform: scale(1.02, 1.02);
    }

    &:active {
        transform: scale(1.05, 1.05);
    }
}

/*Responsive du shop en écran assez large*/


@media (max-width: 1200px) {
    .shop {
        width: 95%;
    }
}

@media (max-width: 1000px) {
    #shop {
        display: flex;
        flex-direction: column;
        gap: 2%;
        width: 80%;
    }

    .shop_item {
        width: 100%;
    }
}

/*Responsive citrouille et les deux compteurs*/

@media (min-width: 731px) {
    .second-counter {
        background-color: var(--transparent-background);

    }

    .first-counter {
        background-color: var(--transparent-background);
    }

}

@media (max-width: 730px) {
    .logo-titles {
        width: 25vw;
    }
    .picture-background{
        display: flex;
        flex-direction: column;
        padding: 2vh 0 2vh 0;
    }

    .first-counter {
        border-radius: 10px;
        color: var(--text-color);
        text-shadow: #020101 2px 0 10px;
        width: 50%;
        text-align: center;
        font-size: x-large;
    }

    .second-counter {
        border-radius: 15px;
        color: var(--text-color);
        text-shadow: #020101 2px 0 10px;
        text-align: center;
        width: 50%;
        font-size: x-large;

    }

    #shop {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 2%;
    }

    .shop_item {
        width: 100%;
    }

    /*footer responsive*/
    .footer {
        width: 100%;
        border-left: 8px;
        border-right: 8px;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        background-color: var(--deep-blue);
        color: var(--text-color);
        margin-top: auto;
    }

    .footer .social a {

        display: flex;
        text-decoration: none;
        color: var(--text-color);
        align-items: center;

    }

    .social img {

        display: flex;
        padding-right: 4px;
        padding-left: 8px;

    }

    .footer .society {

        width: 33%;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .footer .society .wcs {

        text-decoration: none;
        color: white;
        align-items: center;

    }

    .social {
        width: 33%;
        padding-left: 8px;
        display: flex;
        justify-content: start;
        align-items: center;
        padding-left: 8px;
    }

    .footer .logo {

        width: 33%;
        padding-right: 8px;
        display: flex;
        justify-content: end;

    }

    .society img {

        padding-right: 4px;

    }

    .tumblr,
    .twitter,
    .discord {

        display: flex;

    }

    .footer a p {
        display: none;
    }

    .footer .discord a p,
    .footer .twitter a p,
    .footer .tumblr a p{
        display: none;
    }
}


@media (min-width: 460px) {
    .float{
        display: none;
    }

 }


@media (max-width: 460px) {

    .picture-background {
        margin-top: 0;
    }

    header {
        z-index: 0;
    }

    .logo-titles {
        z-index: 0;
    }
    body{
        overflow-x: hidden;
    }

    #shop {
        height: 100vh;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        background: linear-gradient(0deg, rgba(239,218,198,0) 0%, rgba(239,218,198,1) 24%, rgba(239,218,198,1) 100%);
        transition: 0.5s;
    }

    #shop.visible {
        transform: translateX(0%);
     }
    

    #shop_title {
        width: 90vw;
    }

    .float.otherOrange{
        background-color: var(--primary-color);
    }

    #shop_boosters {
        width: 90vw;
    }

    .shop_item{
        box-shadow: 5px 5px 14px 5px #c7b4a1;
    }
    #shop_title{
        box-shadow: 5px 5px 14px 5px #c7b4a1;
    }

    #shop_title p{
        color:  var(--primary-color);
        font-size: 2em;
    }

    .booster_name p{
        display: none;
    }

    .price{
        flex-direction: column-reverse;
        justify-content: space-around;
    }

    .price p {
        font-size: 1.1em;
    }
    .click_booster{
        flex-direction: column-reverse;
        justify-content: center;
        gap: 0;
    }

    p.click_booster_number{
        font-size: 1.3em;
    }

    p.click_booster_copy{
        font-size: 0.8em;
    }

    p.level_number{
        font-size: 1.3em;
    }

    .level {
        flex-direction: column;
        justify-content: space-around;
    }

    p.level_text{
        font-size: 0.8em;
    }

    .price_icon {
        width : 27px;
    }

    nav {
        display: none;
    }

    .logo-titles {
        margin-top: 2vh;
        width: 45vw;
    }

    #contact {
        display: none;
    }

    #rules {
        display: none;
    }

    .footer {
        display: none;
    }

    .picture-background{
        height: 100vh;
        justify-content: center;
        gap: 3vh;
        
    }
    #boutonClic{
        width: 70vw;
    }
    .first-counter{
        transform: translateY(-150%);
    }
    .second-counter{
        transform: translateY(150%);
    }
}

@media (max-width: 730px) {
    #rules {
        width: 500px;
        height: 600px;
        top: 50%;
        left: 50%;
        background-image: url(/Spooky_Clicker/docs/assets/Images/page.png);
        background-size: 100%;
        background-repeat: no-repeat;
        padding: 120px;
        text-align: center;
        font-size: 15px;
        position: absolute;
        transform: translate(-50%, -50%);
        display: none;
    }

    #contact {
        width: 500px;
        height: 600px;
        margin: auto;
        top: 50%;
        left: 50%;
        background-image: url(/Spooky_Clicker/docs/assets/Images/page.png);
        background-size: 100%;
        background-repeat: no-repeat;
        padding: 80px;
        text-align: center;
        font-size: 15px;
        position: absolute;
        transform: translate(-50%, -50%);
        display: none;

    }
}
