@import 'style.css';

section h3,
section h4 {
  margin-bottom: 0;
}

section p,
section ul {
  margin-top: 5px;

}

aside {
  display: flex;
  flex-direction: column;
  float: right;
  width: 25%;
  padding: 1rem;
}

.job-listing {
  padding: 2rem;
  background-color: var(--background-color);
  color: var(--text-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  margin: 10px;
}

.image {
  width: 200px;
  height: auto;
  display: block;
  background-color: #f9f9f9;
  border-radius: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
}

hr,
footer {
  clear: both;
}

/*Setting up search box*/
form {
    right: 0;
    position: absolute;
    top: 1.8em;
    transform: translateY(-50%);
    transition: width 1s;
    z-index: 5;
    width: 50px;
    height: 50px;
    background: var(--search-color);
    box-sizing: border-box;
    border-radius: 25px;
    border: 4px solid var(--search-color);
}

input {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 42px;
    line-height: 30px;
    outline: 0;
    border: 0;
    display: none;
    font-size: 1em;
    border-radius: 20px;
    padding: 0 20px;
    background-color: var(--search-color);
    color: var(--text);
}

input::placeholder {
    color: var(--text)
}

label {
    transition: all 1s;
}

/*This is the search icon itself (icon is pulled from an online css stylesheet)*/
.fa {
    box-sizing: border-box;
    padding: 10px;
    width: 42px;
    height: 42px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    color: var(--text);
    text-align: center;
    font-size: 1.2em;
    transition: all 1s;
}

/*Expand to show text input box on hover*/
form:hover {
    width: 300px;
    cursor: pointer;
}

form:hover input {
    display: block;
}

form:hover .fa {
    background: var(--text);
    color: var(--search-color);
}
