
html { 
  height: 100%; 
}

body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Calibri, sans-serif;
  color: black;
  font-size: 1em;
}

header {
  
  padding: 1em 5%;
  position: relative;
  font-size: 1.1em;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 5em;
}

.backgr-image {
  background: url('background.png') top center ;  
  height:650px;  
  background-repeat: no-repeat;  
  position: relative;
}

.backgr-text {
  text-align: left;
  position: relative;
  top: 15%;
}

.LinkedIn_Icon img {
  height: 1.6em;
}

.home_img img {
  max-width: 200px;
  width: 90%;  
  height: auto;
}


.profile_img img {
  max-width: 300px;  
  height: auto;
}

.menu-icon {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: #00b746;
}

#menu-toggle {
  display: none;
}

nav.menu {
  display: flex;
  gap: 2em;
}

nav.menu a {
  color: #000000;
  text-decoration: none;
  padding: 0.5em;
}  

@media (max-width: 768px) {

  body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Calibri, sans-serif;
  color: black;
  font-size: 0.8em;
  }

  .menu-icon {
    display: block;  
  }

  nav.menu {
    display: none;
    flex-direction: column;
    gap: 0.5em;
    background-color: #ffffff;
    position: absolute;
    top:100%;
    right:0;
    width: 50%;
    border-bottom: 1px solid #ddd;
    border-radius: 20px; 
    text-align: right;
    box-sizing: border-box;       /* Include padding/border in total width/height. */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: soft shadow below nav. */
    z-index: 1000;
  }

  /* Requires: [input#menu-toggle][label.menu-icon][nav.menu] in that order */
  #menu-toggle:checked + .menu-icon + .menu { display: flex; }
}

.grid {
    display: grid;
    margin: 5px;
    grid-gap: 10px
}

.grid > div {
    font-size: 1em;
    padding: 1rem;
    text-align: center;
}

.auto-fill-profil {
    grid-template-columns: repeat(auto-fill,
            minmax(300px, 1fr));
}

.auto-fit-home {
    grid-template-columns: repeat(auto-fit,
            minmax(200px, 1fr));
}

.box {  
  display: grid;
  justify-content: center;
  place-items: center;
  min-width: 180px;
  border: 2px solid rgb(245, 245, 245);
  background-color: #ffffff00;
  border-radius: 20px;  
}

main {  
  padding: 1em;
  font-size: 1.1em;
  width: 80%;
  margin: 0 auto;
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

.footer {
  background-color: rgba(255, 255, 255, 0.671);  
  padding: 2%;  
  width: 98%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;       /* Vertical centering for flex children */
  font-size: 0.8em;
}

.footer-content {
  padding-left: 1em;
}
