@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@1,100&display=swap');

* {
    margin: 0;
    padding: 0;
    border: none;
}

html {
    height: 100%;
}

body {
    max-height: 100%;
    background-image: url('../assets/images/backgroundphoto.png'); /* Replace with the actual path to your image */
    background-size: cover; /* This ensures the image covers the entire viewport */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
    background-position: center center; /* Center the image horizontally and vertically */
    /* Your other styles here */
}

#mpcontainer {
    max-width: 70%;

}

h1 {
    font-weight: bold;
    color: rgb(72, 209, 255);
    font-family: "Roboto Mono", sans-serif;
    text-align: center;
    padding: 5%;
    text-decoration: underline;
    animation: pulse 2s infinite alternate; /* Add this line for the animation */
}


/* Style the header container */
header {
    background-image: url('../assets/images/backgroundphoto.png'); /* Replace 'nebula.jpg' with the path to your nebula image */
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px); /* Apply a slight blur to the header */
    position: relative;
    z-index: 1; /* Ensure the header is above other content */
}

header:hover {
    background-position: 0% 100%; /* Move the background to the end on hover */
}

/* Add this class for the header background color */
.header-color {
    background-color: transparent; /* Initial background color */
    transition: background-color 0.2s ease, box-shadow 0.2s ease; /* Smooth transitions for background color and shadow */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow effect */
}

/* Add this class for the side nav background color */
.sidenav-color {
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the alpha channel (0.5) to set the opacity */
    transition: background-color 0.2s ease; /* Smooth transition for background color */
    position: fixed;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%; /* Make the side navigation cover the entire viewport */
}


#cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: transparent;
    
   /*border-radius: 50%;*/
    pointer-events: none; /* Ensure the cursor doesn't interfere with other elements */
    transition: transform 0.2s ease, border-color 0.2s ease; /* Smooth transitions */
}

/* Style the navigation menu */
#nav {
    list-style-type: none; /* Remove bullet points */
    display: flex; /* Arrange menu items horizontally */
    justify-content: center; /* Center align menu items */
}

#nav li {
    margin-right: 20px; /* Add spacing between menu items */
}

#nav a {
    text-decoration: none; /* Remove underlines from links */
    color: #fff; /* Text color */
    font-weight: bold; /* Make the text bold */
    transition: color 0.3s; /* Smooth color transition on hover */
}

/* Change link color on hover */
#nav a:hover {
    color: #ff9900; /* Change to your desired hover color */
}


p {
    font-family: "sans-serif";
    font-size: 1.3rem;
    padding: 2%;
}

#nav {
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin: 10px auto;
    text-align: center
}

a {
    text-decoration: none;
    color: black;
}

#nav li {
    display: inline-block;
    padding: 20px;

}

h2 {
    color: rgb(1, 22, 29);
    font-family: "Roboto Mono", sans-serif;
    text-align: center;
}

/*Side bar with BMI Calc.*/

/* Style the side navigation */
.sidenav {
    height: 100%;
    width: 20%;
    padding: 20px;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    overflow-x: hidden;
    border-left: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 100% 600%;
    animation: wind 20s infinite linear;
    background-color: rgba(255, 0, 0, 0.7); /* Adjust the alpha channel (0.7) for opacity */
    backdrop-filter: blur(5px); /* Add a blur effect to the background */
}

/* Define the rainbow animation */
@keyframes rainbow {
    0% {
        background-position: 0% 100%; /* Start at the bottom */
    }
    100% {
        background-position: 100% 0%; /* End at the top */
    }
}


.sidenav:hover {
    background-position: 0% 100%; /* Move the background to the end on hover */
}



#btn {
    padding: 2%;
    margin: 3%;
}

#application {
    display: grid;
    grid-template-columns: repeat(auto-fill, 175px);
    padding: 30px;
    gap: 30px;
    margin: auto;
}

.memo {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-bottom: 16px;
    transition: background-color 0.2s ease-in-out;
}

.create-memo {
    height: 175px;
    transition: 0.3s;

    cursor: pointer;
    font-size: 2.0rem;


}
.memo:hover {
    background-color: #e0e0e0;
}

input[type="text"],
.input-field {
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 2px 5px #888888;
    height: 25px;

}

input[type="number"],
.input-field {
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 2px 5px #888888;
    height: 25px;

}



@media screen and (max-width: 800px) {
    .sidenav {
        border-left: none;
        text-align: center;
        bottom: 0;
        left: 10px;
        position: relative;
        width: auto;


    }

}

@media screen and (max-width: 800px) {
    #mpcontainer {
        max-width: 100%;
        margin: 2%;


    }

}

/* Define the rainbow animation */
@keyframes rainbow {
    0% {
        background-position: 0% 100%; /* Start at the bottom */
    }
    100% {
        background-position: 100% 0%; /* End at the top */
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05); /* Increase the scale for the animation */
    }
}
