*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
}

html:focus-within {
	scroll-behavior: smooth;
}

a:not([class]) {
	text-decoration-skip-ink: auto;
}

img,
picture,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	font-style: italic;
	background-repeat: no-repeat;
	background-size: cover;
}

input,
button,
textarea,
select {
	font: inherit;
    border: 1px solid;
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
		transition: none;
	}
}

body,
html {

	scroll-behavior: smooth;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
    line-height: 1.4;
    font-size: 16px;
}

label {
    color: #375074;
    font-weight: 900;
    font-size: 1.5rem;
}

#elencoParole {
    gap: 1rem 2rem;
    list-style-type: none;
    flex-wrap: wrap;
    line-height: 1.2;
    text-align: left;
    display: inline;

}

.ita, .eng {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}


.ita .intro-text {
    margin-bottom: 1rem !important;
}

#elencoParole > span {
	font-size: clamp(1.5rem, 3.5vw, 4.5rem); 
    font-family: "EB Garamond", serif;
    /*text-transform: lowercase;*/

    text-align: left;
    max-width: 100%; /* Set max-width to 100% */
    color: #ecdab7;
    display: inline;

}

p#elencoParole > span:after {
    content: ' ';
    margin-right: 3vw;
}

#elencoParole > span:nth-child( odd ) {
	font-weight: bold;

    
}
#elencoParole > span:nth-child( even ) {
    color: #fff;
    
}

span.autore {
    font-size: clamp(1.25rem, 1.25vw, 2.5rem); 
    opacity: .3;
    display: inline;
    font-family: "Barlow", sans-serif;
}

body {
    padding: clamp(1.5rem, 4vw, 4rem);
    background-color: #006449;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
    text-align: center;
}

body#wordswall {
    background-color: #006449;
    text-align: left;
}

#wordswall #logo {
    display: block;
    margin: 0 auto 2rem;
}

 input[type=text],
 textarea{
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
}

input, button, textarea, select {
    font: inherit;
    border-radius: .5rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 400px;
}

button {
    font: inherit;
    padding: 18px 20px;
    border: none;
    cursor: pointer;
}

button {
    background-color: #c5d3df;
    width: 100%;
    margin-top: 2rem;
    transition: all .2s ease;
}
button:hover {
    background-color: #1a64a5;
    color: #fff;
}

h1 {
    text-align: center;
}

.parola-item {
    display: flex;
    gap: 1rem;
    padding: 10px;
    border-radius: 10px;
    background: #f4f4f4;
    align-items: center;
    font-size: clamp(.8rem, 2vw, 1rem);
    line-height: 1.3;
}

.parola-item a {
    margin: 0;
    margin-left: auto;
    width: auto;
    padding: 6px 10px;
    background-color: #375074;
    border-radius: 6px;
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    text-decoration: none;
}

.form-container {
    max-width: 760px;
    margin: auto;
    /*display: flex;
    flex-direction: column;
    gap: 1rem;*/
    padding: clamp(1rem, 4vw, 3rem); 
    background: #fff;
    border-radius: 1rem;
    height: max-content;
    width: 100%;
    text-align: left;
}

.form-container--edit {
    max-width: 760px;
}
.form-container--edited {
    text-align: center;
}
.phrases-list form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    
}

.phrases-list {
    margin-top: 2rem;
}

.intro-text {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    color: #006449;
    font-weight: 500;
    font-family: "EB Garamond", serif;
}
img#logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

#fullscreen-button {
    position: fixed;
    top: 0px;
    right: 20px;
    padding: 10px;
    background-color: #117c5f;
    color: #fff;
    border: none;
    cursor: pointer;
    width: auto;
    line-height: 1;
}

#fullscreen-button svg {
    width: 20px;
    height: 20px;
}

div#counter {
    text-align: right;
    margin-top: -.75rem;
}

div#message {
    margin-top: 1rem;
    text-align: center;
}



input[type="checkbox"] {
  appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-content: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0rem;
    border: 0.15rem solid #375074;
    border-radius: 0.5rem;
}
input[type="checkbox"]::before {
    content: "";
    width: 1.2rem;
    height: 1.2rem;
    clip-path: polygon(28% 38%, 41% 53%, 75% 24%, 86% 38%, 40% 78%, 15% 50%);
    transform: scale(0);
    background-color: #375074;
}
input[type="checkbox"]:checked::before {
  transform: scale(1);
}
input[type="checkbox"]:hover {
  color: black;
}

h1 {
    font-family: "EB Garamond", serif;
    color: #006449;
    margin-bottom: 1rem;
}

h2.subtitle {
    background: #ecdab7;
    width: fit-content;
    padding: 10px 15px;
    text-transform: uppercase;
    line-height: 1;
    font-size: 1.25rem;
    text-align: left;
    color: #006449;
}

.subtitle-alt {
        width: 100% !important;
    text-align: center!important;
    margin-bottom: 1.5rem!important ;
    color: #ecdab7!important;
    padding: 0!important;
    background-color: transparent!important;
    margin-top: -.75rem!important;
}


.header {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 0 2rem 0;
}

.header #logo {
    margin: 0!important;
}

img#logo {
    max-width: 150px;
    filter: brightness(0.78) saturate(.8) sepia(1.5) hue-rotate(338deg);
}

button#deleteButton {
    background: indianred;
    color: #fff;
}


button#deleteButton:hover {
    background: red;
    color: #fff;
}

@media screen and (max-width: 576px) {
    
    .ita img, .eng img {
    width: 24px;
    aspect-ratio: 1;
    object-fit: cover;
    height: 24px;
}
    
    .intro-text {
    font-size: 1.1rem;
    line-height: 1.3;
        
}
    img#logo {
        max-width: 150px;
    }
    label {

        font-size: 1rem;
    }
    
    .form-container {

    border-radius: .75rem;

    }
}