If you guess wrong a new death scene from the movie is revealed but you will use 1 point.
diff --git a/autoComplete.css b/autoComplete.css new file mode 100644 index 0000000..10530a8 --- /dev/null +++ b/autoComplete.css @@ -0,0 +1,128 @@ +.autoComplete_wrapper { + display: inline-block; + position: relative; +} + +.autoComplete_wrapper > input { + height: 40px; + width: 100%; + margin: 0; + padding: 0 2rem 0 3rem; + box-sizing: border-box; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + font-size: 1rem; + text-overflow: ellipsis; + color: black; + outline: none; + /* border-radius: 10rem; */ + /* border: 0.05rem solid rgba(255, 0, 9, 0.5); */ + background-image: url(./images/search.svg); + background-size: 1.4rem; + background-position: left 0.8rem top 0.5rem; + background-repeat: no-repeat; + background-origin: border-box; + background-color: #fff; + transition: all 0.4s ease; + -webkit-transition: all -webkit-transform 0.4s ease; +} + +.autoComplete_wrapper > input::placeholder { + color: grey; + transition: all 0.3s ease; + -webkit-transition: all -webkit-transform 0.3s ease; +} + +.autoComplete_wrapper > input:hover::placeholder { + color: grey; + transition: all 0.3s ease; + -webkit-transition: all -webkit-transform 0.3s ease; +} + +.autoComplete_wrapper > input:focus::placeholder { + padding: 0.1rem 0.6rem; + font-size: 0.95rem; + color: rgb(224, 224, 224); +} + +.autoComplete_wrapper > input:focus::selection { + background-color: rgba(255, 122, 122, 0.15); +} + +.autoComplete_wrapper > input::selection { + background-color: rgba(255, 122, 122, 0.15); +} + +.autoComplete_wrapper > input:hover { + color: grey; + transition: all 0.3s ease; + -webkit-transition: all -webkit-transform 0.3s ease; +} + +.autoComplete_wrapper > input:focus { + color: grey; + border: 0.06rem solid grey; +} + +.autoComplete_wrapper > ul { + position: absolute; + max-height: 226px; + overflow-y: scroll; + box-sizing: border-box; + left: 0; + right: 0; + margin: 0.5rem 0 0 0; + padding: 0; + z-index: 1; + list-style: none; + border-radius: 0.6rem; + background-color: #fff; + border: 1px solid rgba(33, 33, 33, 0.07); + box-shadow: 0 3px 6px rgba(149, 157, 165, 0.15); + outline: none; + transition: opacity 0.15s ease-in-out; + -moz-transition: opacity 0.15s ease-in-out; + -webkit-transition: opacity 0.15s ease-in-out; +} + +.autoComplete_wrapper > ul[hidden], +.autoComplete_wrapper > ul:empty { + display: block; + opacity: 0; + transform: scale(0); +} + +.autoComplete_wrapper > ul > li { + margin: 0.3rem; + padding: 0.3rem 0.5rem; + text-align: left; + font-size: 1rem; + color: #212121; + border-radius: 0.35rem; + background-color: rgba(255, 255, 255, 1); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + transition: all 0.2s ease; +} + +.autoComplete_wrapper > ul > li mark { + background-color: transparent; + color: #B91C1C; + font-weight: bold; +} + +.autoComplete_wrapper > ul > li:hover { + cursor: pointer; + background-color: rgba(255, 122, 122, 0.15); +} + +.autoComplete_wrapper > ul > li[aria-selected="true"] { + background-color: rgba(255, 122, 122, 0.15); +} + +/* @media only screen and (max-width: 600px) { + .autoComplete_wrapper > input { + width: 18rem; + } +} */ diff --git a/images/90.gif b/images/90.gif new file mode 100644 index 0000000..af66625 Binary files /dev/null and b/images/90.gif differ diff --git a/images/back.png b/images/back.png new file mode 100644 index 0000000..63c20ff Binary files /dev/null and b/images/back.png differ diff --git a/images/images.png b/images/images.png new file mode 100644 index 0000000..a435315 Binary files /dev/null and b/images/images.png differ diff --git a/images/place.png b/images/place.png new file mode 100644 index 0000000..c18c681 Binary files /dev/null and b/images/place.png differ diff --git a/images/search.svg b/images/search.svg new file mode 100644 index 0000000..62d9ca1 --- /dev/null +++ b/images/search.svg @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/index.html b/index.html index e645f6e..6a451b1 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@ +
Use the death scene provided to guess the name of the movie.
If you guess wrong a new death scene from the movie is revealed but you will use 1 point.
You have a maximum of 3 guesses to find the movie.