horrordle/style.css
2022-08-07 11:40:24 +03:00

404 lines
6.0 KiB
CSS

* { box-sizing: border-box; }
.content{
width: 100%;
position: relative;
margin: 30px 0;
}
.overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
transition: opacity 500ms;
visibility: hidden;
opacity: 0;
z-index: 99;
}
.InstructionText{
position: absolute;
margin-left: 65px;
margin-top: -50px;
}
.overlay:target {
visibility: visible;
opacity: 1;
}
.popup {
text-align: left;
margin: 70px auto;
padding: 20px;
background: #333;
border-radius: 5px;
width: 30%;
position: relative;
transition: all 5s ease-in-out;
overflow: hidden;
}
.popup i{
padding: 14px 16px;
font-size: 36px;
display: flex;
align-items: center;
}
.popup h2 {
margin-top: 0;
color: white;
font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
position: absolute;
top: 20px;
right: 30px;
transition: all 200ms;
font-size: 30px;
font-weight: bold;
text-decoration: none;
color: white;;
}
.popup .close:hover {
color: red;
}
.popup .content {
max-height: 30%;
overflow: auto;
}
body {
margin: 0px;
background-color: #121212;
color: white;
font: 16px Arial;
display:flex; flex-direction:column; justify-content:center;
text-align: center;
}
p {
margin:0;
}
i{
font-size: 1.5rem;
}
.mobileInfo{
display: none;
}
.bottomContainer{
padding: 16px;
}
.subnav{
margin-left: auto;
margin-right: auto;
width: 50%;
}
#shareResult{
background-color: green;
margin-top: 20px;
display:none;
margin-left: auto;
margin-right: auto;
}
#guessForm{
padding-bottom: 14px;
}
#firstGuess , #secondGuess{
display: none;
margin-top: 10px;
border-style: solid;
padding-top: 10px;
padding-bottom:10px;
width: 450px;
/* display: block; */
margin-left: auto;
margin-right: auto;
}
.cross{
width: 20px;
margin-left: 0px;
}
.center {
display: block;
padding: 14px 16px;
margin-left: auto;
margin-right: auto;
width: 50%;
}
.title {
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
}
.autocomplete {
/*the container must be positioned relative:*/
width: 60%;
text-align:left;
position: relative;
display: inline-block;
}
#guessForm {
width: 50%;
left: 0;
right: 0;
margin: 0 auto;
}
input {
border: 1px solid transparent;
background-color: #f1f1f1;
/* color: black; */
padding: 10px;
font-size: 16px;
resize: vertical;
}
input[type=text] {
background-color: #f1f1f1;
width: 100%;
border-radius: 5px;
}
input[type=button] {
border-radius: 5px;
background-color: #B91C1C;
color: #fff;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
color: black;
border-bottom: none;
border-top: none;
z-index: 99;
/*position the autocomplete items to be the same width as the container:*/
top: 100%;
left: 0;
right: 0;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
/*when hovering an item:*/
background-color: #e9e9e9;
}
.autocomplete-active {
/*when navigating through the items using the arrow keys:*/
background-color: DodgerBlue !important;
color: #ffffff;
}
/* style of navigation */
.topnav {
margin-top: 0px;
background-color: #333;
overflow: hidden;
text-align: center;
padding: 5 5 5 5;
}
/* Style the links inside the navigation bar */
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px 14px 16px;
text-decoration: none;
font-size: 17px;
}
/* Change the color of links on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Add a color to the active/current link */
.topnav a.active {
background-color: #04AA6D;
color: white;
}
/* Right-aligned section inside the top navigation */
.topnav-right {
float: right;
}
@media only screen and (max-width: 1200px) {
.subnav{
margin-left: auto;
margin-right: auto;
width: 100%;
}
.center {
display: block;
padding: 14px 16px;
margin-left: auto;
margin-right: auto;
width: 100%;
}
#guessForm {
width: 100%;
}
#firstGuess , #secondGuess{
width: 100%;
/* display: block; */
margin-left: auto;
margin-right: auto;
}
}
.archive{
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.calendar {
position: relative;
width: 400px;
background-color: #fff;
box-sizing: border-box;
box-shadow: 0 5px 50px rgba(#000, 0.5);
border-radius: 8px;
overflow: hidden;
}
.calendar__date {
padding: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
grid-gap: 25px;
box-sizing: border-box;
}
.calendar__day {
display: flex;
align-items: center;
justify-content: center;
height: 25px;
font-weight: 600;
color: #262626;
&:nth-child(7) {
color: #ff685d;
}
}
.calendar__number {
display: flex;
align-items: center;
justify-content: center;
height: 25px;
color: grey;
font-style:oblique;
}
.current{
border-style: dashed;
background-color: orange;
color: white;
border-color: black;
border-width: 2px;
font-style:normal;
}
.past{
background-color: orange;
cursor: pointer;
color: white;
font-style:normal;
}
.won{
/* cursor:none; */
color: white;
cursor:default;
background-color: green;
font-style:normal;
/* border-width: 0px; */
}
.lost{
/* cursor:none; */
color: white;
background-color: red;
font-style:normal;
/* border-width: 0px; */
}
@media only screen and (max-width: 600px) {
.topnav a {
text-align: center;
padding: 7px 8px 7px 8px;
text-decoration: none;
font-size: 17px;
}
i {
font-size: 1rem;
}
.wideInfo{
display: none;
}
.mobileInfo{
display: block;
}
.title {
position: relative;
float: left;
width: 200px;
}
.popup{
width: 90%;
}
input {
padding: 10px;
font-size: 16px;
}
input[type=text] {
background-color: #f1f1f1;
width: 100%;
border-radius: 5px;
}
input[type=button] {
border-radius: 5px;
background-color: #B91C1C;
color: #fff;
}
#guessForm {
width: 100%;
}
}