Skip to content
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
100 changes: 86 additions & 14 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

body {
font-family: "Lato", sans-serif;
margin: 0;
padding: 0;
}

h2 {
Expand Down Expand Up @@ -31,7 +33,8 @@ section.alternate-background {
}

main img {
width: 100px;
width: 100%;
height: auto;
}

/* --- Groups & Items --- */
Expand All @@ -42,7 +45,6 @@ main img {
}

.item {
flex: 1;
margin: 10px;
}

Expand All @@ -54,28 +56,35 @@ main img {

header {
background-color: #ff385c;
padding: 20px 20px 0 20px;
text-align: center;
padding: 20px;
}

.logo {
font-family: "Pangolin", cursive;
font-size: 72px;
color: #fff;
flex: 1;
}

header nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex: 1;
justify-content: center; /* Center the navigation items for mobile view */
}

header nav ul li {
list-style-type: none;
margin-left: 20px;
}

header nav ul li a {
color: #fff;
text-decoration: none;
padding: 0 20px 0 0;
header nav ul li:first-child {
margin-left: 0;
}

header nav ul li a:hover {
color: #bdbdbd;
header nav ul li a {
color: #fff;
text-decoration: none;
}

Expand All @@ -92,7 +101,7 @@ form label {
form select,
form input {
margin-bottom: 20px;
width: 180px;
width: 100%;
}

form button {
Expand All @@ -108,12 +117,75 @@ form button {

footer {
background-color: #ff385c;
text-align: center;
}

footer p {
color: #fff;
text-align: center;
padding: 20px;
margin: 0;
}

/* ------- Media Query ------- */
/* ------- Media Queries ------- */

@media screen and (min-width: 768px) {
header {
display: flex;
justify-content: space-between;
align-items: center;
}

header nav {
margin-top: 10px;
}

#stay form {
display: flex;
justify-content: space-between;
}

#about {
display: flex;
align-items: center;
}

#about img {
flex: 1;
max-width: 400px;
margin-right: 20px;
}

#about p {
flex: 2;
}

#ideas img {
width: 100%;
}

#ideas h3 {
text-align: center;
}

#ideas {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 20px;
align-items: center;
}

#host {
display: flex;
align-items: center;
}

#host img {
flex: 1;
max-width: 400px;
margin-right: 20px;
}

#host p {
flex: 2;
}
}