DevJourney · code I wrote while learning

styles.css

1.3 KB
body {
  background: url(./media/sample.jpg);
  align-items: center;
}

a {
  color: red;
}

p {
  text-align: center;
  font-family: Arial;
}

form {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  width: 300px;
  box-sizing: border-box;
  margin: auto;
  margin-top: 100px;
}

form h2 {
  text-align: center;
  color: #ffffff;
}

label {
  color: #cccccc;
}

input[type='text'],
input[type='number'],
input[type='submit'] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  margin-top: 10px;
}

input[type='text'],
input[type='number'] {
  background-color: #2e2e2e;
  color: #f5f5f5;
}

input[type='text']:focus,
input[type='number']:focus {
  outline: none;
  border: 2px solid #007bff;
}

input[type='radio'],
input[type='checkbox'] {
  margin-right: 5px;
}

input[type='submit'] {
  background-color: #007bff;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
}

input[type='submit']:hover {
  background-color: #0056b3;
}

input[type='submit']:active {
  background-color: #003f7f;
}

.box {
  width: 300px;
  border: 2px solid #333;
  background-color: #fff;
  padding: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: auto;
}

.box p {
  padding: 50px;
}