/* style.css */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

header {
  background: #333;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 1rem;
  max-width: 1500px;
  margin: 0 auto;
  flex: 1;
}

#hero {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  padding-bottom: 100px;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.grid_index {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.card h3 {
  margin-top: 0.5rem;
}

footer {
  text-align: center;
  
  margin-top: 2rem;
  background: #eee;
  
}



.social-links {
  display: flex;
  justify-content: center; /* centrerar ikonerna */
  gap: 2rem; /* avstånd mellan ikonerna */
  margin-top: 1rem;
}

.social-links img {
  transition: transform 0.2s;
}

.social-links img:hover {
  transform: scale(1.2);
}

h4 .status {
  display: block;       
  font-size: 0.9em;     
  font-style: italic;   
  color: gray;          
  margin-top: 4px;      
}

.about-me {
  margin-top: 1rem;
  line-height: 1.5;
  font-size: 20px;
}

/* Contact form */
#contact form {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#contact form label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
}

#contact form input,
#contact form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: none; 
}

#contact form input:focus,
#contact form textarea:focus {
  border-color: #666;
  outline: none;
}

#contact form button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

#contact form button:hover {
  background: #555;
}

#form-status {
  font-size: 0.85rem;
  color: #555;
}
