@charset "utf-8";

/*
    
   My Personal Website Assignment 2 ITSS232
   Author: Tarrah Walker
   Date:   9/5/2026
   
   Filename: personal.css

*/



/* HTML and Body Styles */

html {
       background-color: rgb(185, 199, 215);
       background-size: cover;
      }

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    border-style: solid;
    border-width: 10px;
    border-color: rgb(22, 87, 59);    
}

body > footer {
    clear: both;
}

/* Heading Styles */

h1, h2 {
   text-align: center; 
   padding: 20px;
   text-shadow: 4px 6px 5px gray;
   }

h2 {
    font-size: 1.3em;
}

/* Navigation Styles */	
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: block;
    width: 20%;
    float: left;
}

nav a {
    display: block;
    background-color: rgb(176, 209, 191);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: rgb(26, 73, 121);
}

nav a:hover {
    background-color: rgb(161, 132, 96);
    color: rgb(230, 227, 188);
}

a#navicon {
   display: none;
}
/*
nav {
    background-color: rgb(176, 209, 191);
    padding: 15px;
    text-align: center;
}

nav a {
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
    color: rgb(26, 73, 121);
}

nav a:hover {
    color: rgb(91, 91, 91);
    text-decoration: underline;
}
*/

/* Main Styles */

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


/* Image Styles */

main > img {
    width: 25%;
    padding: 25px;
    float:right;
    border-style: solid;
    border-width: 10px;
    border-color: rgb(26, 73, 121);
}

header img {
    width: 100%;
}

/* Footer Styles */

footer {
    background-color: rgb(176, 209, 191);
    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;

}

/* List Styles */

ul {
    list-style-type: circle;
}

/*Flexbox Styles for Vacation Images*/

div.gallery {
   display: flex; 
   flex-wrap: wrap;
}
div.imgGallery {
    flex:23%;
    max-width: 25%;
    padding: 0 4px;
}
div.imgGallery img {
    width: 100%;
}

/* Form Styles */

form {
    width: 90%;
}

fieldset {
    width: 90%;
    padding: 5px;
    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: 0px 5px 10px 5px;
}

/*Validation 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#email:focus:valid {
    background: rgb(220 255 220) url(valid.png) bottom right/contain no-repeat;
}

input#name:focus:invalid,
input#zip:focus:invalid,
input#phone:focus:invalid,
input#email:focus:invalid {
    background: rgb(255 232 233) url(invalid.png) bottom right/contain no-repeat;
}

/* Media Query for Flexbox 50% Width */

@media only screen and (max-width: 1100px) {
    div.imgGallery {
    flex: 48%;
    max-width: 50%;
    }
}

/* Table Styles */

table {
   background: rgb(185, 219, 195);
   border: 10px solid rgb(22, 87, 59);
   border-collapse: collapse;
   font-size: 1em;
   width: 100%;
   color: rgb(123, 98, 80);
}
table th, table td {
   border: 1.5px solid rgb(22, 87, 59);
   padding: 5px;
   vertical-align: middle;
   text-align: center;
}
thead, tfoot {
    background-color: rgb(219, 203, 184);
    color: rgb(91, 73, 61);
}
tbody tr:nth-of-type(even) {
    background-color: rgb(232, 221, 209);
}

/* =========================
   Mobile Styles: 0 to 768px 
   =========================
*/

@media only screen and (max-width: 768px) {
    html {
       background-color: rgb(185, 199, 215);
    }
    body {
        width: 100%;
        margin: 0;
    }
    main > img {
        width: 90%;
        float:none;
        border-style: solid;
        border-width: 10px;
        border-color: rgb(26, 73, 121);
    }
    nav li {
        display: block;
        width: 100%;
        float: none;
        font-size: x-large;
    }
    nav a {
        border-bottom: solid black 1px;
    }
    a#navicon {
        display: block;
    }
    nav ul {
        display: none;
    }
    a#navicon:hover+ul, nav ul:hover {
        display: block;
    }
    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%;
        overflow: visible;
        height: auto;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        top: 0px;
        left: 0px;
        padding: 10px;
        width: 40%;
    }
    form {
    width:100%;
    font-size: large;
    }

    fieldset {
    width: 100%;
    padding: 5px;
    margin: 0;
    }

    input, select {
    display: block;
    position: inherit;
    padding: 5px;
    height: 50px;
    width: 90%;
    }

    label {
    display: block;
    position: inherit;
    height: 50px;
    width: 90%;
    }

    input[type='submit'], input[type='reset'] {
    float: none;
    width: 90%;
    margin: 10px;
    font-size: 1.2em;
    }
}


/* ==================================
   Desktop Styles: 769px and greater 
   ==================================
*/

@media only screen and (min-width: 769px) {
 
    html {
       background-image: url(Background_Image.jpg);
       background-repeat: no-repeat;
       background-attachment: fixed;
       background-position: center center;
}


}
