Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update App.css #145

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 8 additions & 83 deletions paras/src/App.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

.app {
text-align: center;
background-color: white;
color: black;
min-height: 100vh;

font-family: Arial, sans-serif;
transition: background-color 0.3s, color 0.3s;

}

.header {
Expand Down Expand Up @@ -47,14 +46,16 @@
background-color: lightblue;
cursor: pointer;
color: black;

transition: background-color 0.3s, transform 0.2s;
border: 2px solid transparent;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cell:hover {
background-color: deepskyblue; /* Change on hover */
transform: scale(1.05); /* Slightly scale on hover */
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.5);
}

.cell.x {
Expand All @@ -63,23 +64,6 @@

.cell.o {
color: red; /* Specific color for O */
=======
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cell:hover {
background-color: #80deea;
transform: scale(1.1);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.5);
}

.board:hover {
background: linear-gradient(120deg, #0d2430, #4c7daf);
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);

}

.button {
Expand All @@ -91,21 +75,12 @@
border-radius: 5px;
border: none;
cursor: pointer;

transition: background-color 0.3s, transform 0.2s;
}

.button:hover {
background-color: deepskyblue;
transform: scale(1.05);

transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
background-color: #2196F3;
transform: scale(1.1);

}

.winner-message {
Expand Down Expand Up @@ -150,9 +125,6 @@
color: white;
}


.

.dark .cell {
border: 2px solid white;
}
Expand Down Expand Up @@ -243,8 +215,7 @@ input:checked + .slider:before {
border: 2px solid #999;
}

/* Base styles for both light and dark modes */
/* Light Theme Styles */
/* Rules card styles */
.rules-card {
background-color: #f9f9f9; /* Light background for the card */
border-radius: 15px; /* More rounded corners */
Expand All @@ -258,7 +229,7 @@ input:checked + .slider:before {
color: #333; /* Dark text color for readability */
}

/* Dark Theme Styles */
/* Dark Theme Styles for rules card */
.dark .rules-card {
background-color: #444; /* Dark background for the card */
color: #f9f9f9; /* Light text color for readability */
Expand Down Expand Up @@ -334,51 +305,5 @@ input:checked + .slider:before {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
margin: 20px 0;
}

.mode-selection h2 {
margin-bottom: 20px;
}

.mode-selection button {
margin: 10px;
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}

.mode-selection button:hover {
background-color: #45a049;
}

.back-button {
position: absolute;
top: 20px;
left: 20px;
padding: 10px 15px;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.back-button:hover {
background-color: #45a049;
}

.dark .back-button {
background-color: #2196F3;
}

.dark .back-button:hover {
background-color: #1e88e5;
}