@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Press+Start+2P&family=Space+Mono&family=VT323&display=swap');

body {
background-image: url("grey_white.png");
margin: 0;
width: 100%;

}

/* container structure for history.html */
.container {
    display: grid;
    text-align: center;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    grid-gap: 0;
}  

.grid_itm {
    padding-top: 1rem;
    margin: 1em;
    clear: both;
    text-align: center;
    padding-bottom: 1rem;

}

.image {
    max-width: 100%;
}

/* Style of grid items */
.grid_itm {
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgba(0, 0, 0, 0.6);
    color: whitesmoke;
    font-size: small;

}

/* history.html  */
#heading_txt {
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: black;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#heading_txt img { 
    max-width: 100%;
    height: auto;
}

/* header and footer styling */

#menu {
   
    justify-content: center;
}

.header {
    height: auto;
    background-color: black;
    clear: both;
    text-align: center;
    top: 0;
    width: 100%;
}

.footer {
    background-color: black;
    bottom: 0;
    width: 100%;
    height: auto;
    margin-top: 5rem;
    display: inline-flex;
    justify-content: center;
    align-content: center;

}

/* header and footer item styling */

#menu li {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    display: inline-flex;
    justify-content: center;
    align-content: center;
}

#menu i {
    font-size: x-large;
    text-decoration: none;
    color: rgb(109, 175, 230);
    margin-right: 5px;
    
}

#menu i:hover  {
    color: rgb(156, 134, 9);
}

#menu a {
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: smaller;
    color: whitesmoke;
    text-decoration: none;
}

#menu a:hover {
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: smaller;
    color: rgb(156, 134, 9);
}


.footer li {
    display: inline-flex;
    justify-content: center;
    align-content: center;
}

.footer i {
    color :rgb(109, 175, 230);
    text-decoration: none;
    font-size: xx-large;
    padding: 1em; 
}

.footer i:hover  {
    color: rgb(156, 134, 9);
}

/* Gallery Page xxxxxxxxxx gallery_html */

#gallery {
    clear: both;
    line-height: 0;
    column-count: 3;
    column-gap: 2rem;
    margin-top: 5rem;
    margin-bottom: 6rem;
}

#gallery > img {
    width: 100%;
    height: auto;
    border: solid 2px whitesmoke
}

/* Shop Page xxxxxxxx shop_html */

#shop_text {
    width: 100%;
    background-color: black;
    text-align: center;
    margin-top: 5rem;
}
#shop_text h1 {
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: xx-large;
    color: whitesmoke;
}

#shop_text p {
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: large;
    color: whitesmoke;
}

/* Sonic GIF on shop.html */

#sonic_gif {
    width: 100%;
    max-width: 800px;
    max-height: 800px;
    padding-bottom: 1rem;
    text-align: center;
    margin: auto;
}

/* Sign up page xxxxxxxxxxx sign_up.html*/
/* Golden Axe GIF on sign_up.html */

#gold_axe_gif {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    text-align: center;
    overflow-y: scroll;
}

.form-section {
    background-color: black;
    text-align: center;
    padding-bottom: 1rem; 
    margin-bottom: 4rem; 
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: whitesmoke;
    border: 2px solid rgb(20, 14, 14);
    border-radius: 10%;
    margin-left: 8%;
    margin-right: 8%;
}

#email {
    width: 200px;
}

#submit {
    margin: auto;
    margin-top: 1rem;
    border-radius: 25%;
    border: 2px solid black;
    height: 40px;
    width: 80px;
    text-align: center;
    background-color: red;
    color: #fafafa;
    display: block;
}

#join_up {
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: xx-large;
    color: black;
    text-align: center;
}

/* index.html  xxxxxxxxxxxxxx */

#main_page {
    height: auto;
    border: black solid 2px;
    border-radius: 10%;
    background-color: #7dbdf8;
    opacity: 70%;
    margin-top: 3rem;
    margin-bottom: 5rem;
    margin-left: 4%;
    margin-right: 4%;
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: large;
    color: black;
    text-align: center;
    
}

#head_txt h1 {
    margin-bottom: 1rem;
    color: #fafafa;
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: xx-large;
}

#head_txt {
    width: 100%;
    margin-top: 5rem;
    text-align: center;
}


