@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    max-width: 100vw;
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden;
    
}

:root {
    --RED: #f30b0b;
    --GRAY: #222222;
    --OFF-WHITE: #eeeeee;
    --LIGHT-GRAY: #dddddd;
    --ARTICLE-SHADOW: #959595 2px 2px 25px 0;        
}
/* HEADER STYLING */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-height: 60px; 
}

/* making the hamburger menu */

.menu {
    display: block;
    width: 60px;
    height: 60px;
    background-color: var(--RED);
    background-image: url('../img/ic_menu_white_24px.svg');
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;
    cursor: pointer;
}

#menu {
    height: 0;
    width: 0;
    opacity: 0;
}

.menu:has(#menu:checked) ~ .header-nav-menu {
    left: 0;
}

/* END of making the hamburger menu  */

/* making the nav menu  */

.header-nav-menu {
    position: absolute;
    top: 100%;
    left: 100%;
    width: 100%;
    background-color: var(--GRAY);
    z-index: 1;
}

.header-nav-menu ul {
    list-style: none;
    padding: 0;
    
    display: flex;
    flex-direction: column;
    margin: 0;
}

.header-nav-menu ul li {
    cursor: pointer;
}

.header-nav-menu ul li a:hover {
    background-color: var(--RED);
}

.header-nav-menu ul li a {
    text-decoration: none;
    color: white;
    width: 100%;
    display: block;
    padding: 1rem;
}

/* END making the nav menu  */

/* making the social media tab */
.sm {
    overflow: hidden;
}

.sm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0.5rem;
}

/* just removing the under line from the social media icon's */
.sm a {
    text-decoration: none;
}
/* END making the social media tab */

/* styling the logo in the header */
.header-logo {
    max-height: 60px;
    padding: 0.5rem;
}
/* END styling the logo in the header */
/* END HEADER STYLING */

/* MAIN PAGE STYLING */
main {
    background-color: var(--OFF-WHITE);
}

/* hero banner */
.hero {
    min-height: 50vh;
    border-top: solid var(--GRAY) 2px;
    position: relative;
}
.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    animation: fade-hero-in 2s 0.5s forwards;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fade-hero-in 3s forwards;
}

@keyframes fade-hero-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 100;
    }
}

/* END hero banner */

/* article styling */
.article {
    margin: 1rem;
    background-color: white;
    box-shadow: var(--ARTICLE-SHADOW);
}
.article__headline {
    background-color: var(--RED);
    width: 100%;
    padding: 1rem;
    padding-left: 3rem;
    font-size: 1rem;
    color: white;
    position: relative;
    margin: 0;
}
.article__headline::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-image: url("../img/card-suits-spades.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.article figure {
    margin: 0;
}

.article__image {
    width: 100%;
}

.article p {
    padding: 1rem;
    color: var(--GRAY);
}

.article__button {
    background-color: var(--GRAY);
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    border: 0;
    cursor: pointer;
    margin: 0rem 1rem 1rem 1rem;
}
/* END article styling */

/* calender styling */
.calender {
    margin: 1rem;
    background-color: white;
    box-shadow: var(--ARTICLE-SHADOW);
}
.calender table tr:nth-child(odd){
    background-color: var(--LIGHT-GRAY)
}
.calender table {
    width: 100%;
    border-collapse: collapse;
}
.calender table tr td {
    padding: 0.8rem;
    border: 0;
    outline: 0;
}

.aside__headline {
    background-color: var(--GRAY);
    width: 100%;
    padding: 1rem;
    padding-left: 3rem;
    font-size: 1rem;
    color: white;
    position: relative;
    margin: 0;
}

.aside__headline::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-image: url("../img/card-suits-hearts.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* END calender styling  */

/* styling the nesw letter form  */

.form {
    margin: 1rem;
    background-color: white;
    box-shadow: var(--ARTICLE-SHADOW);
}

.form h4 {
    color: var(--GRAY);
    font-weight: normal;
}

.form form {
    padding: 1rem;
    
}
.form__text-input  {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 0;
    border: solid var(--LIGHT-GRAY) 2px;
    width: 100%;
    margin-bottom: 10px;
}

.form form input[type=submit]  {
    background-color: var(--RED);
    border: 0;
    outline: 0;
    color: white;
    font-size: 1.2rem;
    width: 100%;
    padding: 0.5rem;
    cursor: pointer;
}
.form form input[type=submit]:hover {
    background-color: #d10a0a;
}

/* END styling the nesw letter form */

/* styling the footer */

footer {
    background-color: var(--GRAY);
    display: flex;
    flex-direction: column;
}

.footer-headline {
    color: var(--RED);
    font-size: 2rem;
    padding-top: 1rem;
    margin: 0;
}

/* styling contact info */
.contact-info {
    padding: 0.8rem;
}
.contact-info ul {
    list-style: none;
    padding: 0; 
}
.contact-info ul li {
    padding-bottom: 0.4rem;
}

.contact-info__text {
    color: var(--OFF-WHITE);
    text-decoration: none;
}
/* END styling contact info */

/* styling history section */
.history p {
    color: var(--OFF-WHITE);   
}
.history {
    padding: 0.8rem;
}
/* END styling history section */

/* styling the become a member text */
.become-one-of-us p {
    color: var(--OFF-WHITE); 
}
.become-one-of-us {
    padding: 0.8rem;
}
/* END styling the become a member text */
/* END styling the footer */

@media (min-width: 960px) {
    .articles-and-other {
        display: grid;
    /*    grid-template-areas: 
        "article-1 article-1 aside-1"
        "article-2 article-2 aside-2"
        "article-3 article-3 none"; */
        grid-template-columns: repeat(auto-fill, minmax(400px,1fr));
        grid-template-rows: auto; 
    }
    #item-4 {
        max-height: 400px;
    }
    /*
    #item-1 {
        grid-area: article-1;
    }
    #item-2 {
        grid-area: article-2;
    }
    #item-3 {
        grid-area: article-3;
    }
    #item-4 {
        grid-area: aside-1;
    }
    #item-5 {
        grid-area: aside-2;       
    }
        */
}

@media (min-width: 1080px) {
    footer {
        flex-direction: row;
        justify-content: space-evenly;
    }
    footer div {
        max-width: 25%;
    }
    .header-nav-menu {
        position: relative;
        left: 0;
        order: 1;
        width: auto;
        background-color: white;
    }
    .header-nav-menu ul li a {
        text-decoration: none;
        color: var(--GRAY);
        width: auto;
        display: inline;
    }
    .header-nav-menu ul {
        display: flex;
        flex-direction: row;
        padding: 0.8rem;
        height: 100%;
        align-items: center;
    }
    .header-nav-menu ul li:nth-child(1) a {
        background-color: var(--RED);
        color: white;
    }
    .header-nav-menu ul li a:hover {
        background-color: var(--GRAY);
        color: white;
    }
    .menu {
        display: none;
    }
    .sm {
        order: 2;
    }
    .articles-and-other {
        display: grid;
        margin: auto;
        max-width: 1090px;
        grid-template-columns: auto;
        grid-template-rows: auto; 
        grid-template-areas: 
        "article-1 article-1 aside-1"
        "article-1 article-1 aside-2"
        "article-2 article-3 none";
    }
    #item-1 {
        grid-area: article-1;
        max-height: 660px;
    }
    #item-2 {
        grid-area: article-2;
    }
    #item-3 {
        grid-area: article-3;
    }
    #item-4 {
        grid-area: aside-1;
    }
    #item-5 {
        grid-area: aside-2;
    }
}

