

:root {
    --primary : #0e1626;
    --secondary : #fff;
    --error : #ff3f3f;
    --present:#f7f749;
    --correct:#47d747;
    --absent: #888;
    --nuovocolore : #496e9e;
    --nuovoColore : #496e9e;
    --giallo : #fec63b;
    
}
::-moz-placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--nuovoColore) !important;
    font-size: 14px !important;
  }
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--nuovoColore) !important;
    font-size: 14px !important;
  }
a {
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

html, body {
    height:100%;

}

body {
    display:grid;
    place-items: center;
    background-color: var(--primary);
    color: var(--secondary);
    margin: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

main {
    padding: 30px 0px;
}

h1 {
    margin-top:0px;
    text-align: center;
    margin-bottom: 1rem;
}

h2,label,span {
    color: var(--primary);
}

#game {
    color: var(--secondary);
    background-image: linear-gradient(153deg, #1c2b45 13% , #0c1321 85%) , linear-gradient(149deg , #fec63b 3% , rgba(254,198,59,0) 80%);
    position: relative;
    border-radius: 20px;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

#game::before {
    content: '';
    display: block;
    position: absolute;
    inset: -7px;
    background-image: linear-gradient(138deg, #6ba0e2 -20%, #131e32 105%);
    z-index: -1;
    border-radius: 25px ;
}



.row {
    display: flex;
    justify-content: center;
}


.row.current .tile:empty:first-of-type {
    animation: fade 2s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

@keyframes fade {
    50% {
        background: rgba(255, 255, 255, .05);
    }
}

.tile {
    --size:75px;
    height: var(--size);
    width: var(--size);
    display:flex;
    align-items: center;
    justify-content: center;
    outline: 1px solid rgba(73,110,158, 0.1);
    font-size: 37px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--nuovocolore);
    font-family: sans-serif;
}

/*.tile.absent {
    color: var(--absent);
    text-shadow: 0 0 12px rgba(246, 38, 38, 0.42);
}*/

.row.invalid .tile, .tile.invalid {
    color: var(--error);
    text-shadow: 0 0 12px rgba(246, 38, 38, 0.42);
}

.tile.correct {
    color: var(--correct);
    text-shadow: 0 0 12px rgba(38, 246,110, 0.42);
}

.key.correct {
    background-color: var(--correct);
}

.tile.present {
    color: var(--present);
    text-shadow: 0 0 12px rgba(246,171,38,0.42);
}

.key.present {
    background-color: var(--present);
}

.key.absent {
    background-color: var(--absent);
}


output {
    text-align: center;
    display: block;
    font-weight: 500;
    font-size: 17px;
    position: relative;
    top: -14px;
    width: 100%;
    font-style: italic;
}

output:empty {
    display: none;
    color: var(--nuovocolore);
}

#keyboard {
    margin: 2rem 0;

}
.key {
    background-color: #c5c5c5;
    border: 0px;
    border-radius: 4px;
    height: 50px;
    min-width: 40px;
    font-size: 15px;
    margin: 2px;
    font-weight: 600;
    max-width: -moz-fit-content;
    max-width: fit-content;
}

/*menu*/

.nav {
    color: #496e9e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
}

.parametri {
    position: absolute;
    top: 30px;
    right: 30px;
}
.ricomincia {
    position: absolute;
    top:60px;
    right: 30px;
}
.modal {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 77, 77, .7);
    transition: all .4s;
    z-index: 111111111;
  }
  
  .modal:target {
    visibility: visible;
    opacity: 1;
  }
  
  .modal__content {
    border-radius: 4px;
    position: relative;
    width: 550px;
    background: #fff;
    padding: 1em 2em;
  }

  @media screen and (max-width: 768px) {
    .modal__content {
        max-width:80%;
    }
  }
  
  .modal__footer {
    text-align: right;
  }
  .modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #585858;
    text-decoration: none;
  }
  
  .chiudi-modal  {
    background-color: var(--nuovocolore);
    font-weight: 600;
    border:0px;
    padding: 10px 15px;
    border-radius: 5px;
  }
  .chiudi-modal a {
    color: var(--secondary);
    font-weight: 400;
  }
  .label {
    width: 100%;
  }
  .span-range {
    width: 100%;
    text-align: center;
  }

  .range {
    margin-bottom:30px;
  }
  .range input{
	-webkit-appearance:none;
	width:80%;
	height:4px;
	border-radius:5px;
	background-color:var(--primary);
	outline:none;
}
.range input::-webkit-slider-thumb{
	-webkit-appearance:none;
	width:20px;
	height:20px;
	border-radius:50%;
	background-color:var(--nuovocolore);
}
.range span{
	position:absolute;
	margin-left:14px;
	width:50px;
	height:30px;
	background-color:var(--primary);
	color:#fff;
	border-radius:3px;
	text-align:center;
	line-height:30px;
}
.range span:before{
	content:'';
	position:absolute;
	border-right:9px solid transparent;
	border-left:9px solid transparent;
	border-bottom:12px solid #222;
	left:-10px;
	top:50%;
	transform:translateY(-50%) rotate(-90deg);
}

