 /*
  Author: Bailey Lucketta
  Date:07/31/2024
  File Name: styles.css 
*/

/* CSS Reset */
body, header, nav, main, footer, h1, div, img, figure, figcaption, section, article, aside, audio, video{
    margin: 0; 
    padding: 0;
    border: 0;
}

/* Style rules for body and images */
body {
    background-color: #524940;
}

img, video {
    max-width: 100%;
    display: block;
}

/* Style rule for box sizing applies to all elements */
*{
    box-sizing: border-box;
}

/* Style rules for mobile viewport */ 
 /* Style rule for header */
header{
    top: 0;
    background-color: #524940;
    height: 190px;
}

header img {
    margin: 0 auto;
    border-radius: 30px;
}

/* Style for rules for hamburger menu */
.mobile-nav a {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 2em;
    text-decoration: none;
    padding: 3%;
    display: block;
}

.mobile-nav a.menu-icon {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

/* Show mobile class, hide tablet-desktop class and menu-links id*/ 
.mobile {
    display: block;
}

.tablet-desktop, #menu-links {
    display: none;
}
 /* Style rules for main content */
main {
    background-color: #CBBAA0;
    padding: 2%;
    font-size: 1.15em;
    font-family: Arial, Helvetica, sans-serif;
    color:#211d1af3;
}

video {
    margin: 0 auto 4%;
}

.tel-link {
    background-color: #6B8D53;
    padding: 2%;
    margin: 0 auto;
    width: 80%;
    text-align: center;
    border-radius: 5px;
}

.tel-link a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    display: block;
}

.hours {
    margin-left: 10%; 
}

.action{
    font-size: 1.35em;
    color: #666600;
    font-weight: bold;
    text-shadow: 5px 5px 8px #ccc; 
}

.frame {
    position: relative;
    max-width: 100%;
    height: auto;
    margin: 2% auto
}

.pic-text {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 100%;
    padding: 20px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    font-weight: bold;
}

.round {
    border-radius: 8px;
}

.gradient {
    clear: left;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    background: radial-gradient(circle, #fff, #B2A08A);
    padding: 1% 2%;
    font-weight: bold;
}

.circle {
    border-radius: 50%;
}

.external-link{
    color: #6B8D53;
    font-weight: bold;
    text-decoration: none;
}

#contact {
    text-align: center;
}

.contact-email-link{
    color: #524940;
    text-decoration: none;
}

.map {
    border: 2px solid #000;
    width: 80%;
    height: 50%;
}

#form {
    margin-top: 2%;
    background-color: #6B8D53;
    padding: 2%;
    font-weight: bold;
}

#form h2 {
    text-align: center;
}

/* Style rules for form elements */
fieldset, input, select, textarea {
    margin-bottom: 2%;
}

fieldset legend {
    font-weight: bold;
    font-size: 1.25em;
}

label {
    display: block;
    padding-top: 3%;
}

form #submit {
    margin: 0 auto;
    border: none;
    display: block;
    padding: 2%;
    background-color: #524940;
    color: #fff;
    font-size: 1em;
    border-radius: 10px;
}

aside {
    text-align: center;
    font-size: 1.25em;
    font-weight: bold;
    padding: 2%;
    color:#fff;
    background-color: #6B8D53;
    box-shadow: 5px 5px 8px #000;
    text-shadow: 5px 5px 5px #000;
    border-radius: 15px;
}

/* Style rules for about content */
#about {
    text-align: center;
    margin: auto;
    width: 100%;
    background: radial-gradient(circle, #fff, #CBBAA0);
}

#about section{
    padding-bottom: 5%;
}

#about img {
    margin: auto auto;
    width: 65%;
    box-shadow: 10px 10px 10px #555555; 
}

/* Style rules for temperament content */
#temperament dt {
    font-size: 1.5em;
}

#temperament dd {
    padding: 0.5% 1% 2% 0;
}

#temperament img {
    margin: auto auto;
    width: 65%;
    box-shadow: 10px 10px 10px #555555; 
}

/* Style rules for footer content */
footer {
    font-size: 1em;
    text-align: center;
    color: #fff;
    padding: 5px 0.5em;
    background-color: #524940;
}

