* {
    font-size: 16px;
    color:#252525;
    margin:0;
    padding:0;
    box-sizing: border-box;
    
}

#wrapper {
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;

    display:grid;
    grid-template-areas: 
        "header"
        "main"
        "footer";
    grid-template-rows: 100px minmax(650px, auto) 100px;
    grid-template-columns: 1fr;
    background-color: #f7f3ea;

}

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
}

header {
    grid-area:header;

    display:grid;
    grid-template-areas: 
        "logo nav";
    grid-template-columns: 1fr auto;
    background-color: #f7f3ea;
}

#logo {
    display: flex;
    height: 70px;
    width: auto;
    margin:1rem;
    
}

#logo-title {
    grid-area: logo;
    font-family:'geist pixel';
    font-size: 2rem;
    color:#252525;
    letter-spacing: .75rem;
}

header p {
    grid-area: logo;
    font-family:'red hat mono';
    font-size: 1rem;
    padding: 0 .5rem .5rem .5rem;
    color:#24352b;
    letter-spacing: .2rem;
}

header a {
    text-decoration: none;
}

#hamburger {
    grid-area: nav;
    font-size: 2em;
    border: none;
    width:2em;
    cursor: pointer;
    display: none;
}

nav {
    grid-area: nav;
    height: 100px;
}

nav ul {
    list-style: none;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin:3rem 2rem 0 0;
}

nav a {
    text-decoration: none;
    font-size: 1.1em;
    font-family: 'red hat mono';
    letter-spacing: .1rem;
    font-weight: 450;
    color:#252525;
}

nav a:hover {
    text-decoration: underline;
}

#index-main {
    min-height: 75vh;
    height:auto;
    display: grid;
    grid-template-areas:
        "article aside" ;
    grid-template-columns: 1fr 1fr;
}

#index-main article {
    grid-area: article;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items:flex-start;
    gap: 1.5rem;
    margin-left: 6rem;
}


#index-main h1 {
    font-family: "geist pixel";
    font-size: 3rem;
    color:#252525;
}

#index-main p {
    font-family: "red hat mono";
    font-size: 1.5rem;
}

#index-main article a {
    font-family: "geist pixel";
    font-size: 1.5rem;
    font-weight: bold;
    color: #252525;
}

#index-main aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#index-main video {
    width:100%;
    max-width: 700px;
    height:auto;
    border-radius: 15px;
    
}
#index-main video:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

#index-main video::cue {
    background-color: #252525;
    color: #f7f3ea;
    font-family: 'red hat mono';
    font-size: 1.5rem;
    
}
#index-main img {
    width: 240px;
    height: 312px;
}

details {
    padding: 1rem;
    justify-content: left;
    width: 100%;
}

summary {
    font-family: 'geist pixel';
}
details p {
    font-size: .8rem !important;
    line-height: 1.5;
}

#herd {
    font-family: "geist pixel";
    font-size: 3rem;
    color: #8e1d1f;
    background-color: transparent;
}

#arrow1 {
    font-size: 2rem;
    color: #252525;
}

#about-main {

    grid-area: main;

    display: grid;
    grid-template-areas: 
        "article aside";
    grid-template-columns: 1fr 1fr;
    background-color: #f7f3ea;
    width: 90%;
    max-width: 1250px;
    margin: 2rem auto 0;
    gap:4em;
}


#about-main article {
    grid-area: article;
}

#about-main img {
    border-radius: 15px;
}

#about-main aside {
    grid-area: aside;
    
    display:flex;
    flex-direction: column;
    
    gap: 1rem;
    padding: 2rem;
    height: 600px;
    width: 600px;
    background-color: #ffffff;
    border-radius: 15px;
    text-align: left;
}

#about-main aside h1 {
    font-size: 1.5em;
    letter-spacing: .05rem;
    font-family: "geist pixel";
    color:#8E1D1F;
    background: transparent;
}

#about-main aside p {
    font-size: 1.2em;
    letter-spacing: .05rem;
    font-family:'red hat mono';
    color:#252525;
    background: transparent;

}

#services-main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1500px;
    margin:2rem auto 0;
    
}

#services-main section {
    width: 1250px;
    height: auto;
}

#services-main h1 {
    color:#8E1D1F;
    font-size: 1.5rem;
    font-family: 'Geist Pixel';
    font-weight: bolder;
    display:flex;
    justify-content: center;
}

#services-main h2 {
    margin-bottom: .25rem;
    color:#8E1D1F;
    font-size: 1.2em;
    font-family: 'geist pixel';
    background: transparent;
    padding:0 .5rem;
}

#services-main p {
    color:#252525;
    background: transparent;
    letter-spacing: .02rem;
    font-size: 1.2rem;
    font-family: 'red hat mono';
    padding:0 .5rem;
}

