Skip to content
Merged
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
273 changes: 154 additions & 119 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,175 +1,146 @@
/* body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
body {
margin: 0;
padding: 0;
}

header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}

section {
padding: 20px;
margin: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#crypto-form {
margin-top: 20px;
}

input {
padding: 10px;
font-size: 16px;
margin-right: 10px;
}

button {
padding: 10px 15px;
background-color: #333;
color: #fff;
border: none;
cursor: pointer;
}

button:hover {
background-color: #555;
}

#price-result {
margin-top: 20px;
}

#price {
font-size: 24px;
color: #007BFF;
} */

body{
margin: 0;
padding: 0;
/* background-color: blueviolet; */
background: #c31432; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #240b36, #c31432); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #240b36, #c31432); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: linear-gradient(135deg, #240b36, #c31432);
color: white;
height: 100vh;

font-family: "Gowun Batang", serif;
font-weight: 400;
font-style: normal;
display: flex;
flex-direction: column;
justify-content: space-between;
}

h1, h2, h3{
padding: 0;
h1, h2, h3 {
margin: 0;
}

.header{
.header {
text-align: center;
background-color: #2E073F;
color: #EBD3F8;
padding: 1.4rem;
box-shadow: 0 1px 10px 2px rgb(160, 159, 159);
color: #EBD3F8;
padding: 1.2rem;
font-family: "Mate SC", serif;
font-size: 1.8rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tagline{
.tagline {
text-align: center;
font-family: "Fredoka", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 3rem;
width: 80%;
font-weight: 500;
font-size: 1.6rem;
color: #FFEB55;
margin: 1rem auto;
max-width: 85%;
}

.central{
.central {
display: flex;
margin: 2rem 1rem;
gap: 2rem;
flex-direction: column;
align-items: center;
margin: 1.2rem 1rem;
gap: 1rem;
}

#crypto-price-predictor{
background-color: #fff;
background-color: rgba(0, 0, 0, 0.281);
border-radius: 30px;
padding: 1rem 1.5rem;
font-size: 20px;
#crypto-price-predictor {
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 1.2rem;
font-size: 0.9rem;
text-align: center;
width: 95%;
max-width: 400px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#crypto-price-predictor h2{
text-align: center;
margin-bottom: 10px;
#crypto-price-predictor h2 {
margin-bottom: 0.6rem;
color: #FFEB55;
font-family: "Fredoka", sans-serif;
font-size: 1.3rem;
}
#crypto{

#crypto {
display: block;
width: 80%;
font-size: 1.5rem;
margin: 1rem auto;
width: 100%;
max-width: 100%; /* Ensures it stays within the container */
font-size: 1.1rem;
padding: 0.7rem;
border-radius: 10px;
border: none;
margin: 0.8rem 0;
background-color: #f0f0f0;
color: #000;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
}
#predict-btn{
-webkit-border-radius: 19;
-moz-border-radius: 19;

#predict-btn {
font-family: "Fredoka", sans-serif;
border-radius: 19px;
color: #000000;
font-size: 20px;
border-radius: 19px;
color: #000;
font-size: 1.1rem;
background: #FFEB55;
padding: 10px 30px;
margin: 10px auto;
text-decoration: none;
padding: 0.6rem 1.8rem;
border: none;
cursor: pointer;
transition: background 0.3s ease;
}

#predict-btn:hover {
background: #FBD786;
text-decoration: none;
background: #fbd786;
}

#price-result {
margin-top: 1.2rem;
}

#price{
#price {
margin-top: 0;
font-size: 1.5rem;
color: #ffee00;
font-weight: 700;
color: #FFEB55;
font-weight: bold;
}


#repo-info{
#repo-info {
background-color: #fffefe10;
position: absolute;
bottom: 0px;
width: 100%;
text-align: center;
text-align: center;
padding: 1.5rem;
box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
font-size: 1rem;
}
#repo-info p{
margin: 0;

#repo-info p {
margin: 0.5rem 0;
color: #FFF;
}
#repo-info a{
color:#ffee00;

#repo-info a {
color: #FFEB55;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}

#repo-info a:hover {
color: #fbd786;
}

#crypto-suggestions {
display: none;
position: absolute;
border: 1px solid #ccc;
border-radius: 5px;
background-color: white;
background-color: #fff;
max-height: 150px;
overflow-y: auto;
width: 384px;
width: 90%;
z-index: 1000;
color: #000000;
left: 3rem;
top: 7rem;
left: 5%;
color: #000;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#crypto-suggestions div {
Expand All @@ -181,6 +152,70 @@ h1, h2, h3{
background-color: #f0f0f0;
}

#crypto-form {
position: relative;
}
@media (min-width: 768px) {
.central {
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
}

#crypto-price-predictor {
width: 45%;
}

.tagline {
font-size: 2.5rem;
max-width: 70%;
}

.header h1 {
font-size: 3rem;
}
}

@media (max-width: 767px) {
#crypto-price-predictor {
width: 100%;
padding: 1.2rem;
}

#crypto {
font-size: 1rem;
}

#predict-btn {
font-size: 1rem;
padding: 0.5rem 1.2rem;
}

.tagline {
font-size: 1rem;
max-width: 90%;
text-align: center;
margin: 0.8rem auto;
}

.header h1 {
font-size: 1.4rem;
}

#repo-info {
padding: 1rem;
font-size: 0.9rem;
}

#repo-info h2{
font-size: 1rem;
}

#repo-info p {
font-size: 0.9rem;
margin: 0.5rem auto;
max-width: 90%;
}

#repo-info a {
font-size: 1rem;
word-wrap: break-word;
}
}