
/* ======BASIC RESET====== */

*{
    box-sizing: border-box;   
    margin: 0;
    padding: 0;  
}

body{
    background-image: url('Images/Space2.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: grid;
    font-size: 2vw;
    height: 100vh;   
    grid-template-columns: repeat(9, 1fr);
    grid-auto-rows: 200px auto fit-content;
    grid-template-areas: 
    "hd hd hd hd hd hd hd hd hd"
    "mn mn mn mn mn mn sb sb sb" 
    "ft ft ft ft ft ft ft ft ft";
    gap: 1rem;
}



/* =====HEADER======= */

.header{
    align-items: center;
    border-bottom: 4px solid rgba(255,255,255,0.1);
    background: rgba(64,64,64,0.2);
    backdrop-filter: blur(5px);
    color: whitesmoke;
    display: flex;
    flex-direction: row;
    grid-area: hd;
    justify-content: space-around;
    position: fixed;
    width: 100%;
}


.header::before{
    background: linear-gradient(-45deg, transparent, rgba(255,255,255,0.4) , transparent);
    content: "";
    height: 100%;
    left: -100%;   
    position: absolute;
    top: 0;
    transition: 0.5s;
    width: 100%;   
}

.header:hover::before{
    left: 100%;
}


.logo-clip{
    background-image: url('Images/Jupiter.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-clip: text;
    color: transparent;
    font-weight: bolder;
    font-size: 7vw;
    font-family: Times New Roman;
    margin: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    width: 100%;        
    -webkit-background-clip: text;  
}


.navbar{ 
    font-size: 1.8vw;
    text-align: center;
    width: 80%;     
}




.navbar ul{
    color: white;
    display: inline-flex;
    gap: 2vw;
    list-style: none;   
    padding: 0px;
}
        
.navbar ul li{   
    margin: 10px;
}



.navbar ul li a{
    color: white;
    text-decoration: none;
}
       
.navbar ul li:hover{ 
    text-shadow: 2px 2px 10px gold;
 }

.sub_nav{
    display: none;

}

.navbar ul li:hover .sub_nav{
    background: rgba(64,64,64,0.5);
    border: 4px solid rgba(254,254,245,0.2);
    display: block;
    font-size: 1.8vw;
    margin-left: -15px;
    margin-top: 50px;
    position: absolute; 
}

.navbar ul li:hover .sub_nav ul{
    display: block;
}

.navbar ul li:hover .sub_nav ul li{
    border-bottom: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 2vw;
    text-align: center;
}


.sub_nav ul li{
    margin-top: 1em;
}

.vanish{
    display: none;
}


.nowrap {
    white-space: nowrap;
}

.space{
    visibility: hidden;
    position: absolute;
    top: -100%;
}

/* ==========MEDIA QUERY=========== */

@media screen and (max-width: 576px){
    body{
        grid-template-areas: 
        "hd hd hd hd hd hd hd hd hd"
        "mn mn mn mn mn mn mn mn mn" 
        "sb sb sb sb sb sb sb sb sb"
        "ft ft ft ft ft ft ft ft ft";
    }


    .header{
        flex-direction: column;
    }
    
    .navbar{
        backgground-color: rgba(255,255,255,0.5);
        border-right: 4px solid rgba(255,255,255,0.2);
        border-bottom: 4px solid rgba(255,255,255,0.2);
        display: block;
        font-size: 3vw;
        left: -500%;
        position: absolute;
        text-align: left;        
        top: 85%;      
        transition: left 0.3s ease-in-out;
        width: fit-content;              
    }
      
    
    .navbar ul{
        color: white;
        display: inline-block;
        gap: 2vw;
        list-style: none;      
        padding: 0px;      
    }
    
    .navbar ul li{    
        margin: 2em;
    }
    
    .vanish{
        display: block;
    }
    
    .menu{
        display: block;    
        font-size: 4vw;
        left: 1%;
        margin: 0.5rem;
        padding: 1rem;
        position: absolute;       
        top: 50%;
    }
    
    .menu:hover .navbar{
        background: rgba(64,64,64,0.6);
        left: -50%;  
    }
    
    .navbar ul li:hover .sub_nav{
        background: rgba(64,64,64,0.5);
        font-size: 3vw;  
        margin-left: 83%;
        margin-top: -20%;
    }
    
    
    .main, .sidebar{
        margin: 1rem;
    }
    
    figure {
        text-align: center;
    }
    
    .space{
        display: inline;
        margin-left: 5vw;
        position: static;
        visibility: visible;
    }

  

}



/* ======MAIN======*/


.main{
    border-radius: 30px;
    background-color: rgba(0, 0, 230, 0.25);
    color: white;
    display: flow-root;
    font-family: Times New Roman;
    grid-area: mn;   
    margin-top: 25vw;
    margin-left: 1rem;
    padding: 3em;   
}

h2{
    margin-top: 2rem;
}

img{
    height: auto;
    width: max(15rem, 30vw);
}

.side_block_left{
   float: left;
   margin: 1rem;
}

.side_block_right{
   float: right;
   margin: 1rem;
}



/* =========SIDEBAR========== */


.sidebar{
    background-color: rgba(0, 150, 0, 0.25);
    color: bisque;
    grid-area: sb;   
    margin-top: 25vw;
    padding: 2em;  
}

.sidebar img{
    width: max(15rem, 25vw);
}


@media screen and (width: 768px){

    .sidebar img{
        width: 10rem;
    }

}



/* ========FOOTER======= */




.footer{
   align-items: flex-end;
   background: linear-gradient(transparent, #0b051c, black, black, black);
   color: white;
   display: flex;
   flex-direction: column;
   font-size: 1.5vw;
   grid-area: ft;
   justify-content: flex-end;
}


.container {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 4rem auto 0rem;
    width: 90%;    
}

.col{
    flex-basis: 10%;
    padding: 10px;
    width: fit-content;
}

.col p{
    text-align: justify;   
}

.col h3{
    margin-bottom: 3rem ;
    text-align: center;
}

.col a{
    border-bottom: 1px solid rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.5);
    text-decoration: none;   
}

.col form{
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    display: flex;
    font-size: 1.5vw;
    gap: 0.5rem;
    justify-content: space-between;
    margin: 1rem auto 2rem;
    width: 100%;    
}

.col form input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5vw;
    outline: none;
}

.col form button{
    border: none;
    background: transparent;
    color: white;
    font-size: 1.5vw;
    outline: none;
}

.social-media{
    align-items: center;
    display: flex;
    font-size: 1.5vw;
    gap: 1.5vw;
    justify-content: space-between;  
}


.copyright {
    border-top: 1px solid rgba(255,255,255,0.5);
    margin: 0.5rem auto 0rem;
    padding: 1rem;
    text-align: center;
    width: 100%;  
}
