body {
  background-color: #9f86c0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
}

nav {
  background-color: #000000;
  color: white;
  padding: 30px;
  position: relative; 
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 20px; 
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 17px;
}

.nav-links a:hover {
  color: #ccc; 
}

input {
  padding: 12px 14px;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 8px;
}

.menu {
  display: flex;
  align-items: center;
  padding: 0 30px; 
}


#closePanel {
  background: black;
  color: white;
  border: 2px solid black;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

#closePanel:hover {
  background: white;
  color: #111;
  transition: 0.3s;
}

.open-panel {
  background: none;
  color: white;
  font-size: 25px;
  cursor: pointer;
}

#myMenu {
  list-style: none;
  padding: 0;
}

.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #111;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
}

.side-panel a {
  color: white;
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
}

.side-panel a:hover {
  background-color: #333;
  padding-left: 30px;
}

h1{
  text-align: center;
  margin-top: 40px;
  font-size: 40px;
  padding: 15px;
  color: white;
  background-color: black;
  font-weight: 700;
}

table {
  margin: 60px auto;
  border-collapse: collapse;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
  font-size: 14px;
}

th {
  background-color: #333;
}

td {
  background-color: #f9f9f9;
}

.intro {
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  color: white;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  padding-bottom: 20px;
}

.intro::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background: white;
  margin: 20px auto 0;
  border-radius: 10px;
}

.ph{
  background-color: rgb(218, 182, 255);
}
.eng{
  background-color: rgb(140, 250, 187);
}
.tim{
  background-color: rgb(252, 246, 136);
} 
.yrk{
  background-color: rgb(150, 255, 184);
}
.tek{
  background-color: rgb(135, 252, 240);
}
.nat{
  background-color: rgb(255, 157, 227);
}
.mat{
  background-color: rgb(223, 255, 158);
}
.kp{
  background-color: rgb(255, 199, 154);
}
.kr{
  background-color: rgb(133, 154, 247);
}
.kl{
  background-color: rgb(204, 243, 156);
}


.projects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.prosjekt {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
}
  
.prosjekt:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
  
.projects p {
  font-size: 28px;
  color: #5e548e;
}
  
.prosjekt a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 18px;
}

.prosjekt a:hover {
  color: #6a4c93;
}

footer {
  margin-top: 100px;
  padding: 60px 20px;
  text-align: center;
  background: #ede7f6;
  border-radius: 40px 40px 0 0;
}

footer h2 {
  font-size: 1.8rem;
  color: #333;
}

footer p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #555;
}

footer a {
  color: #444;
  text-decoration: underline;
}

html{
  scroll-behavior: smooth;
}

#kontakt {
  scroll-margin-top: 80px;
}