body { font-family: 'Poppins', sans-serif; text-align: -webkit-center; margin: 0; padding: 0; } /* This is my code for my navbar */ .navbar { display: flex; justify-content: space-between; max-width: 70rem; background-color: #fff; border: 1px solid #f0f0f0; border-radius: 50px; align-items: center; margin: 1.5rem auto 0 auto; padding: 0 30px; top: 0%; bottom: auto; left: 0%; right: 0%; } .imgNav { height: 50px; border-radius: 20px; } .connectButton { border-radius: 10px; height: 100%; width: 100px; box-shadow: none; border: none; font-size: 1rem; height: 40px; background-color: #b3ffb3; } /* end navbar */ .container { display: flex; justify-content: space-around; align-items: center; margin-top: 50px; width: 80%; background-color: white; border-radius: 20px; box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); padding: 40px; } .button-section { position: relative; width: 150px; height: 150px; margin-left: auto; margin-right: auto; } .btn { position: absolute; background-color: #007BFF; color: white; border: none; border-radius: 50%; width: 60px; height: 60px; font-size: 1.2em; text-align: center; line-height: 60px; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease; } /* Middenknop */ .btn:nth-child(1) { top: 50%; left: 50%; transform: translate(-125%, -50%); } /* Knop boven */ .btn:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); } /* Knop rechts */ .btn:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); } /* Knop onder */ .btn:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); } /* Knop links */ .btn:nth-child(5) { top: 50%; left: 0; transform: translateY(-50%); } .btn:hover { background-color: #0056b3; /* transform: scale(1.1); */ } .btn:active { background-color: #004494; }