table {
    font-family:'red hat mono';
    width: 100%;
    border-collapse:collapse;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

caption {
    font-size: 1.5rem;
    font-weight: bolder;
    color: #8E1D1F;
    font-family: 'geist pixel';
    margin: 1rem;
}

tr, th ,td {
    padding: .75rem;
    border: #24352b 1px solid;
}

th {
    background-color: #24352b;
    font-family: 'geist pixel';
    color: #f7f3ea;
    font-size: 1.2rem;
    letter-spacing: .1rem;
    padding: 1.2rem 0.75rem;
}
td {
    text-align: center;
}
#work p {
    color:#f7f3ea;
    font-family: 'geist pixel';
    font-size: 1.2rem;
}

#work {
    display:block;
    text-align: left;
    margin: 0 0 1rem auto;
    padding: 0rem 1rem .5rem 1rem;
    background-color:#24352b;
    width: 300px;
    text-decoration: none;
    border-radius: 15px;
    white-space: nowrap;
    margin-bottom: 1rem;
    
}

#arrow {
    font-size: 1.8rem;
    color: #f7f3ea;
}

#portfolio-main {
    grid-area: main;
    
}

#portfolio-main h1 {
    color:#8E1D1F;
    font-size: 1.5rem;
    font-family: 'Geist Pixel';
    font-weight: bolder;
    display:flex;
    justify-content: center;
    margin: 1rem 0 2rem;
}

#portfolio-container {
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 425px));
    gap:1rem;
    margin: 1rem;
}

.portfolio-card {
    display:flex;
    flex-direction: column;
    gap:.25rem;
    margin:1rem;
}

#portfolio-main img {
    width:100%;
    height: 250px;
    border-radius: 15px;
}


#portfolio-main h2 {
    font-family: 'geist pixel';
    font-size: 1.5rem;
    color: #8E1D1F;
}

#portfolio-main h3 {
    font-family: 'red hat mono';
    font-weight:400;
    font-size: 1.2rem;
}

#portfolio-main p {
    font-family: 'red hat mono';
    width: 100%;
    font-size: 1rem;
    font-weight: 300;
    

    
}
#contact-main {
    display:grid;
    grid-template-areas: 
        "form map";
    grid-template-columns: 1fr 1fr;
    background-color: #f7f3ea;
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 4rem;
}
#contact-main section {
    grid-area: form;
}

form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 600px;
    height: auto;
    background-color:#ffffff;
    padding: 1em;  
    margin: 0 auto;
    font-family: 'red hat mono';
    border-radius: 15px;
    
}

label {
    color: #24352b;
    background-color: #ffffff;
    letter-spacing: .1em;
}


input {
    border-radius: 5px;
    border: 1px solid #24352b;
    background-color: #ffffff;
    height: 30px;
    padding-left: .5rem;
    font-family: 'red hat mono';
    
}

input:focus {
    outline: 2px solid #8E1D1F;
}

input[type=submit] {
    font-family: "geist pixel";
    font-size: 1rem;
    letter-spacing: .1em;
    color:#ffffff;
    background-color: #8E1D1F;
    width: 150px;
    height: 40px;
    margin:0 auto;
    margin-top: .5rem;
    border-radius: 15px;
    border: none;
}

#checkbox {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:.5rem;
}

#checkbox input {
    width: 25px;
    height:25px;
    accent-color: #8E1D1F;
}

select {
    border-radius: 5px;
    height: 40px;
    font-family: 'red hat mono';
    padding-left: .5rem;
}

select:focus {
    outline: 2px solid #8E1D1F;
}

option {
    font-family: 'red hat mono';
}
.tooltip {
	display: block; 
	position: absolute; 
	visibility: hidden;
	left: 20em;
	top: 20em; 
	width: 250px;
	padding: 0.5em;
	font-weight: normal;
	color: #ffffff;
	background-color: #8E1D1F;
    border-radius: 5px;
}
.error {
	color: #8E1D1F;
}

#contact-main aside {
    grid-area: map;
    height: 550px;
    width: 600px;
    border-radius: 15px;
    padding: 1rem;

    display:flex;
    flex-direction: column;
}

#hcard-Marly-Gibson{
    background-color:#8d9e85;
}
#contact-main h1 {
    font-family: 'red hat mono';
    font-weight: 400;
    margin-bottom: 1rem;;
    font-size: 1.5rem;
    
}

#contact-main aside p {
    font-family: 'red hat mono';
    font-size: 1rem;
    font-style: normal;
    margin: 0;

}

.org {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.email {
    font-family: 'red hat mono';
    font-size: 1rem;
    font-style: normal;
    margin-bottom:1rem;
}

.adr {
    line-height: 1.5;
}


#map {
    display:block;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
}

#error-main  {
    display:flex;
    align-items: center;
    justify-content: center;
    
}

#error-main h2 {
    font-family: 'geist pixel';
    font-size: 10rem;
    color: #8E1D1F;
    margin-bottom: 1rem;
}

#error-main h3 {
    font-family: 'geist pixel';
    font-size: 2rem;
    margin-bottom: 1rem;
}
#error-main h4 {
    font-family: 'red hat mono';
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