/*PROVA */

body {
    background-color: var(--primary);
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
    color: var(--nuovoColore) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-family: sans-serif; 
}

a,p,span,label {
    color: var(--nuovoColore) !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    font-family: sans-serif;
}

.card-login input, 
.card-login input:focus {
    background-color: transparent;
    border-top:0px;
    border-left:0px;
    border-right:0px;
    border-radius: 0px;
    border-bottom: 1px solid var(--nuovoColore);
    box-shadow: none;
    color: #fff;
}

input[type="checkbox"] {
    border: 1px solid var(--nuovoColore);
}
.row-ricordami {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.btn-login {
    width: 100%;
    color: var(--primary) !important;
    font-weight: 600;
    border-radius: 0px;
    background-color: #fec63b;
    border: 2px solid #fec63b;
    
}

.btn-login:hover {
    background-color: transparent;
    border: 2px solid #fec63b;
    color: #fff !important;
}

.card-login {
    color: var(--secondary);
    background-image: linear-gradient(153deg, #1c2b45 13% , #0c1321 85%) , linear-gradient(149deg , #fec63b 3% , rgba(254,198,59,0) 80%);
    position: relative;
    border-radius: 20px;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    width: 350px;
}

.card-login::before {
    content: '';
    display: block;
    position: absolute;
    inset: -7px;
    background-image: linear-gradient(138deg, #6ba0e2 -20%, #131e32 105%);
    z-index: -1;
    border-radius: 25px;
}

.container-login {
    height: 80vh;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}


.img-40 {
    max-width: 40px;
    border-radius: 40px;
    padding: 0px;
    border:3px solid var(--nuovocolore);
}
.img-100 {
    width: 200px;
    height: 200px;
    border-radius: 100px !important;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat ;
    background-size: cover;
    border:7px solid var(--nuovoColore);
}
.bg-giallo {
    background: var(--giallo);
    background-color: var(--giallo) ;
}

.blocco-sidebar {
    top:0;
    right:-300px;
    height:100vh;
    z-index: 100;
}

.menu-sidebar {
    top:0;
    width: 300px;
  
    height: 100vh;
    z-index: 1000;
    background-color: var(--primary);
}
.nav-sidebar {
    margin-right: 30px;
}
.sidebar-item {
    width: 100%;
    height: 40px;
    list-style: none;
    font-weight: 600;
}
.sidebar-icon {
    width: 17px;
    margin-right: 5px;
}
.sidebar-profilo {
    height: 80px;
    padding-top:20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--nuovoColore);
}
.active {
    color: var(--giallo) !important;
}

.close-sidebar {
    right:-300px;
}
.open-sidebar {
    right:0px !important;
    transition: linear ease-in-out 0.5s;
}

.fade-sidebar {
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100vh;
}
.disable-fade-sidebar {
    z-index: -1;
    background-color: transparent;
}
.active-fade-sidebar {
    z-index: 10;
    background-color: #6ba0e24a;
}
.list-stats {
    color: var(--nuovoColore);
}
.list-stats li {
    list-style: none;
    width: 100%;
    height: 30px;
}


.navbar-toggler {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1111111111;
}
.invalid-feedback strong {
    color: #b02a37 !important;
    font-weight: 600 !important;
    font-size: 13px;
}
.iziToast-message {
    color: #0c1321 !important;
}
.card-login .alert {
    background: transparent !important;
    border: 0 !important;
    font-size: 15px !important;
    font-weight: bold !important;
}
