.container { min-height: 100vh; padding: 0 0.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; } .main { padding: 5rem 0; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; } .overlay { position: fixed; width: 100%; height: 100%; opacity:1; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.8); } .close { font-size: 30px; color: #fff; display: inline-block; position: absolute; top: 5px; right: 5px; margin: 10px; } .close:hover { cursor: pointer; } .dialog { position: fixed; top: 30%; left: 30%; background: #eee; height: 260px; width: 400px; } .pcimage { display: inline-block; position: absolute; right: 0; top: 0; } .dialog ul { margin: 0; padding: 0; } .dialog ul li, .dialog p { width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dialog ul li:hover { cursor: pointer; color: green; } .footer { width: 100%; height: 100px; border-top: 1px solid #eaeaea; display: flex; justify-content: center; align-items: center; } .title { margin: 0; line-height: 1.15; font-size: 4rem; } .search { font-size: 25px; width: 75%; } .title, .description { text-align: center; } .description { line-height: 1.5; font-size: 1.5rem; } .grid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 800px; margin-top: 3rem; } .card { margin: 1rem; flex-basis: 45%; padding: 1.5rem; text-align: left; color: inherit; text-decoration: none; border-radius: 10px; transition: color 0.15s ease, border-color 0.15s ease; background-repeat: no-repeat; background-position: center; background-size: 360px; box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); transition: all 0.3s cubic-bezier(.25,.8,.25,1); } .card:hover, .card:focus, .card:active { box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); } .card h3 { margin: 0 0 1rem 0; font-size: 1.5rem; } .card p { margin: 0; font-size: 1.25rem; line-height: 1.5; } @media (max-width: 600px) { .grid { width: 100%; } .card { flex-basis: 66%; } .search { font-size: 12px; width: 80%; } .dialog { left: 0%; } }