#error-main p {
    font-family: 'red hat mono';
    width: 200px;
    background-color:#24352b;
    color:#f7f3ea;
    font-size: 1.2rem;
    padding: 0rem 1rem .5rem 1rem;
    border-radius: 15px;
}
#error-main a {
    text-decoration: none;
}

footer {
    grid-area: footer;
    background-color: #24352b;
    
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    
}
#socials img {
    width: 40px;
    height: 40px;
}

#socials {
    display:flex;
    gap:1rem;
    justify-content: center;
    align-items: center;
}






@media screen and (max-width: 1000px) {

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position:relative;
} 

header h1 {
    font-size: 1.5rem;
}

header p {
    font-size: .8rem;
}

#logo {
    height: 50px;
}

#hamburger {
    font-size: 2.5rem;
    cursor: pointer;
    display: block;
    background-color: #f7f3ea;
    padding: .5rem;
    color:#24352b;
}

nav {
    display: none;
}

nav.open {
    display: block;
    position:absolute;
    top: 80px;
    right: 0;
    width: 100%;
}

nav ul {
    display:flex;
    flex-direction: column;
    gap:1rem;
    margin: 1rem;
    padding: 1rem;
    align-items: center;
    background-color: #24352b;
    border-radius: 15px;
}

nav ul li a {
    color:#f7f3ea;
}



#index-main {
    height:auto;
    grid-template-areas:
        "article"
        "aside";
    grid-template-columns: 1fr;
}

#index-main article {
    margin-left: 2rem;
}


#index-main h2 {
    font-size: 2rem;
}

#herd {
    font-size: 2rem;
}
#index-main p {
    font-size: 1.5rem;
}
#index-main article a {
    font-size: 1.2rem;
}

#index-main aside {
    padding: 0rem;
    display: flex;
    justify-content: center;
}

#index-main img {
    width: 180px;
    height: 252px;
}
#about-main {
    grid-template-areas: 
        "article"
        "aside";
    grid-template-columns: 1fr;
    gap: .5rem;
    margin: 0;
    width:100%;
    
} 

#about-main img {
    width: 95%;
    height: auto;
   display: block;
    margin:0 auto;
}    

#about-main aside {
    width:95%;
    margin: 0 auto;
    height: auto;
    margin-bottom: 1rem;
    padding: 1rem;
}

#about-main aside h2 {
   font-size: 1.5em;
}

#about-main aside p {
    font-size: 1rem;
}


#about-logo img, #services-logo img, #portfolio-logo img, #contact-logo img {
    height: 80px;
    margin: .5rem;
}


#services-main {
        gap: .2rem;
        padding: 0 2rem;
        margin: 0;
    }
    
#services-main section {
    width: 100%;
    height: auto;
    
}

#services-main h2 {
    margin-bottom: .25rem;
}

#services-main p {
    font-size: 1rem;
    margin-bottom: .5rem;
}

table {
    width: 100%;
    table-layout: fixed;
}
th {
    font-size: .8rem;
    padding:.5rem;
}
#work p {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#work {
    width: 250px;
    height: 40px;
    padding: 0;
}

#arrow {
    margin-left: .3rem;
    margin-bottom: .4rem;
}

#portfolio-container {
   grid-template-columns: repeat(2, minmax(0, 425px));
} 

#contact-main {
    grid-template-areas: 
        "form"
        "map";
    grid-template-columns: minmax(0,1fr);
    width: 100%;
    max-width: 100%;
    margin:2rem 0 0;
    gap: 1rem;
    padding:0 1rem;
    box-sizing: border-box;
}

#contact-main section,
#contact-main form {
    width: 100%;
    max-width: 100%;
    min-width:0;
    box-sizing: border-box;
}

#contact-main form {
    margin: 0;
    height:auto;
}

form input, form select {
    max-width: 100%;
    max-width: 100%;
    min-width:0;
    box-sizing: border-box;
}

input[type=submit]{
    width: 125px;
}
#contact-main aside {
    width: 100%;
    height: auto;
    margin: 0;
    margin-bottom: 1rem;

}

#map {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
}

#socials img {
    width: 25px;
    height: 25px;
    
}

footer p {
    font-size: .9rem;
}


}
@media screen and (max-width: 850px) {
    #portfolio-container {
        grid-template-columns: 1fr;
        max-width: 425px;
        margin: 1rem auto;
    }
    .tooltip {
        left: 5em;
}

@media screen and (max-width: 450px) {
    header h1 {
        font-size: 1.1rem;
        letter-spacing: .25;
        margin-left: .25rem;
    }

    header p {
        font-size: .65rem;
        letter-spacing: .2rem;
    }

    #index-main p {
        font-size: 1.2rem;
    }

    #index-main aside img {
        height: 250px;
        width: 175px;
        margin: 0;
        margin: 1rem 0;
     }

   #portfolio-container {
        grid-template-columns: 1fr;
   }
    
   .tooltip {
	left: 5em;
	
}
    
}