word genrator
Fri Aug 02 2024 04:15:36 GMT+0000 (Coordinated Universal Time)
/* Modal Styles */ .modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); } .modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 500px; max-height: 80vh; /* Limit height */ overflow-y: auto; /* Add scroll if needed */ border-radius: 10px; } .modal-header, .modal-body, .modal-footer { padding: 10px; } .modal-header { border-bottom: 1px solid #ddd; } .modal-footer { border-top: 1px solid #ddd; text-align: right; } .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } /* Header and Dropdown Styles */ .header { display: flex; align-items: center; justify-content: space-between; position: relative; } #dropdown-menu { display: none; position: absolute; background-color: white; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1; } #dropdown-menu button { display: block; width: 100%; padding: 10px; border: none; background: none; text-align: left; } #dropdown-menu button:hover { background-color: #ddd; } #add-icon { font-size: 24px; cursor: pointer; color: #333; } #add-icon:hover { color: #666; } /* Input and Button Styles */ body { font-family: Arial, sans-serif; } #word-input { width: 50%; padding: 10px; font-size: 18px; } #num-words-input { width: 20%; padding: 10px; font-size: 18px; } #generate-button { background-color: #4CAF50; color: #fff; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; } #generate-button:hover { background-color: #3e8e41; } #result { margin-top: 20px; } #word-list { font-size: 24px; font-weight: bold; display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 10px; padding: 0; list-style-type: none; } #word-list li { background-color: #f7f7f7; padding: 10px; border: 1px solid #ddd; border-radius: 5px; text-align: center; } /* Reset Button Styles */ #reset { font-family: "Open Sans", sans-serif; font-size: 16px; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; color: #000; cursor: pointer; border: 3px solid; padding: 0.25em 0.5em; box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px; position: relative; user-select: none; } #reset:hover { background-color: #333; color: #fff; } #word-input:focus, #num-words-input:focus { border-color: #aaa; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } #generate-button:active { transform: translateY(2px); } #result { background-color: #f9f9f9; padding: 20px; border: 1px solid #ddd; border-radius: 10px; } #word-list li:nth-child(even) { background-color: #fff; } /* Flip Card Styles */ /* Flip Card Styles */ .flip-container { perspective: 1000px; display: inline-block; margin: 10px; } .flip-card { position: relative; width: 150px; height: 150px; transition: transform 0.6s; transform-style: preserve-3d; } .flip-card.flipped { transform: rotateY(180deg); } .flip-card .front, .flip-card .back { position: absolute; width: 100%; /* Ensure both sides take the full width */ height: 100%; /* Ensure both sides take the full height */ backface-visibility: hidden; display: flex; align-items: center; justify-content: center; overflow: hidden; /* Prevent overflow of content */ text-align: center; /* Center text horizontally */ padding: 10px; /* Ensure padding does not push text out */ } .flip-card .front { background-color: #fff; color: black; font-size: 18px; border: 1px solid #ddd; border-radius: 5px; } .flip-card .back { background-color: #f9f9f9; color: black; transform: rotateY(180deg); border: 1px solid #ddd; border-radius: 5px; } /* Responsive font size to fit content */ .flip-card .front, .flip-card .back { font-size: calc(10px + 1vw); /* Adjust size dynamically based on viewport width */ }
Comments