@charset "utf-8";
html{
    background-color:rgb(81,0,255);
    background-image:url(Ak.jpg.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
}

body{
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91,91,91);
    background-color: ivory;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    margin-bottom: 0px;
}

header{
text-align: center;
padding: 20px;
}
header img {
    width:100%;
    padding: 0;
    margin: 0;
    max-height: 300px;
    object-fit: cover;
}

h1, h2 {
   text-shadow: 4px 6px 5px gray;
}

/*nav{
    background-color:rgba(255, 0, 0, 0.5);
    padding: 15px;
    text-align: center;
}

nav a{
    padding-left: 10px;
    padding-right:10px;
    text-decoration: none;
    color:ivory;
}

nav a hover{
    text-decoration: underline;
    color:brown;
} */
nav ul {
    list-style:none;
    margin: 0;
    padding: 0;
}
nav li {
    display: block;
    width: 20%;
    float: left;
}
nav a {
    text-decoration: none;
    display: block;
    background-color: rgb(197, 215, 219);
    line-height: 2.8em;
    text-align: center;
    color: rgb(91, 91, 91);
}
nav a:hover {
    background-color: rgb(83, 142, 179);
    color: white;
    font-size:1.2em;
    transition: background-color 0.5s ease-in 0.2s, color 0.5s ease-in 0.2s, font-size 1s ease;
}

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

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

body > footer{
    background-color:rgb(7, 7, 7);
    color: rgba(102,102,102,0.6);
    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;
}

div.gallery {
    display: flex;
    flex-flow: wrap;
}
div.imgGallery {
    flex:23%;
    max-width:25%;
    padding: 0 4px;
}
div.imgGallery img {
    width: 100%;
}
@media only screen and (max-width: 1100px) {
div.imgGallery {
    flex:48%;
    max-width: 50%; 
}
}
table {
    width: 100%;
    border: 10px double rgb(7, 93, 146);
    border-collapse: collapse;
}
th, td {
    height: 35px;
    border: 1px solid gray;
    padding: 10px;
}
thead, tfoot {
    background-color: rgb(7, 93, 146);
    color: white;
}
tbody tr:nth-of-type(even) {
    background-color: rgb(197,208,221);
}
@media only screen and (max-width: 768px) {

    body{
        width: 100%;
        margin: 0;
    }
    a#navicon {
        display: block;
        text-align: center;
    }
    nav.horizontal ul {
        display: none;
    }
    a#navicon:hover+ul, nav.horizontal ul:hover {
        display: block;
    }
    nav li{
        float:none;
        font-size: x-large;
        width: 100%;
    }
    nav a{
            border-bottom: solid black 1px;
        }
        main>img {
            width: 90%;
            float: none;
            padding: 0px;
        }
        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;
            text-align: left;
            border-bottom: 1px solid white;
        }
        td::before {
            content: attr(data-label);
            position: absolute;
            top: 0px;
            left: 0px;
            padding: 10px;
            width: 40%;
            white-space: nowrap;
        }
    } 

    
   
/*@media only screen and (max-width: 769px) {
    html{
        background: hsl(200, 20%, 47%) url(Ak.jpg.jpg) center center / cover no-repeat fixed;
    }
    body {
        width: 75%;
    }
    article {
        margin-top: 15px;
        column-count: 2;
        column-gap: 30px;
        column-rule: 2px solid gray;
        widows: 3;
        orphans: 3;
    }
}

.float-right{
    float: right;
    margin: 10px;
    width: 250px;
}*/

input:focus, select:focus, textarea:focus {
    background-color: rgb(220, 255, 220) 
}
input:valid, select:valid, textarea:valid {
     background: rgb(220, 255, 220) url(rb_valid.png) bottom right/contain no-repeat;
}

input:invalid, select:invalid,textarea:invalid {
     background: rgb(220, 255, 220) url(rb_invalid.png) bottom right/contain no-repeat;
}


@media screen and (min-width: 601px) {
    form { 
        width: 90%;
    }
    fieldset {
        width: 90%; 
        padding: 5px; 
        margin: 0 10px 10px 0;
    }
    input, select, textarea {
        display: block;
        position: relative;
        left: 30%;
        width: 60%;
        padding: 5px;
        height: auto;
    }
    label {
        display: block;
        position: inherit;
        width: 30%;
        padding: 5px;
    }
    input[type="radio"] {
        display: inline;
        position: inherit;
        left: 0;
        width: auto;
    }
    label.radio {
        display: inline;
        position: inherit;
    }
    #submit, #reset {
        display: block;
        float: left;
        position: relative;
        left: 0;
        text-align: center;
        width: 40%;
        padding: 10px;
        margin: 0 5% 10px 5%;
    }
}
@media screen and (max-width: 600px) {
    form { 
        width: 100%; 
        font-size: large;
    }
    fieldset {
        width: 100%; 
        padding: 5px; 
        margin: 0;
    }
    label,input, select,textarea {
        display: block; 
        position: inherit;
        width: 90%; 
        height: 50px; 
        padding: 5px; 
        margin: 5px auto;
    }
    #submit, #reset {
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }
}
