Skip to content

Commit

Permalink
Merge pull request #699 from Tejashri-Taral/main
Browse files Browse the repository at this point in the history
styled the "how to play" to align it with the design style of "termsOfServices"
  • Loading branch information
ayush-t02 committed Aug 5, 2024
2 parents 2705509 + b88f212 commit 39a1a8c
Showing 1 changed file with 54 additions and 75 deletions.
129 changes: 54 additions & 75 deletions styles/howtoplay.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
body {
font-family: "Press Start 2P", cursive;
background-color: #ffe285;
font-family: "Comic Sans MS", "Chalkboard SE", "Arial", sans-serif;
background-color: #f2bf6d;
color: #fff;
margin: 0;
padding: 0;
color: #333;
overflow-x: hidden;
}

Expand All @@ -19,54 +19,45 @@ body {
display: block;
margin: 5px 0;
position: relative;
-webkit-transition: all 0.3s ease-out 0s;
-moz-transition: all 0.3s ease-out 0s;
-ms-transition: all 0.3s ease-out 0s;
-o-transition: all 0.3s ease-out 0s;
transition: all 0.3s ease-out 0s;
transition: all 0.3s ease-out;
}

.instructions-container {
display: flex;
flex-direction: column;
justify-content: center;
max-width: 65%;
margin: auto;
padding: 20px;
background: linear-gradient(
to top,
rgba(254, 187, 17, 0.78),
rgb(247, 242, 101)
);
border-radius: 10px;
box-shadow: 0px 5px 15px rgba(6, 6, 6, 0.829);
max-width: 900px;
margin: 2rem auto;
padding: 2rem;
background: rgba(52, 152, 219, 0.8);
border-radius: 20px;
box-shadow: 0 0 30px rgba(241, 196, 15, 0.5);
text-align: left;
line-height: 1.6;
padding-bottom: 100px;
margin-top: 20px;
margin-bottom: 40px;
}

.instructions-container h1 {
margin-bottom: 20px;
color: #25254a;
font-size: 30px;
margin-bottom: 2rem;
color: #f1c40f;
font-size: 3rem;
text-shadow: 3px 3px 0 #e74c3c;
}

.instructions-container p,
.instructions-container li {
font-size: 17px;
margin-bottom: 15px;
font-size: 1.1rem;
margin-bottom: 1rem;
list-style-type: none;
color: #fff;
}

.instructions-container ol {
padding-left: 10px;
padding-left: 1.5rem;
}

.instructions-container strong {
color: #25254a;
font-size: 22px;
color: #f39c12;
font-size: 1.3rem;
text-decoration: underline;
}

Expand All @@ -75,26 +66,28 @@ body {
}

.heading2 {
font-size: 29px;
font-size: 2rem;
text-align: center;
color: #f1c40f;
}

.gameplay-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
margin-top: 2px;
padding: 8px;
gap: 1rem;
margin-top: 2rem;
padding: 1rem;
border-radius: 15px;
font-family: "Press Start 2P", cursive;
background: rgba(231, 76, 60, 0.7);
color: #fff;
}

.gameplay-item {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.1);
padding: 15px;
background: rgba(255, 255, 255, 0.2);
padding: 1rem;
border-radius: 10px;
width: 100%;
max-width: 800px;
Expand All @@ -107,104 +100,85 @@ body {
}

.gameplay-icon {
font-size: 30px;
margin-right: 15px;
font-size: 2rem;
margin-right: 1rem;
}

.gameplay-text {
margin: 0;
font-size: 15px;
font-size: 1rem;
flex: 1;
}

@media (max-width: 767px) {
@media (max-width: 768px) {
.instructions-container {
max-width: 65%;
}
.gameplay-item {
flex-direction: column;
align-items: flex-start;
margin: 1rem;
padding: 1rem;
}

.gameplay-icon {
margin-bottom: 10px;
}
}

@media (max-width: 640px) {
.instructions-container {
max-width: 65%;
}
.gameplay-item {
flex-direction: column;
align-items: flex-start;
}

.gameplay-icon {
margin-bottom: 10px;
margin-bottom: 0.5rem;
}
}

.home {
font-family: "Press Start 2P", cursive;
font-family: "Comic Sans MS", "Chalkboard SE", "Arial", sans-serif;
display: inline-block;
cursor: pointer;
margin-top: 30px;
margin-top: 2rem;
padding: 12px 5px;
background: #ff6933;
background: #f16b4a;
color: #fff;
margin: 0 25%;
text-align: center;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
text-transform: uppercase;
}

.home:hover {
background-color: #d23d07;
background-color: #e74c3c;
}

.home span {
font-size: 28px;
}

@media (max-width: 767px) {
.instructions-container {
max-width: 90%;
padding: 15px 25px;
line-height: 1.5;
}
font-size: 1.5rem;
}

.tutorial-video {
display: flex;
justify-content: center;
align-items: center;
margin: 20px 0;
margin: 2rem 0;
border-radius: 10px;
}

.tutorial-video video {
width: 70%;
width: 80%;
border-radius: 10px;
}

.nav-links {
letter-spacing: 4px;
letter-spacing: 2px;
display: flex;
justify-content: space-between;
align-items: center;
list-style: none;
width: 50%;
width: 100%;
padding: 0;
color: white;
color: #fff;
font-family: inherit;
}

.nav-links li a,
.logo a {
color: white;
color: #fff;
text-decoration: none;
}

button a {
Expand All @@ -214,4 +188,9 @@ button a {
.start {
padding: 10px 5px;
border-radius: 5px;
background-color: #f1c40f;
color: #fff;
text-transform: uppercase;
font-weight: bold;
text-decoration: none;
}

0 comments on commit 39a1a8c

Please sign in to comment.