/* 
  Author: Myla Havryliuk
  Date: 09/25/2024
  File Name: styles.css
*/


/* CSS Reset */
body,
header,
nav,
main,
footer,
img,
h1,
h3 {
	margin: 0;
	padding: 0;
	border: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

/* Style rules for mobile viewport */
/* Existing .action style rule */
.action {
    font-size: 1.75em;
    font-weight: bold;
    text-align: center;
}

/* Style rules to show mobile class and hide tab-desk class */
.tab-desk,
.desktop {
    display: none;
}

/* Style rules for header area */
.mobile h1,
.mobile h3 {
    padding: 2%;
    text-align: center;
}

.mobile h1 {
    font-family: 'Emblema One', cursive;
    margin: 2% 0 0 3%;
}

.mobile h3 {
    font-family: 'Lora', serif;
}

main {
    font-family: 'Lora', serif;
}

/* Style rules for navigation area */
nav {
	background-color: #2a1f14;
}

nav ul {
	list-style-type: none;
	text-align: center;
}

nav li {
    display: inline-block; 
    font-size: 1.5em;
    font-family: Geneva, Arial, sans-serif;
    font-weight: bold;
    border-top: 0.5px solid #f6eee4; 
}

nav li a {
	display: inline-block;
	color: #f6eee4;
	padding: 0.5em 2em;
	text-decoration: none;
}
nav li a:hover {
    background-color: #f6eee4;
    color: #2a1f14;
}

/* Existing .action style rule */
.action {
    font-size: 1.75em;
    font-weight: bold;
    text-align: center;
}

/* New style rules for aside, figure, and figcaption elements */
aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
}

figure {
    border: 4px solid #2a1f14; 
    max-width: 400px; 
    margin: 2% auto; 
}

figcaption {
    padding: 2%; 
    border-top: 4px solid #2a1f14; 
}
figure img {
    width: 100%; 
    height: 200px; 
    object-fit: cover;
 }

/* Style rules for main content */
main {
    padding: 2%;
}

main p {
    font-size: 1.25em;
}

main h3 {
    padding-top: 2%;
}

main ul {
    list-style-type: square;
}

main p, main h2 {
    font-size: 1.25em;
    text-align: center;
}
/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { 
    margin: 0; 
    padding: 0; 
    border: 0; 
    font-size: 100%; 
    font: inherit; 
    vertical-align: baseline;
}

/* Styles for images and videos */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Style rules for skip navigation link */
skip {
    position: absolute;
    left: -999px;
}

skip:focus {
    color: #fff;
    background-color: #2a1f14;
    text-decoration: none;
    padding: 0.5%;
    top: auto;
    left: auto;
    right: 1px;
    z-index: 1;
}

/* FAQ Styles */
#questions p {
    cursor: pointer;
}

#answer {
    text-align: center;
    font-weight: bold;
    width: 80%;
    margin: 0 auto;
}

#answer h2 {
    display: none;
}

.link {
    color: #4d3319;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
}

/* Contact Centered */
#contact,
#form h2 {
    text-align: center;
    padding: 2% 0;
}

#contact footer {
    font-size: 0.85em;
    background-color: #2a1f14;
    color: #f6eee4;
    padding: 1% 0;
    margin-top: 2%; 
}

#contact footer a {
    color: #f3e6d8;
    text-decoration: none;
}

/* New Style Rule for Tel-link Class */
.tel-link {
    background-color: #2a1f14;
    color: #f6eee4;
    padding: 10px 20px;
    border-radius: 15px;
    width: 80%;
    margin: 0 auto; 
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

/* Style Rule for Anchor within Tel-link Class */
.tel-link a {
    color: inherit; 
    text-decoration: none; 
}

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

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

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

form #submit {
    margin: 0 auto;
    display: block;
    padding: 2%;
    background-color: #78593a;
    color: #f6eee4;
    font-size: 1.25em;
    border-radius: 10px;
}