footer p a{
    color: #fff;
    text-decoration: none;
}

.social img {
    display: inline-block;
    padding: 0 0.5%;
    margin: auto auto;
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 640px), print{

    /* Tablet Viewport: Show tablet-desktop class, hide mobile class */
    .tablet-desktop {
        display: block;
    }

    .mobile, .mobile-nav {
        display: none;
    }

    /* Tablet Viewport: Style rule for header */
    header {
        padding-bottom: 2%;
    }

    /* Tablet Viewport: Style rules for nav area */
    nav {
        padding: 1%;
        margin-bottom: 1%;
        background-color: #524940;
    }
    
    nav ul{
        list-style-type: none;
        text-align: center;
    }

    nav li {
        font-size: 1.5em;
        font-family: Arial, Helvetica, sans-serif;
        display: inline-block;
        border-right: 1px solid #fff;
    }

    nav li:last-child {
        border-right: none;
    }

    nav li a {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 0.1em 0.75em;
    }

    /* Style rules for hero image */
    #hero img {
        width: 100%;
    }

    /* Tablet Viewport: Style rules for main content area */
    main ul {
        margin: 0 0 4% 10%;
    }

    .grid {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 20px;
    }

    .pic-text {
        font-size: 1em;
        padding: 10px;
    }

    .grid-item4 {
        grid-column: 1 / span 3;
    }

    .tel-num {
        font-size: 1.25em;
    }

    .map {
        width: 600px;
        height: 450px;
    }
    
    /* Tablet Viewport: Style rules for table */
    table {
        border: 3px solid #524940;
        border-collapse: collapse;
        margin: 0 auto;
        width: 100%;
    }

    caption {
        font-size: 1.5em;
        font-weight: bold;
        padding: 1%
    }
    
    thead th{
        background-color: #524940;
        color: #fff;
        font-size: 1.15em;
    }

    tbody {
        text-align: center;
    }

    th, td {
        border: 1px solid #524940;
        padding: 2%;
    }

    tr {
        background-color: #fff;
    }

    tr:nth-child(odd) {
        background-color: #B2A08A;
    }

    /* Tablet Viewport: Style rule for form element */
    form {
        width: 70%;
        margin: 0 auto;

    }
    
    #question-sticky {
        position: sticky;
        position: -webkit-sticky;
        bottom: 0;
        float: right;
        opacity: 0.90;
    }

    .close-button { 
        color: red; 
        font-size: 3em;
        float: right;
    }

}

/* Media Query for Desktop Viewport */
@media screen and (min-width:  1015px), print{
    /* Desktop Viewport: Style rule for header */
    header {
        width: 25%;
        float: left;
        padding-bottom: 0;
    }

    /* Desktop Viewport: Style rules for nav area */
    nav {
        float: right;
        width: 70%;
        margin: 4em 1em 0 0;
    }

    nav ul {
        text-align: center;
    }

    nav li {
        border: none;
    }

    nav li a {
        padding: 0.5em 1em;
    }

    nav li a:hover {
        color: #000; 
        background-color: #fff;
        transform: scale(1.2);
    }

    /* Desktop Viewport: Style Rules for main content */
    main{
        clear: left;
    }

    main h1 {
        font-size: 1.8em;
        padding-bottom: 1%;
    }

    .pic-text {
        font-size: 1.5em;
        padding: 20px;
    }

    .frame {
        opacity: 0.9; 
    }
    
    .frame:hover {
        opacity: 1;
        box-shadow: 8px 8px 10px #808080; 
        transform: translateY(10px);
    }

    /* Desktop Viewport: Style rules for form elements */
    form {
        width: auto; 
    }

    .form-grid {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 20px;
    }

    .btn {
        grid-column: 1 / span 3;
    }

    /* Desktop Viewport: Style rules for image elements */
    #about img {
        width: 40%;
    }

    #temperament img {
        width: 35%;
    }
}

/* Media Query for Large Desktop Viewports */
@media screen and (min-width: 1921px) {

    #container {
        width: 1920px;
        margin: 0 auto;
    }
}

/* Media Query for Print */
@media print {

    body {
        background-color: #fff;
        color: #000;
    }
}
