/* Reset and global styles */ * { box-sizing: border-box; margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; transition: 0.5s; } /* Body styles */ body { background-color: #f5f5f5; background-image: url("assets/background.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; display: flex; flex-direction: column; align-items: center; min-height: 100vh; } /* Header styles */ header { background-color: rgba(0, 0, 0, 0.7); padding: 10px; width: 100%; position: fixed; top: 0; left: 0; z-index: 1000; } .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; } .project-name { color: white; font-size: 1.5em; } .burger-menu { background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; display: none; } .menu { list-style: none; display: flex; justify-content: space-around; flex-grow: 1; } header li { margin: 0 10px; } header a { color: white; text-decoration: none; padding: 10px; border-radius: 5px; transition: background-color 0.3s ease; } header a:hover { background-color: rgba(255, 255, 255, 0.2); } /* Article styles */ article { margin-top: 100px; padding: 20px; width: 90%; max-width: 800px; background: rgba(255, 255, 255, 0.9); border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); text-align: center; } h1 { color: #333; margin-bottom: 20px; } p { color: #666; line-height: 1.6; margin-bottom: 20px; } img { max-width: 100%; height: auto; margin-bottom: 20px; } button { padding: 10px 20px; margin: 2em; border: none; background-color: #333; color: white; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #555; } /* Additional CSS for command-line style */ .code-box { background-color: #f0f0f0; font-family: "Courier New", Courier, monospace; padding: 10px; border-left: 4px solid #555; margin-left: 20px; } .flex { display: flex; align-items: center; } /* Cards section styles */ section .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted minmax size */ gap: 20px; margin-top: 50px; } section .card { text-align: center; list-style: none; background-color: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); text-decoration: none; color: #333; transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; } section .card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); } section .card img { height: 64px; /* Set fixed height */ width: 64px; /* Set fixed width */ object-fit: cover; border-radius: 5px; margin: 0 auto 10px; /* Center image and add bottom margin */ } section .card h3 { margin: 10px 0; } section .card p { flex-grow: 1; } /* Mobile Styles */ @media (max-width: 768px) { .burger-menu { display: block; } .menu { display: none; flex-direction: column; background-color: rgba(0, 0, 0, 0.7); position: absolute; top: 100%; /* Adjusted position */ left: 0; width: 100%; z-index: 999; } .menu.active { display: flex; } header { padding: 5px; height: auto; } .header-content { flex-direction: row; justify-content: space-between; align-items: center; } .project-name { font-size: 1.2em; } header li { margin: 0; width: 100%; } header a { padding: 10px; width: 100%; display: block; } article { margin-top: 190px; padding-top: 20px; } section .card { padding: 10px; } section .card img { height: 64px; width: 64px; border-radius: 10px; } }