/* Style rules for footer content */
footer {
	text-align: center;
	font-size: 0.85em;
	background-color: #2a1f14;
	color: #f6eee4;
	padding: 1% 0;
}

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

/* Style rules for mobile viewport */
@media screen and (max-width: 600px) {

  /* Hide tab-desk class */
  .tab-desk {
    display: none;
  }

  header h1 {
    font-size: 1.5em;
  }

  /* Mobile Navigation */
  .mobile-nav a {
    color: #fff;
    text-align: center;
    font-size: 2em;
    text-decoration: none;
    padding: 3%;
    display: block;
  }

  .mobile-nav a .nav-icon {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    color: #f6eee4;
    padding: 2%;
  }

  .nav-icon div {
    height: 40px;
    width: 40px;
    color: #2a1f14;
  }

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

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

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

  form #submit {
    margin: 0 auto;
    display: block;
    padding: 2%;
    background-color: #78593a;
    color: #f6eee4;
    font-size: 1.25em;
    border-radius: 10px;
  }

  #questions p {
    cursor: pointer;
  }

  #answer {
    text-align: center;
    font-weight: bold;
    width: 80%;
    margin: 0 auto;
  }

  #answer h2 {
    display: none;
  }
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 620px) {
    /* Tablet Viewport: Show tab-desk class, hide mobile class */
    .tab-desk {
        display: block;
    }

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

    /* Tablet Viewport: Style rules for nav area */
    nav li {
        border-top: none;
        display: inline-block;
        font-size: 1.25em;
        font-family:'Lora', sans-serif;
        font-weight: bold;
    }

    nav li a {
        padding: 0.5em;
        font-family:'Lora', sans-serif;
        font-weight: bold;
    }

    /* New style rule for grid class */
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        grid-gap: 10px; 
    }

    /* New style rule for aside in grid */
    aside {
        grid-column: 1 / span 2; 
    }

    /* Tablet Viewport: Style rule for form element */
    form {
        width: 70%;
        margin: 0 auto;
    }
    
    /* Tablet Viewport: Style rules for footer area */
footer {
    overflow: auto;
}

.copyright {
    float: left;
    width: 65%;
}

.social {
    float: right;
    width: 25%;
}
}

/* Desktop Viewport: Style rules for form elements */
@media screen and (min-width: 1000px) {

  form {
    width: auto;
  }

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

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

  /* Style rules for tables */
  table {
    border: 1px solid #2a1f14;
    border-collapse: collapse;
    margin: 0 auto;
  }

  caption {
    font-size: 1.5em;
    font-weight: bold;
    padding: 1%;
  }

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

  th {
    background-color: #2a1f14;
    color: #fff;
    font-size: 1.15em;
  }

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

  /* Style rules for skip navigation link */
  .skip {
    position: absolute;
    left: -999px;
  }

  .skip:focus {
    color: #fff;
    background-color: #2a1f14;
    text-decoration: none;
    padding: 0.5%;
    top: auto;
    left: auto;
    right: 1px;
    z-index: 1;
  }
}

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

  body {
    background: linear-gradient(#f6eee4, #78593a);
  }

  #wrapper {
    width: 1920px;
    margin: 0 auto;
    top: 0;
    bottom: 0;
  }

  main {
    background-color: #f6eee4;
  }
}

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

  body {
    background-color: white;
    color: black;
  }
}

/* Additional Mobile Style Rules */
#questions p {
  cursor: pointer;
}

#answer {
  text-align: center;
  font-weight: bold;
  width: 80%;
  margin: 0 auto;
}

#answer h2 {
  display: none;
}

.social img {
  display: inline-block;
  padding: 4%;
}

/* Tablet Viewport: Style rules for footer area */
@media screen and (min-width: 620px) {

  footer {
    overflow: auto;
  }

  .copyright {
    float: left;
    width: 65%;
  }

  .social {
    float: right;
    width: 25%;
  }
}

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

  .grid {
    grid-template-columns: 4;
  }

  aside {
    grid-column: 1 / span 4;
    font-size: 3em;
  }
}