/* Overall background and fonts  */

body, html {
 margin: 0;
 padding: 0;
 background-image: url('BG1.jpg');
 background-repeat: no-repeat;
 background-position: center center;
 background-size: cover;
 color: black(169, 187, 15);
 font-size: 18px;
 font-family: Arial, Helvetica, sans-serif; 
}

/* Main Headings */

h2 {
 font-size: 24px;
 font-weight: bold;
 color: rgb(140, 140, 9); 
}

#experience h4 {
  text-align: center;
}

/* Header/title - Main */

header {
 text-align: center;
 margin: 0 auto;
 margin-left: 150px;
 display: flex;
 justify-content: flex-start;
 align-items: center;
}

header h1 {
 font-size: 36px; 
 color: darkblue;
 margin-bottom: 0;
}

.header-text {
 flex-grow: 1;
 font-size: 24px;
 color: black;
 text-align: center;
}

.header-content {
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 20px;  
}

.circle-image {
 width: 150px; 
 height: 150px; 
 border-radius: 80%; 
 object-fit: cover; 
 margin-right: 20px;
}

.header-container {
 background-color: transparent;
 box-shadow: 0px 5px 10px rgba(0, 0, 0, 1); 
}

main {
 text-align: left;
}

p {
 margin: 0; 
}

section {
 margin: 10px 0;
 padding: 10px;
}

/* Experience */

#experience {
 margin-top: 20px;
 }
 
 .experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
 }
 
 .experience-item {
  background-color: darkgray;
  color: rgb(49, 45, 45); 
  border: 1px solid black;
  padding: 10px;
  margin-bottom: 15px; 
 }
 
 .experience-item h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  text-align: center; 
}

/* Skills */

.skills-container {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
}

#skills ul {
 list-style-type: none;
 padding: 0px;
 display: flex;
 flex-direction: row;
 flex-wrap: wrap;
}

#skills li {
 margin-right: 10px;
 margin-bottom: 10px; 
 padding: 5px;
 background-color: darkgray;
 border: 1px solid black;
 border-radius: 5px;    
}

/* Message Section */

form[name="leave_message"] {
 width: 80%; 
 margin: 0 auto; 
}

form[name="leave_message"] label {
 font-size: 18px; 
 color: black; 
}

form[name="leave_message"] input[type="text"],
form[name="leave_message"] input[type="email"],
form[name="leave_message"] textarea {
 font-size: 16px; 
 padding: 10px; 
 border: 1px solid black; 
 width: calc(100% - 20px); 
 margin-bottom: 15px; 
}

form[name="leave_message"] textarea[name="usersMessage"] {
 font-size: 16px;
 padding: 10px;
 border: 1px solid black;
 width: 198%; 
 margin-bottom: 15px;
}

form[name="leave_message"] button[type="submit"] {
 padding: 10px 20px; 
 background-color: blue; 
 color: white; 
 border: none;
 cursor: pointer;
 border-radius: 5px;
 width: 100%;
 box-sizing: border-box;
}

/* Message List - user input */

#messages ul {
 list-style-type: none;
 padding: 0;
}

#messages li {
 margin-bottom: 15px; 
 padding: 15px;
 background-color: whitesmoke; 
 border: 1px solid whitesmoke; 
 border-radius: 5px; 
}

#messages button {
 padding: 8px 15px; 
 background-color: blue; 
 color: white; 
 border: none;
 cursor: pointer;
 border-radius: 5px; 
}

/* Update the "Leave a Message" form to use Flexbox or CSS Grid*/

.message-form {
 display: grid;
 grid-template-columns: 1fr 1fr; 
 grid-gap: 10px; 
}
 
.message-form div {
 display: grid;
 flex-direction: column;
}
 
.message-form label {
 font-weight: bold;
}
 
.message-form .message textarea {
 resize: vertical;
}
 
.message-form .submit-button {
 grid-column: span 2; 
}
 
.message-form button {
 width: 100%;
 padding: 10px;
 background-color: blue; 
 color: white;
 border: none;
}

/* Footer */

footer {
 padding: 10px; 
 background-color: darkblue; 
 color: white; 
}

/* Navigation */

nav {
 background-color: olive;
 position: sticky;
 top: 0;
 z-index: 100;
 text-align: center; 
}
 
nav ul {
 list-style-type: none;
 margin: 0;
 padding: 0;
}
 
nav li {
 display: inline;
 margin-right: 20px;
}
 
nav a {
 text-decoration: none;
 color: white; 
 font-weight: bold;
}

/* Media Query */

@media (max-width: 767px) {
 main {
  padding: 10px; 
 }
   
 section {
  margin-bottom: 15px; 
 }
   
 form[name="leave_message"] {
  width: 100%; 
 }
}
 
@media (min-width: 768px) and (max-width: 1023px) {
 main {
  padding: 20px; 
 }
}

@media (min-width: 1024px) {
 main {
  width: 80%; 
  margin: 0 auto; 
 } 
} 
 