#heading_txt h1 {
    font-size: 30px;
}


/* thank_you.hmtl   */

#thanks_text {
    color: #fafafa;
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    height: auto;
    position: relative;
    text-align: center;
    margin-top: 20rem;
    background-color: darkgray;
}

#thanks_text p {
    font-size: larger;
    background-color: darkgray;
}

/* 404.html page */

#error_image {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    
}

#error_image img {
   width: 800px;
}

#error_image h2 {
    text-align: center;
    font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

/* Media queries for smaller screen size */
@media only screen and (max-width: 860px){
    #heading_txt img {
        max-width: 85%;
        height: auto;
    }
    
    #heading_txt h1{
        font-size: large;
        text-align: center;
        margin-top: 1rem; 
        max-width: 100%;
    }

    #head_txt img {
        max-width: 85%;
        height: auto;
    }
    
    #head_txt h1{
        font-size: large;
        text-align: center;
        margin-top: 1rem; 
        max-width: 100%;
    }

    #menu li {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 2rem;
        display: inline-flex;
        justify-content: center;
        align-content: center;
    }
    
    #menu i {
        font-size: large;
    }

}

@media only screen and (max-width: 700px){ 
    #gallery { 
        clear: both;
        line-height: 0;
        column-count: 1;
        column-gap: 0;
        margin-top: 1rem;
        margin-bottom: 5rem;
    } 

    #error_image img {
        width: 650px;
    }
    
    #menu li {
        padding-top: 1rem;
        display: flex;
    }
}

@media only screen and (max-width: 640px){
    
    .footer li {
        display: inline-flex;
        justify-content: center;
        align-content: center;
    }
  
    #gallery { 
        clear: both;
        line-height: 0;
        column-count: 1;
        column-gap: 0;
        margin-top: 2rem;
        margin-bottom: 6rem;
    }  

    #heading_txt h1 { 
        font-size: small;
        text-align: center;
        margin-top: 1rem; 
        max-width: 100%;
    }  

    #shop_text { 
        width: 100%;
        background-color: black;
        text-align: center;
        margin-top: 2rem;
    }    

    #gold_axe_gif {
        border-top: 2rem;
        margin-top: 2rem;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 200px;
        max-height: 200px;
        text-align: center;
    }
    
    .form-section { 
        float: none;
        display: block;
        font-size: small;
        margin-bottom: 2rem;
    } 

    #error_image img {
        width: 600px;
    }
     

}


@media only screen and (max-width: 470px){ 
    #gallery { 
        clear: both;
        line-height: 0;
        column-count: 1;
        column-gap: 0;
        margin-top: 1rem;
        margin-bottom: 5rem;
        } 

    #shop_text h1 {  
        font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: small;
        color: whitesmoke;
    }

    #shop_text p { 
        font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: x-small;
        color: whitesmoke;
    }

    .form-section { 
        float: none;
        display: block;
        font-size: x-small;
        margin-bottom: 2rem;
    }

    #heading_txt img {
        max-width: 80%;
        height: auto;
    }

    #heading_txt h1 {
        font-size: smaller;
        width: 80%;
        margin: auto;
    }

    #main_page {
        height: auto;
        width: auto;
        border: black solid 2px;
        border-radius: 10%;
        background-color: #7dbdf8;
        opacity: 70%;
        margin-bottom: 3rem;
        font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: black;
        text-align: center;
    }

    #main_page h2 {
        font-size: smaller;
    }

    #main_page h3 {
        font-size: smaller;
    }

    .footer li {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 2rem;
        justify-content: center;
        font-size: x-large;
    }

    #thanks_text {
        color: #fafafa;
        font-family: Orbitron, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        width: 100%;
        height: auto;
        position: relative;
        text-align: center;
        margin-top: 2rem;
        margin-bottom: 10rem;
        background-color: darkgray;
    }
    
    #thanks_text p {
        font-size: large;
    }

    #thanks_text h1 {
        font-size: larger;
    }

    #head_txt h1 {
        font-size: smaller;
    }

    #head_txt {
       width: auto;
       margin-right: 0;
       margin-left: 0;
    }

    #error_image img {
        width: 300px;
    }
}

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

    .footer li {
        display: flex ;
        align-content: center;
        padding: 0;
    }
}