/* style.css */
/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}


/* Navigation Menu */
nav{
    background-color: white;
    box-shadow:  3px 3px 5px rgba(0, 0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: 5px solid gold;
}
nav img{
    width: auto;
    height: 100%;
}
nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content:  flex-end;
    align-items: center;
}

nav li{
    height: 50px;
}
nav a{
    height:  100%;
    padding:  0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
}
nav a:hover{
    background-color: gold;
    color: black;
}


nav li:first-child{
    margin-right:  auto;
}

nav li:first-child a:hover {
    background-color: white;
}
.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter:  blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);    
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.sidebar li{
    width: 100%;
}
.sidebar a{
    width: 100%;
}
.menu-button{
    display:  none;
}
.login-link{
    color: rgb(76, 76, 205);
}
.sub-menu-items {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

/* -- Styling Headings */
h1 {
    width: 100%;    
    margin-top: 4rem;
    padding-right: 2rem;
    display: block;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: gold;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    text-align: right;

}
h2 {
    width: 100%;
    padding: 1rem .5rem 1rem 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid goldenrod;

}

p {
    min-width: 100%;
    padding: .8rem .5rem .5rem 1.2rem;
    color: #666;
    font-family: 'Segoe UI', Tahoma, 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-style: oblique;
    color: brown;

}
a:hover {
    color: rgba(165, 42, 42, 0.553);
}

button {
    background-color: gold;
    border: 2px solid brown;
    border-radius: 6px;
    width: auto;
    height: 2rem;
    padding: .4rem .8rem;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* -- Styling the Header Section iwht a background image */

.header {
    min-height: 16.5rem;
    background-color: aquamarine;
    background-image: url(../images/sec-cards.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    border-bottom: green 5px solid;
    grid-area: hdr;
    display: flex;
    flex-direction: row;
}

.header h1 {
    width: 100%;    
    margin-top: 4rem;
    padding-right: 2rem;
    display: block;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: gold;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    text-align: right;

}

/* -- Styling the Main section with additional sections. */
main {
    width: 100%;
    height: auto;    
    min-height: 20rem;
    background-color: beige;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: 
        "left center right";
    gap: 10px;
}

.sections {
    padding: 2rem;
    min-height: 18rem;
}

#section-focus {
    display: none;
}

.left-col {
    background-color: bisque;
    display: none;
}

.left-menu {
    background-color: bisque;
    grid-area: left;
    display: block;
}

.left__menu {
    width: 100%;
    min-height: 100%;
    padding: 1rem 0 .5rem 2rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.left__menu li {
    width: 85%;
    height: 3rem;
    margin: 5px 0 5px 5px;
    padding: .7rem .5rem 1rem 2rem;
    border: 1px solid beige;
    border-radius: 16px 0 0 16px;
}

.left-menu ul li:hover {
    background-color: beige;
}

.left-menu ul li a {
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 450;
    color: brown;
}

.left-menu ul li a:hover {
    color: rgba(165, 42, 42, 0.523);
}

.mn-icons {
    float: right;
}

#menu-visited {
    background-color: beige;
}
.top-col {
    display: none;
}
section {
    grid-area: center;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
        "sec1"
        "sec2"
        "sec3"
        "sec4"
        "sec5"
        "sec6"
        "sec7";
}

#sec1 {
    grid-area: sec1;
}
#focmenuitems {
    display: none;
}
#sec2 {
    grid-area: sec2;
}
#sec3 {
    grid-area: sec3;
}
#sec4 {
    grid-area: sec4;
}
#sec5 {
    width: 90%;
    margin: 1rem auto;
    border: 1px solid rgb(242, 136, 6);
    border-radius: 9px;
    grid-area: sec5;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 3rem minmax(5rem, 10rem) 1fr;
    grid-template-areas: 
        "fttl fimg"
        "fhdg fimg"
        "ftxt ftxt";
    gap: 10px;
    justify-content:space-evenly;
}
#foc-menu-items {
    display: none;
}
.foc-ttl {
    grid-area: fttl;
}
.foc-ttl h3 {
    display: block;
    width: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: brown;
}
.foc-img {
    min-width: 100%;
    grid-area: fimg;
}
.foc-img img {
    width: 100%;
    display: inline-flex;
    border: 2px solid goldenrod;
    border-radius: 5px;
}
.foc-hdg {
    grid-area: fhdg;
}
.foc-hdg h4 {
    display: block;
    width: 100%;
    font-size: .8rem;
    font-weight: 500;
    color: #333;
    font-style: oblique;
}
.foc-txt {
    border-top: 2px solid goldenrod;
    padding: 1rem 0;
    grid-area: ftxt;
}
.foc-txt p {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: .9rem;
    line-height: 1.6;
}

