/* styles.css */
*{
    font-family: 'Times New Roman', Times, serif;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #fff;
    color: brown;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.hero{
    width:100%;
    height:100vh;
    background-image: linear-gradient(rgba(12,3,51,0.3),rgba(12,3,51,0.3));
    position:relative;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
nav{
    width:80%;
    position: absolute;
    top: 20px;
    left:15%;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content:right;
    background-color: transparent;
}
nav.logo{
    width:80px;
}
nav ul li{

    list-style:none;
    display:inline-block;
    margin-left: 40px;
    

}
nav ul li a{
    text-decoration: none;
    color: white;
    font-size: 20px;
    

}
.container {
    position: absolute;
    text-align: center;
    background-color: rgba(128,128,128,0.4);
    padding: 30px;
    border-radius: 10px;
    left: 3%;
    
}

#clock12{
    font-family: 'Times New Roman', Times, serif;
    background-color: transparent;
    color: brown;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

#clock24{
    font-family: 'Times New Roman', Times, serif;
    background-color: transparent;
    color: brown;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    z-index: -1; /* Keeps the video behind the content */
    object-fit: cover;
}

/* Make video responsive for small screens */
@media only screen and (max-width: 768px) {
    #background-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover; /* Ensures the video scales correctly */
    }
}



#moon-image {
    width: 200px;
    height: 200px;
    
}

#phase-name {
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 700;
    color: black;
    background-color: white;
    border-radius: 100px 100px / 120px;
}

#moon-info {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Location information */
#location {
    margin-top: 10px;
    font-size: 1rem;
    color: #eeeeee;
}

/* Date styling */
#date {
    margin-top: 15px;
    font-size: 1rem;
    color: #dddddd;
} 

.moon-apod{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    padding: 30%;
    
}


.APOD {
    position: absolute;
    left:65%;
    width: 30%;
    height:80%;
    text-align: center;
}
.APOD img{
    background-color: rgba(128,128,128,0.4);
    width: 300px;
    height: auto;
    border: #fff;
    border: 3px solid #ccc;
    
}

/* Styles for screens smaller than 768px (tablets, large phones) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        background-color: lightgray;
    }
    video#background-video {
        width: 100%;
        height: auto;
    }
    /* Modify layout for mobile */
    .container {
        padding: 1px;
        text-align: center;
        width: 15%;
        
    }
    nav ul li{

        list-style:none;
        display:list-item;
        margin-left: 40px;
        font-size:8;
    }

    nav ul li a{
        text-decoration: none;
        color: white;
        font-size: 10px;
    
    }
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row for tablets/mobile */
    }
}

/* Styles for screens smaller than 480px (small mobile devices) */
@media (max-width: 480px) {
    body {
        font-size: 12px;
        justify-content: center;
        align-items: center;
        font-family: fantasy;
        background-color: #fff;
        color: brown;
        
        justify-content: center;
        align-items: center;
        height: 100vh;
        overflow-y: auto;
       
    }
    
    h1 {
        font-size: 16px;
    }

    .hero {
        width: 100%;
        height: 100vh;
        background-image: linear-gradient(rgba(12,3,51,0.3), rgba(12,3,51,0.3));
        position: relative;
        padding: 0 5%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    nav {
        width: 80%;
        position: absolute;
        top: 20px;
        left: 15%;
        padding: 10px 8px;
        display: flex;
        align-items: center;
        justify-content: right;
        background-color: transparent;
    }
    
    nav.logo {
        width: 80px;
    }
    
    nav ul li {
        list-style: none;
        display: inline-block;
        margin-left: 40px;
    }
    
    nav ul li a {
        text-decoration: none;
        color: white;
        font-size: 20px;
    }
    .container {
        position: relative;
        text-align: center;
        background-color: rgba(128,128,128,0.4);
        padding: 30px;
        border-radius: 10px;
        left: 3%;
        top:65%;
        width: 15%;
    }
    .APOD {
        /*position: absolute;
        background-color: rgba(128,128,128,0.6);
        width: auto;
        height: auto;
        
        border-radius: 30px;
        text-align: center;
        overflow-y: auto;*/
        position: relative; /* Use relative positioning for smaller screens */
        left: 0;
        width: 100%; /* Let it span full width */
        height: auto; /* Adjust height as needed */
        margin-bottom: 20px; 
        top:0%;

    }

    .moon-apod{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0%;
        width: 100%;
        background-color: transparent;
        position: relative;
        top:30%;
    }
    
    
    
    #clock12, #clock24 {
        font-family: 'Times New Roman', Times, serif;
        background-color: transparent;
        color: brown;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #background-video {
        position: fixed;
        right: 0;
        bottom: 0;
        min-width: 100%; 
        min-height: 100%;
        z-index: -1; /* Keeps the video behind the content */
        object-fit: cover;
    }
    
    video#background-video {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Reorder moon phase and APOD for mobile */
    .moon-phase, .APOD {
        width: 90%;
        margin-bottom: 20px;
        text-align: center;
    }

    .container {
        padding: 5px;
        text-align: center;
        width: 50%;
    }
    
    
    nav ul li {
        display: list-item;
        margin-left: 10px;
        font-size: 12px;
    }

    nav ul li a {
        font-size: 14px;
    }

    #moon-image {
        width: 80%;  /* Let the image fill the container width */
        max-width: 150px;
        height: auto;
    }

    #phase-name {
        font-size: 10px;
    }

    #clock12, #clock24 {
        font-size: 10px;
        font-weight: bold;
    }

    .zodiac-grid {
        grid-template-columns: 1fr; /* 1 item per row for small screens */
    }
}

/*.APOD{
    position: absolute;
    border-radius: 30px;
    width: 550px;
    height:80%;
    text-align: center;
    
    left: 60%;
    
}
*/


/* Small image styling */
.small-image {
    width: 40%; /* Initial small size */
    height: auto;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
    cursor: pointer; /* Pointer cursor to indicate clickability */
}

/* Enlarged image styling */
.large-image {
    transform: scale(3); /* Enlarge the image to 2x its size */
    cursor: pointer; /* Pointer cursor for clicking when large */
    right: 90%;
    top: 40%;
    position: absolute;
    box-shadow: 0px 2px 10px rgba(172, 46, 46, 1);
    

}
.APOD p{
    color: white;
    background-color: rgba(128,128,128,0.4);
    border-radius: 30px;
    padding: 2%;

}

* Styles for the contact section */
.contact-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-container h1 {
    font-style: bold;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: hsla(48, 95%, 16%, 0.953);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.contact-list a {
    text-decoration: none;
    color: grey;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: #007bff;
}

.contact-list i {
    font-size: 1.5em;
    margin-right: 10px;
    color: #007bff;
    align-items: right;
}




