@charset "utf-8";

/* --- ROOT VARIABILI --- */
:root {
    --color-white: #FFF;
    --color-green: #2AFD89;
    --color-grey: #A1A3A2;
    --color-darkgrey: #272B2A;
    --color-lightgrey: #F2F2F2;
	--color-lightgrey-50: #F2F2F2A3;
}

/* --- RESET BASE --- */
html, body {
    height: 100%;
}

body {
    font-family: "Host Grotesk", sans-serif !important;
    background-color: #000504 !important;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* --- SELEZIONE TESTO --- */
::-moz-selection {
    color: var(--color-darkgrey);
    background: var(--color-green);
}
::selection {
    color: var(--color-darkgrey);
    background: var(--color-green);
}

/* --- COLORI GLOBALI --- */
.color-white { color: var(--color-white); }
.color-green { color: var(--color-green); }
.color-grey { color: var(--color-grey); }
.color-darkgrey { color: var(--color-darkgrey); }
.color-lightgrey { color: var(--color-lightgrey); }
.color-lightgrey-50 { color: var(--color-lightgrey-50); }

/* --- ELEMENTI GLOBALI --- */
ul {
    padding: 13px;
}
option {
    color: #000;
}

/* --- BOTTONI --- */
#testo button, #gira, #submit {
    width: 300px;
    padding: 15px 20px !important;
    margin: 50px auto 0;
    display: block;
    text-align: center;
}

input[type=submit], #gira, #reset, #testo button {
    background-color: var(--color-green);
    border: none;
    border-radius: 10px !important;
    text-transform: uppercase;
    color: #062E24;
    font-weight: 700;
    padding: 10px 40px !important;
    font-size: 18px;
    letter-spacing: 0px;
}

#gira, #reset {
    margin-top: 60px;
    padding: 10px 50px;
    font-size: 24px;
}

button#gira {
    border-radius: 10px !important;
    margin: 0;
    width: 270px;
}

/*#gira {
    transition: all 0.3s ease-in-out;
}
#gira:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}
#canvasContainer*/
body:hover canvas {
    animation: hoverAttract 9s ease-in-out;
    transform-origin: center center;
}

/* --- FORM --- */
.modal-content {
    border-radius: 20px;
}

#form {
    position: relative;
    padding-top: 0;
}

.input {
    width: 100%;
    border: 0;
    border-bottom: solid 1px var(--color-lightgrey);
    background: none;
    box-shadow: none;
    outline: 0;
    padding: 5px 0 5px 0;
    margin-bottom: 15px;
    color: var(--color-lightgrey);
    opacity: 1;
}

.input::placeholder {
    color: var(--color-lightgrey);
    opacity: 1;
}

.input-label {
    position: relative;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--color-lightgrey);
}

.label-span {
    position: absolute;
    top: -20px;
    left: 0;
    transition: all 0.2s;
    pointer-events: none;
}

.input:focus + .label-span,
.input.full + .label-span {
    top: -1.2rem;
    left: 0;
    font-size: 0.8rem;
}

.form-check-label {
    color: var(--color-lightgrey);
    font-size: 0.8rem;
    margin-left: 30px;
}

.form-check-input {
    margin-left: 0 !important;
}

#auth, input[type=submit] {
    margin-top: 20px;
}

#message {
    width: 100%;
}

#error {
    color: #ce2e2e;
    margin-top: 5px;
    font-size: 16px;
}

/* --- RUOTA E CANVAS --- */
#ruota, #reset {
    display: none;
}

#canvasContainer {
    margin: 100px auto 0 auto;
    text-align: center;
    width: 100%;
}

#canvasContainer.glow {
    animation: pulseGlow 2s ease-in-out infinite;
    border-radius: 50%;
}

canvas {
    background-color: #000;
    border-radius: 100%;
    width: 90%;
    box-shadow: 0 0 60px 20px rgba(50, 193, 156, 0.5);
}

#winPoint {
    position: absolute;
    top: -50px;
    left: 50%;
    margin-left: -25px;
    width: 50px;
    animation: dropIn 0.8s ease;
}

/* --- MODALE --- */
.modal h2,
.modal #messaggioIntro {
    font-weight: bold;
    color: #fff;
}

.modal h2 {
    font-size: 52px;
}

.modal #messaggioIntro {
    font-size: 35px;
    line-height: 1.1;
}

.modal button {
    font-weight: bold;
    color: #fff;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    background: none;
    border: none;
    z-index: 222;
}

