@charset "utf-8";
html{
    background-color:rgba(183, 0, 0, 0.849);
    
}
body{
    font-family: Garamond,Verdana, Geneva, sans-serif;
    color: red;
    background-color: ivory;
    width:90%;
    margin-left: auto;
    margin-right: auto;
    font-size:130%
}





header{
    text-align: center;
    padding: 25px;
   
   
}



h1{
    /*text-shadow: gray 4px 6px 5px;*/
    margin-top:80px;
    

}
body h1{
    margin-left: 30px;
}

h2{
    font-size: 1.3em;
    /*text-shadow: gray 4px 6px 5px*/

}

nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
nav li{
    display:block;
    width: 20%;
    float: left;
    
}

 
nav a{
    text-decoration:none;
    color:white ;
    display:block;
    background-color: red;
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
}
nav a:hover{
    background-color: white;
    color:  red;
    font-size: 1.2em;
    transition: background-color 0.5s ease-in 0.2s,  color 0.5s ease-in 0.2s, font-size 2s ease;
    
}





main{
    padding:20px;
    margin-top: 70px;

}
main>img{
    width:25%;
    padding: 25px;
    float: right;
}

header>img{
    width: 30%;
    height: 30%;
    float:none;

}

.caption{
    display:block;
    
}

body>footer{
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear:both;
}
ul{
    list-style-type: circle;
  }

/*flexbox styles for index images */
div.gallery{
    display:flex;
    flex-flow:wrap;
    
}

div.imgGallery{
     flex:23%;
    max-width: 25%;
    padding:0 4px; 

}
div.imgGallery img{
    width:100%; 
    height:300px;
}


table{
    width:100%; 
    border: 10px double red;
    border-collapse: collapse;
    

}
th, td{
    height:35px;
    border:1px solid red;
    padding:10px;
}

thead, tfoot{
    background-color: red;
    color: white;
}


tbody tr:nth-of-type(even){
    background-color:green;
}
hr{
    clear:both;
}



/*Media Query for Flexbox 50% width*/
@media only screen and (max-width:1100px){
    div.imgGallery{
      flex:48%;
      max-width: 50%;
      }
}





/* media query for styles for tablets*/
  @media only screen and (max-width: 768px) {
  body{width: 100%;
       margin: 0;
      }
nav li{float: none;
    font-size: x-large;
    width: 100%;}
nav a{
    border-bottom:1px black ;
     }  
main>img{width: 90%;
         float:none;
        }

header img{
    float:none;
}

div.imgGallery{
     flex:100%;
    max-width: 100%;
}
  
table, tbody, tr, td, th{
        display:block;
}
thead, tfoot{
    display:none;
}
tbody td{
    position:relative;
    padding-left: 40%;
    height: auto;
}
td::before{
    content:attr(data-label);
    position:absolute;
    top:0px;
    left:0px;
    padding: 10px;
    width:40%;
    white-space:nowrap

}
form{
    width:100%;
    font-size: large;
}
fieldset{
    padding:5px;
    margin:0;
}
input, select{
    display: block;
    position:inherit;
    padding: 5px;
    height: 50px;
    
   }
   input[type='submit'], input[type='reset']
   {
     float: none;
     margin:10px;
     font-size: 1.2em;
    
   }
   nav.index li{
    width:100%;
  
}
body h1{
    text-align: center;
    margin-right: 20px;
}

}


/*media query for larger screens*/
  @media only screen and (min-width: 769px) {
   html{ background-image: url(Capri_Italian_Restaurant_-_June_2022_-_Sarah_Stierch_02.jpg);}
  
   form{
    width:90%;
   }
   fieldset {
    
    padding: 5px;
    margin-right: 10px;
    margin:0px 10px 10px 0px;
   }
   input, select{
    display: block;
    position:relative;
    left: 30%;
    padding: 5px;
    height: auto;
    width:60%;
   }

   label{
    display: block;
    position: absolute;
    padding: 5px;
    width: 30%;
   }

   input[type="radio"]{
   display: inline;
   position: inherit;
   left: 0;
   width: auto;
}
   label.radio{
    display: inline;
    position: inherit;
   }
   textarea{
    padding:10px;
    margin:10px;
   }

   input[type='submit'], input[type='reset']
   {
     display: block;
     float: left;
     left: 0;
     text-align: center;
     width:40%;
     padding: 10px;
     margin-left: 5px;
     margin-right: 5px;
     margin-bottom: 10px;

   }
   article{
    column-count: 4;
    column-gap: 10px;
    column-rule: 5px green dashed;
    
}
   
   article h2{
   column-span: all;
   }
    
    
}
  


/*form Styles*/

/*input:focus, select:focus, textarea:focus {
 background-color: rgb(220, 255, 220);
}

input#name:focus:valid
input#zip:focus:valid
input#phone:focus:valid
input#mail:focus:valid {
    background: rgb(220, 255, 220) url(rb_valid.png) bottom right/contain no-repeat;
}

input#name:focus:invalid
input#zip:focus:invalid
input#phone:focus:invalid
input#mail:focus:invalid {
    background: rgb(255, 232, 233) url(rb_invalid.png) bottom right/contain no-repeat;
} 
couldnt get the "correct" and "incorrect" thing working so oh well

*/

