@charset "utf-8";

/*
    
   Final Assignment ITSS232
   Author: Tarrah Walker
   Date:   10/10/2026
   
   Filename: personal.css

*/



/* HTML and Body Styles */

html {
       background-color: rgb(162, 185, 212);
       background-size: cover;
      }

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(55, 46, 101);
    background-color: ivory;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    border-style: solid;
    border-width: 10px;
    border-color: rgb(42, 113, 148);    
}

body > footer {
    clear: both;
}

/* Heading Styles */

h1, h2 {
   text-align: center; 
   padding: 20px;
      }

h2 {
    font-size: 1.3em;
}

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

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

nav a {
    display: block;
    background-color: rgb(42, 113, 148);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: rgb(225, 229, 232);
}

nav a:hover {
    background-color: rgb(136, 196, 198);
    color: rgb(209, 205, 146);
    font-size: 1.2em;
    transition: background-color 0.5s ease-in 0.2s, color 0.5s ease-in 0.2s, font-size 1s ease;
}

a#navicon {
   display: none;
}

/* Main Styles */

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


/* Image Styles */

main > img {
    width: 18%;
    max-height: 675px;
    padding: 20px;
    float: left;
    margin-right: 30px;
    border-style: inset;
    border-width: 10px;
    border-color: rgb(65, 47, 139);
}

header img {
    max-height: 350px;
    width: 100%;
}

/* Footer Styles */

footer {
    background-color: rgb(204, 233, 239);
    color: rgba(128, 94, 94, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;

}

/* List Styles */

.two-column-list {
    columns: 2;
    list-style: none;
}

.two-column-list li {
    background-image: url("bullet_point.jpg"); 
    background-repeat: no-repeat;
    background-size: 42px 20px;             
    padding-left: 50px;                     
    margin-bottom: 12px;                   
}

/*Embedded YouTube Video*/
.video-container {
    text-align: center;
}

/*Flexbox Styles for Photo Gallery*/

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: 85%;
}

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(104, 198, 214);
   border: 10px solid rgb(125, 145, 136);
   border-collapse: collapse;
   font-size: 1em;
   width: 100%;
   color: rgb(112, 49, 4);
}
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(237, 214, 186);
    color: rgb(81, 66, 56);
}
tbody tr:nth-of-type(even) {
    background-color: rgb(166, 218, 224);
}

/* =========================
   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(sand_background.jpg);
       background-repeat: no-repeat;
       background-attachment: fixed;
       background-position: center center;
}


}