#sendEmail input[type="submit"] {
    display: block;
    margin: 20px auto;
    border: 1px solid #fff;
}

.modal-content {
    box-shadow: 0 0 60px 20px rgba(15, 119, 92, 0.5);
}

/* --- EFFETTI ESITO --- */

#win2 .modal-content {
    align-items: center;
    background-color: #000504;
}

#win2.modal button {
    position: initial;
    background: var(--color-green);
    color: #062E24;
    padding: 5px 35px;
}
#win2.modal button:hover{
    color: initial;
    background-color: #FFF;
}

.esito {
    /*position: absolute;
    padding: 40px 0;*/
    padding-bottom: 30px;
    width: 100%;
    top: 0;
    left: 0;
    color: #fff;
    font-weight: regular;
    text-align: center;
    font-size: 18px;
    /*animation: fade 20s forwards;
    -webkit-animation: fade 1s 20s forwards;*/
}

#flash {
    width: 100vw;
    height: 100%;
    position: relative;
    top: 0vh;
}

#backdrop-win2.modal-backdrop.show {
    opacity: 0.7;
  }

/* --- COMPONENTI SPECIALI --- */
#winPointWrapper {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100px;
    height: 100px;
    transition: none;
}

#canvasContainer:hover #winPointWrapper {
    animation: bounceFreccia 6s ease-in-out infinite;
}

/* --- RADIO PERSONALIZZATI --- */
.tipologia-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.tipologia-label {
    margin: 0;
    background: none;
    box-shadow: none;
    outline: 0;
    padding-bottom: 5px;
    padding-top: 5px;
}

.tipologia-option {
    color: var(--color-lightgrey);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
}

.tipologia-option input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-lightgrey);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.tipologia-option input[type="radio"]:checked + .custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--color-lightgrey);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- SPINWIN BOX --- */
.spinwin-box {
    background-color: #01140C;
    background-image: url('images/spinwin-box-bg.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 20px;
    padding: 2rem 12rem 2rem 3rem;
    color: #fff;
    display: flex;
    align-items: center;
    width: 650px;
    max-width: 650px;
    margin: 3rem auto;
    box-shadow: 0 0 60px 20px rgba(15, 119, 92, 0.5);
}

#testo button {
    margin: 20px auto;
    width: 240px;
    border-radius: 10px !important;
}

#may-win-box .numero {
    margin-bottom: -35px;
    margin-left: -25px;
}

#may-win-box p {
    margin: 0;
}

/* --- TOGGLE BUTTON --- */
#toggle-button:hover {
    cursor: pointer;
    color: var(--color-lightgrey);
}

/* --- ANIMAZIONI --- */
@keyframes fade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

@keyframes hoverAttract {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.01) rotate(4deg); }
    50% { transform: scale(1.015) rotate(0deg); }
    75% { transform: scale(1.01) rotate(-4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceFreccia {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-30px); }
    100% { transform: translateX(-50%) translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px 5px rgba(0, 255, 128, 0.6); }
    50% { box-shadow: 0 0 30px 15px rgba(0, 255, 128, 0.9); }
}

@keyframes pulsare {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}


.btn-play {
    animation: pulsare 2s ease-in-out infinite; /* Animazione di pulsazione */
  }
.btn-play:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}
/*
@keyframes fadeSlideUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
    }
    .fade-slide-up {
        animation: fadeSlideUp 0.8s ease-out forwards;
    }

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.zoom-in {
  animation: zoomIn 0.6s ease-out forwards;
}    */


.colonna-txt .title-box {
	display: block;
}
.colonna-ruota .title-box {
	display: none;
}

#credits {
	position:fixed; 
	bottom:0; 
	left:0; 
	height:auto;
	background-color: #000504;
	z-index: 1000;
}
#credits p{
	font-size: 0.7rem;
}
#credits p a{
	color: var(--color-grey) !important;
}
#credits p a:hover{
	color: var(--color-green) !important;
}

.modal-backdrop {
	z-index: 1001 !important;
}

.colonna-txt p.text-uppercase,
.colonna-txt li {
    font-size: 0.8rem;
  }


/* --- MEDIA QUERIES --- */
@media screen and (min-width: 650px) {
    canvas {
        width: 500px;
    }
}

