@tailwind base; @tailwind components; @tailwind utilities; * { font-family: theme("fontFamily.body"); color: theme("colors.text"); } body { background-color: theme("colors.background"); } .main { display: flex; flex-wrap: wrap; justify-content: center; overflow: auto; height: 90vh; align-items: flex-start; align-content: flex-start; } .pic-outer { display: flex; justify-content: center; align-items: center; transition: transform 1s linear; } .pic-inner { transition: all 0.2s ease-in-out; position: relative; } #country { background-color: rgba(0, 0, 0, 0.61); backdrop-filter: blur(5px); padding: 4px; margin: 5px; } .pic-inner:hover { transform: scale(0.98); } #info-button { position: absolute; bottom: 0; left: 0; padding: 5px; } .dropbtn { color: white; border: none; padding: 5px; min-width: 40px; text-align: left; } #info-main { top: 12.5%; min-width: 50%; min-height: 75%; position: absolute; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); overflow: auto; z-index: 2; } /* The container
- needed to position the dropdown content */ .dropdown { position: relative; } /* Dropdown Content (Hidden by Default) */ .dropdown-content { display: none; position: absolute; margin-left: 5px; border-radius: 0.25rem; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); z-index: 1; } /* Links inside the dropdown */ .dropdown-content a { color: white; text-decoration: none; display: block; } .dropdown-content a:last-child { border-radius: 0 0 0.25rem 0.25rem; } .dropdown-content a:first-child { border-radius: 0.25rem 0.25rem 0 0; } /* Change color of dropdown links on hover */ .dropdown-content a:hover { background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); } /* Show the dropdown menu on hover */ .dropdown:hover .dropdown-content { display: block; }