
.topnav {
  overflow: hidden;
  padding: 20px;
}

.topnav a {
  float: right;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  font-family: SF-pro;
  cursor: pointer;
}

.cvbtn{
  float: right;
  background-color: transparent;
  color: #f2f2f2;
  padding: 10px 25px;
  border-radius: 5px;
  border: 2px #E8C547 solid;
  font-family: SF-pro;
  font-size: 20px;
  font-weight: 550;
  top: 160%;
  cursor: pointer;
}

.cvbtn:hover{
  background-color: #E8C547;
  color: black;
}

.topnav a:hover {
  text-decoration: underline #E8C547; 
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}


/*------------------
     Portefølje
------------------*/

body {
  background-color:#07020D;
}

@font-face {
  font-family: SF-Pro;
  src: url("Fonts/sf-pro-display-cufonfonts/SFPRODISPLAYREGULAR.OTF");
}



.header {
  margin-top: 5%;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.text{
  height: fit-content;
  width: auto;
  margin: 2%;
}

.job {
  color: silver;
  font-family: SF-Pro;
  font-size: 70px;
  margin: 0;
}



.headtext {
  color: white;
  font-family: SF-Pro;
  font-weight: 600;
  font-size: 70px;
  margin: 0;
}

.headtext2{
  color: #E8C547;
  font-family: SF-Pro;
  font-weight: 600;
  font-size: 70px;
  margin: 0;
}





.portrett {
  transform:translate(-50%,50%);
	background-size:500px 600px;
	border-radius: 80% 20% 32% 68% / 58% 22% 78% 42% ;
	height:500px;
	width: 500px;
  background-image: url(Bilder/Portrett.jpeg);
  position: absolute;
	top:1%;
	right: 5%;
}


@media screen and (max-width: 1600px) {
  .portrett{
    position: absolute;
    right: 50%;
    left: 50%;
    top: 5%;
    height: 400px;
    width: 400px;
    background-size:400px 500px;
  }

}



.om-meg {
  margin-top: 5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  align-items: center;
}

.textom {
  margin-top: 2%;
  color: white;
  font-family: SF-Pro;
  width: 40%;
  font-size: 40px;
}

.om-header {
  margin-left: 30px;
  margin-bottom: 40px;
  width: 100%;
  font-size: 60px;
  color: #E8C547;
}

.omtext {
  margin: 30px;
  width: 100%;
  font-size: 20px;
}

.om-img {
  border-radius: 40px;
  margin-top: 10%;
  height: 45%;
  width: 45%;
}

.mywork {
  font-family: SF-Pro;
  font-size: 70px;
  font-weight: 700;
  color: #E8C547;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5%;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 5%;
  margin-bottom: 10rem;
  font-family: SF-Pro;
  font-weight: 400;
}

.portfolio-item {
  position: relative;
  width: 500px;
  height: 300px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}

.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.portfolio-item .title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item:hover img {
  opacity: 0.7;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item:hover .title {
  bottom: 10px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