@media (max-width: 991px) {
    body {
        /*overflow: hidden;*/
    }

    p, ul {
        font-size: 0.8rem;
    }

	body {
        font-size: 0.8rem !important;
    }

    input {
        font-size: 0.8rem !important;
        margin-bottom: 10px;
    }

	.custom-radio {
		width: 15px;
		height: 15px;
	}

	.form-check-label {
		font-size: 0.7rem;
	}

	.modal-body .h5 {
		font-size: 1rem;
	}

    .d-flex.h-100 {
        height: 90% !important;
    }


    #ruota {
        display: none;
        padding: 25px;
    }

    #canvasContainer {
        padding-top: 60px;
    }

    canvas {
        width: 300px;
    }

    #winPoint {
        top: 23px;
        width: 35px;
        margin-left: -17px;
        left: 50%;
    }

    .modal-body {
        padding: 2.5rem 2rem !important;
    }
}

@media (max-width: 768px) {
    .colonna-txt .title-box,
    .colonna-txt .color-grey {
        display: none;
    }

    .colonna-ruota .title-box {
        display: block;
    }

    .spinwin-box {
        background-image: url('images/spinwin-box-bg-mob-b.png');
        flex-direction: column;
        padding: 1.5rem 2.5rem;
        align-items: flex-start;
        margin: 0 auto;
    }

    #testo button {
        margin: 20px 0 10px;
        width: 200px;
    }

    button#gira {
        width: 230px;
        margin: 20px auto 0 !important;
        padding: 5px 20px !important;
    }

    #may-win-box .numero {
        margin-bottom: -32px;
        margin-left: -15px;
        font-size: 2.5rem;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    #canvasContainer {
        margin-top: 0;
    }

    canvas {
        max-height: 400px;
        max-width: 400px;
    }

    #ruota div.justify-content-center {
        -ms-flex-pack: start !important;
        justify-content: start !important;
    }

    #credits {
        padding: 0.7rem 1rem !important;
    }

    #credits p {
        margin-left: 2rem;
    }

    #credits .align-items-end {
        -ms-flex-align: center !important;
        align-items: center !important;
    }

    #credits img {
        width: 50px;
    }

    .h2 {
        font-size: 1.55rem !important;
        line-height: 1 !important;
    }

    .display-4 {
        font-size: 2.7rem !important;
    }

    .spinwin-box {
        width: 500px;
    }
}

@media screen and (max-width: 575px) {
    #testo.vh-100,
    #ruota.vh-100 {
        height: calc(100vh - 100px) !important;
      }

	#testo {
        padding: 25px;
    } 
	#testo div.justify-content-center {
        /*-ms-flex-pack: start !important;
        justify-content: start !important;*/
    }
	#testo div .row .col-12 {
		padding-right: 0px !important;
		padding-left: 0px !important;
	}
	#testo #spinwin-box.my-5 {
		margin-bottom: 2rem !important;
		margin-top: 2rem !important;
	}
	#testo .spinwin-box{
		padding: 1.5rem 2.2rem;
	}
	#testo #toggle-button{
		padding-top:0 !important;
		margin-bottom:0 !important;
	}
	#testo #may-win-box .mb-3{
		margin-bottom:0.5rem !important;
	}

    #testo h1.h2 {
        font-size: 1.25rem !important;
        padding: 0 20px;
    }

    #testo .d-flex.h-100 {
        height: 100% !important;
    }

	
	canvas {
        width: 75%;
    }

    .title-box p {
        font-size: 3rem;
    }

    #ruota h1 {
        padding-top: 0px;
        font-size: 1.7rem;
    }

    #may-win-box .numero {
        margin-bottom: -25px;
    }
	.modal-content {
		width: 95% !important;
		margin:	0 auto;
	}

	.modal-body .mb-5 {
		margin-bottom: 2rem !important;
	}

    #form {
        padding-top: 0rem;
    }
	.input#citta{
		margin-bottom: 0;
	}

	#auth {
		margin-top: 20px;
	}
	#auth .form-check-label {
		margin-left: 25px;
	}

    #submit {
        width: 100%;
        margin: 2rem 0 0 0;
    }

    .spinwin-box {
        width: 300px;
    }


	#credits p{
		font-size: 0.6rem;
		line-height: 1.3;
	}
}

@media screen and (max-width: 400px) {
    .title-box.mb-4 {
        margin-bottom: 2.5rem !important;
    }

    #canvasContainer {
        padding-top: 30px;
    }

    canvas {
        width: 75%;
    }

    #winPoint {
        top: 0px;
        margin-left: -12px;
        width: 25px;
    }
}
