* {box-sizing: border-box}

body {font-family: Arial, Helvetica, sans-serif;
margin:0;
padding:0;
font-size: calc(15px + 0.390625vw);
background-color:white;
height: 100vh;}


:root{
    --white: #ffffff;
    --black: #000000;
    --azure: #c9ecff;
    --blue: #3a1faa;
    --yellow: #e2f200;
    --green: #30e70c;
    --red: #f20070;
    --grey: #e2e2e2;
    --pearl: #fff8f2;
    --orange: #ffa25d;
}


.main {max-width: 750px;
margin:auto;}

/* Style the content */
.content {
  background-color: white;
  padding: 50px;
}

.header {
     overflow:auto;
    background-color:black;
  top: 0;
  width: 100%;
    
}

h1 {
    font-family: 'Arial', Helvetica, sans-serif;
    letter-spacing: 5px;
  text-align: center;
  color: var(--black);
    font-size:5vw;
    text-shadow: -1px 0 white, 0 1px var(--grey), 1px 0 white, 0 -1px white, -1px 1px var(--grey), -1px 1px white;
}

@media screen and (max-width: 600px) {
  h1 {
    font-size:25px;
}
}
   

/* Navbar */


ul.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #b2c1d0;
}

ul.topnav li {float: left;}

ul.topnav li a {
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

ul.topnav li a:hover:not(.active) {background-color: #111; color: white;}

ul.topnav li a.active {background-color: #49d19f;}

ul.topnav li.right {float: right;}

/* CENTRARE TESTO NEL BOX */
.container p {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
    line-height: 1.5;
}

/* img */

img {
    max-width: 100%;
    height: auto;
}

.center img {
  display: block;
  margin-left: auto;
  margin-right: auto;     
}

.contactbx img {
  display: block;
  margin-left: auto;
  margin-right: auto;
    width: 79%;
    padding:150px;
}



/* footer */
.footer {
    border: 0.1rem #000 solid;
    border-left: 0;
    border-right: 0;
    text-align: center;
    font-size: 1.24vw; 
    margin: 1vw 1.2vw;
    font-family: "Courier New", Courier, monospace;
    background-color:azure;
}

.cells {
    display: inline-block;
    border-right: 1vh #000 solid;
    text-align: center;
    padding: 0vw 0.5vw;
    margin: 0.5vw;
    font-family: "Courier New", Courier, monospace;
}

/* COMIC con tante caselle*/
.comiccomic {
  display:flex;
justify-content: center;
  flex-wrap:wrap;
  font-family:'Arial', Helvetica, sans-serif;
    margin-top:1vmin;
    height: 100vh;
  padding:1vmin;
grid-row-gap: 2vmin;
grid-column-gap: 2vmin;
    flex-direction:row;
}
@media (max-width: 768px) {
  .comiccomic {
    width: 100%;
    flex-direction:column;
  }}

/* flexbox item di comicomic*/
.pannello {
    background-color:#0000;
  border:solid 2px #ffffff;
  box-shadow:0 6px 6px -6px #000;
  display:inline-block;
  flex: 1 1;
  margin:1vmin;
  overflow:hidden;
  position:relative;

}

.pannello:nth-child(1) {
  flex-basis: 50%;
}
.pannello:nth-child(2) {
  flex-basis: 50%;
}
.pannello:nth-child(3) {
  flex-basis: 60%;
}
.pannello:nth-child(4) {
  flex-basis: 40%;
}

/* COMIC */
 .comic {display: flex;
    flex-direction: column;
     flex-wrap: nowrap;
     justify-content: center;
  height: fit-content;           /* height: 100vh;Esempio: altezza piena della viewport */
     width: 100%;}

.panel {
  background-color:black;
  border:solid 2px #ffffff;
  box-shadow:0 6px 6px -6px #000;
  display:inline-block;
  flex: auto;
  height:300px;
  margin:1vmin;
  overflow:hidden;
  position:relative;
}


.testo {
  background-color:var(--red);
    color:white;
  border:solid 3px #000;
  margin:0;
  padding:3px 10px;
}

.top-left {
  left:-6px;
  position:absolute;
  top:-2px;
  transform:skew(-15deg);
}

.top-right {
  right:-6px;
  position:absolute;
  top:-2px;
  transform:skew(-15deg);
}

.top-centered {
  top:-2px;
  position:absolute;
  left:-6px;
right:-6px;
    text-align:center;
}

.bottom-right {
  bottom:-2px;
  position:absolute;
  right:-6px;
  transform:skew(-15deg);
}

.bottom-left {
  bottom:-2px;
  position:absolute;
  left:-6px;
  transform:skew(-15deg);
}

.bottom-centered {
  bottom:-2px;
  position:absolute;
  left:-6px;
right:-6px;
    text-align:center;
}


.imgBx img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.imgBox img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner {
  max-width: 250px;
  display: flex;
    margin: auto;
}


.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* RESPONSIVE 2 CLOUMNS */

/* container */
.responsive-two-columns {
    display:flex;
    flex-wrap:wrap;
    flex-direction: row;
}

/* columns */
.responsive-prima-column {
    flex:50;
    padding:7rem;
    order: 1;
}

.responsive-seconda-column {
    flex:50;
    padding:7rem;
    order: 2;
}


.responsive-two-columns p {
    font-family: "Courier New", Courier, monospace;
    color:#4b58bc;
}

.responsive-two-columns ul li {
    font-family: "Courier New", Courier, monospace;
}

/* RESPONSIVE 3 unequal CLOUMNS */

/* container */
.responsive-tre-columns {
    display:flex;
    flex-wrap:wrap;
    flex-direction: row;
    justify-content: center;
  align-items: center;
}

/* columns */
.responsive-uno-column {
    flex:37;
    padding:7rem;
    order: 1;
}

.responsive-due-column {
    flex:26;
    padding:7rem;
    order: 2;
}

.responsive-tre-column {
    flex:37;
    padding:7rem;
    order: 3;
}

.responsive-tre-columns p {
    font-family: "Courier New", Courier, monospace;
    color: var(--red);
}

.responsive-tre-columns ul li {
    font-family: "Courier New", Courier, monospace;
}

/* unvisited link */
a:link {
  color: #7e7ec9;
    text-decoration:none;
}

/* visited link */
a:visited {
  color: #787895;
    text-decoration:none;
}

/* mouse over link */
a:hover {
  color: hotpink;
    text-decoration:overline;
}

/* selected link */
a:active {
  color: #292984;
}

@media screen and (max-width: 600px) {

    .responsive-tre-columns {
    display:flex;
    flex-wrap:wrap;
    flex-direction: column;
    justify-content: center;
  align-items: center;
}}

@media screen and (max-width: 600px) {
/* columns */
.responsive-uno-column {
    flex:33,3;
    padding:1rem;
    order: 1;
}

.responsive-due-column {
    flex:33,3;
    padding:1rem;
    order: 2;
}

.responsive-tre-column {
    flex:33,3;
    padding:1rem;
    order: 3;
}}

@media screen and (max-width: 600px) {
  .responsive-two-columns {
    flex-direction:column;
}
}

@media screen and (max-width: 600px) {
.footer {
    border: 0.1rem #000 solid;
    border-left: 0;
    border-right: 0;
    text-align: center;
    font-size: 14px; 
    margin: 1vw 1.2vw;
    font-family: "Courier New", Courier, monospace;
    background-color:azure;
}

@media screen and (max-width: 600px) {
  .responsive-prima-column {
    flex:50;
    padding:0.5rem;
    order: 1;
}

.responsive-seconda-column {
    flex:50;
    padding:0.5rem;
    order: 2;
}

@media (max-width: 768px) {
  .imgBx {
    position: relative;
    width: 100%;
    height: 100%;
  }}
/* END of COMIC */

@media screen and (max-width: 600px) {
  ul.topnav li.right, 
  ul.topnav li {float: none;}
}