#sec6 {
    grid-area: sec6;
}
#sec7 {
    display: flex;
    flex-direction: column;
}
#gals {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;

}
#gals .gal-item {
    width: 100%;
    padding: 1rem;
}
.gal-item img {
    width: 100%;
    height: 4rem;
    display: inline-flex;
    border: 1px goldenrod;
    border-radius: 5px;
    box-shadow: 2px 2px 2px #333;
}

#gal {
    width: 100%;
    min-height: 100%;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    justify-content: center;
    align-items: center;
}
#gal img {
    display: inline-flex;
    max-width: 100%;
    height: auto;
    border: 3px solid brown;
    border-radius: 5px;

}
#sec8 {
    background-color: aquamarine;
    grid-area: sec7;
    display: none;
}
.sections .card-info {
    width: 80%;
    min-height: 5rem;
    border: 1px solid brown;
    border-radius: 8px;
    margin: 1rem auto;
    padding: 1rem;
    box-shadow: 5px 5px 5px gray;
}

.sections .card-info:hover {
    box-shadow: 2px 2px 8px 4px rgba(0, 0, 0, 0.3);
}

.sections .card-info a {
    color: brown;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sections .card-info a:hover {
    text-decoration: underline;
}

.sub-content {
    width: 100%;
    padding-top: 2rem;
    background-color: bisque;
    grid-area: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.sub-content h3 {
    display: block;
    width: 100%;
    padding: 1.2rem;
    /*border-bottom: 1px solid brown;*/
}
.sub-content img {
    display: inline-flex;
    max-height: 8rem;
    width: auto;
    margin: 1rem 0 .5rem 0;
    border: 1px solid brown;    
    border-radius: 50%;
}
.sub-content .foc-msg {
    width: 80%;
    margin: 1rem auto;
    height: 3rem;
    border: 1px solid goldenrod;
    border-radius: 8px;
    box-shadow: 2px 2px 8px 4px rgba(83, 79, 79, 0.3);;
    
}
.sub-content .foc-icons {
    margin-right: 10px;
}
#rub-foc-item {
    border-bottom: 1px solid brown;
}
.sub-content p {
    font-size: .85rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-style: oblique;
    color: #333;
    padding: .8rem;
}

.foc-msg a {
    font-size: inherit;
    color: #666;
}

.proj-images {
    min-width: 100%;
    min-height: 16rem;
    padding: 1rem;
    border: 1px solid goldenrod;
    border-radius: 5px;
    box-shadow: 5px 5px 5px bisque;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;    
    gap: 2rem;
}

#prod-cards .proj-img .prod-caps {
    width: 100%;
    display: inline-block;
    font-size: .9rem;
    text-align: center;
    font-style: italic;
    color: #404040;
}

.proj-images img {
    width: 100%;
    display: inline-block;
    border: 1px solid bisque;
    border-radius: 1.5rem;
}

#rub-foc-item {
    background-color: darkkhaki;
    color: white;
}

#rub-foc-item a {
    color: white;
}

