* { margin: 0; padding: 0; } body { margin: 0; padding: 0; background-color: #1d1d1d; } body p, h1 { color: white; } .hamburger { display: none; font-size: 30px; cursor: pointer; } #xButton { width: 8%; display: none; margin-bottom: 15px; } .navBar { border-bottom: solid 1px #1B1212; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; height: 70px; justify-content: center; place-items: center; margin-bottom: 25px; background-color: rgb(240, 136, 117); } .imgText { margin-left: 50px; width: 30%; } .imgLogo { width: 17%; } .navElement a { text-decoration: none; color: black; font-size: 20px; align-items: right; font-weight: bolder; transition: color 0.5s ease-out; } .navElement a:hover { color: white; } .navElement a:nth-child(2) { margin-right: 70px; } .logoDiv { text-align: center; } .logo { width: 400px; margin-top: 30px; } .matchSection { display: flex; flex-direction: row; height: auto; } #matchBox { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; } .matchCard { min-width: 300px; max-width: 300px; min-height: 300px; max-height: 300px; margin: 10px 5px; word-wrap: break-word; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s ease-in-out; } .matchCard p { font-size: 17px; text-align: left; margin-top: 5px; word-wrap: break-word; overflow-wrap: break-word; } .matchCard:hover { transform: translateY(-10px) } .matchImage { width: 250px; height: auto; border-radius: 5px; } .message { color: white; font-size: 18px; margin-bottom: 20px; } @media screen and (max-width: 1024px) { .navBar { grid-template-columns: 1fr 1fr 1fr; height: 70px; width: 100vw; } .imgText { width: 70%; } .imgLogo { width: 40%; } #xButton { display: block; } .navElement { position: fixed; background: rgb(240, 136, 117); border-left: solid 3px #e23e57; top: 0; right: -550px; width: 40%; height: 100vh; padding: 10px; flex-direction: column; text-align: center; justify-content: center; align-items: center; z-index: 999; transition: 0.3s ease; } .navElement a { display: block; margin: 0 !important; padding: 10px; border-bottom: 1px solid #ddd; font-size: 18px; } .hamburger { display: block; } .navElement.active { right: 0; } #searchBar { width: 450px; height: 40px; } .category_Filter { height: 40px; } } @media screen and (max-width: 768px) { .logo { width: 250px; } .matchCard { margin-top: 50px; min-width: 170px; max-width: 170px; min-height: 220px; max-height: 220px; } .matchCard p { font-size: 15px; } .matchImage { width: 80%; } #searchBar { width: 90%; font-size: 15px; } .category_Filter { width: 30%; font-size: 15px; } } /* Responsive Enhancements */ @media (max-width: 1024px) { .container, .section { padding: 0 20px; } .section-title { font-size: 1.8rem; } nav .nav-menu { gap: 20px; } } @media (max-width: 768px) { .section-title { font-size: 1.5rem; } .container { padding: 0 15px; } .nav-menu { flex-direction: column; align-items: flex-start; } .nav-logo h1 { font-size: 1.2rem; } .search-bar input[type="text"] { width: 100%; } } @media (max-width: 480px) { .section-title { font-size: 1.2rem; } .nav-logo h1, .btn { font-size: 0.9rem; } .nav-menu { gap: 10px; } .container { padding: 0 10px; } .logo { width: 70% !important; } }