/* -- Styling the Footer */
footer {
    min-height: 8rem;
    background-color: brown;
    border-top: 5px solid goldenrod;
    display: flex;
}

.footer {
    padding: .5rem 1rem;
}
.footer p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: .7rem;
    color: beige;
    text-align: center;
}


/* Media Queries */
@media(max-width: 992px){
    .header h1 {
        font-size: 3rem;
        font-weight: 700;
    }
    .sections p {
        font-size: 1rem;
    }

    .sections h2 {
        padding-top: 1rem;
        font-size: 1.2rem;
        padding: .5rem .7rem;
    }
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block;
    }
    .login-link{
    color: rgb(35, 1, 1);
    }
    h1 {
        font-size: 2.5rem;
    }
    .header {
        min-height: 14rem;
    }
    main {
        grid-template-columns: 1fr 5fr;
        grid-template-areas: "left center";
        gap: 0;
    }
    .left-col {
        background-color: bisque;
        width: 100%;
        grid-area: left;
        color: black;
        display: block;
    }
    .left__menu  {
        padding: 0;
        align-items: flex-end;
    }

    .left-menu {
        display: none;
    }

    .proj-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        width: 100%;
        grid-area: center;
        display: grid;
    }
    #gals {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;

    }
    .gal-item img {
        height: 3rem;
    }
    .sub-content {
        display: none;

    }
    #focmenuitems {
        display: block;
    }
    #focmenuitems ul {
        list-style: none;;
    }
    
}

#sec-hide {
    display: none;
}

@media(max-width: 430px){
    .header h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }
    .sections p {
        font-size: .8rem;
    }

    .sections h2 {
        padding-top: 1rem;
        font-size: 1rem;
        padding: .5rem .7rem;
    }
    .sidebar{
        width: 100%;
    }

    main {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "top"
            "center";
        justify-content: flex-start;
    }
    .top-col {
        width: 100%;
        margin: 0;
        padding: 0;
        grid-area: top;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .left-col {
        display: none;
    }
    .left__menu {
        background-color: bisque;
        width: 100%;
        margin:0 10px 0 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .left__menu li {
        background-color: bisque;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 1rem 0;
    }
    .left__menu li a {
        text-align: left;
    }
    .left__menu li:hover {
        background-color: bisque;
    }

    .left__menu li a:visited {
        background-color: bisque;
    }
    #menu-visited {
        background-color: bisque;
        color: beige;
    }
    #focmenuitems {
        display: block;
    }
    #focmenuitems ul {
        list-style: none;;
    }
    #sec5 {
        width: 95%;
        margin: 10px auto;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 5rem 7rem 4rem 1fr 8rem;
        grid-template-areas: 
            "fttl"
            "fimg"
            "fhdg"
            "ftxt"
            "ficn";
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .foc-ttl {
        grid-area: fttl;
    }
    .foc-img {
        grid-area: fimg;
    }
    .foc-hdg {
        grid-area: fhdg;
    }
    .foc-txt {
        grid-area: ftxt;
    }
    .foc-icons {
        grid-area: ficn;
    }
    #foc-menu-items {   
        width: 100%;
        min-height: 100%;
        padding: 10px 12px;    
        background-color: bisque;
        border: 1px solid brown;
        border-radius: 5px;
        grid-area: ficn;
        
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 40px;
        grid-template-areas: 
            "";
        gap: 10px;
        
    }

    #foc-menu-items .foc-items {
        list-style: none;
        min-width: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
    }
    .foc-img img {
        max-width: 70px;
        height: auto;
        margin: 5px auto;
        border-radius: 5px;
    }
    #foc-menu-items .foc__item__img {
        height: 50px;
        width: auto;
    }
    #sec4 .proj-images {
        grid-template-columns: 1fr;
    }
    .proj-images img {
        border-radius: 1rem;
    }
    #gals {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;

    }
    
    .gal-item img {
        height: 2rem;
    }
}