html{
    overflow-x: hidden;
    max-width: 100vw;
    margin:0;
    padding:0;
}
body{
    overflow-x: hidden;
    max-width: 100vw;
    margin:0;
    padding:0;
}
#wrapper{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 5px 1fr 1fr 1fr 5px;
    grid-template-rows: 100px 1fr 1fr 1fr 1fr 1fr;
    background-color: rgb(31, 21, 33);
    min-height: 100vh;
    
}

#bildkeeper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-row: 3/5;
    grid-column: 3/4;
}

.logga {
    width: 368px;
}

.logga2 {
    width: 300px;
}
.logga3 {
    width: 300px;
    transform: scaleX(-1);
}


.common-btn {
    background: linear-gradient(135deg, rgb(60, 182, 208), rgb(67, 220, 253));
    color: #fff;
    border: none;
    margin: 0 16px;
    padding: 12px 32px;
    font-size: 1.05em;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.common-btn:hover {
    background: linear-gradient(135deg, #6b4e9d, #8a6bc8);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

#proceed-wrapper {
    grid-row: 5;
    grid-column: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px; 
}

#proceed-button {
    font-size: 1.8em;
    padding: 18px 56px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgb(60, 182, 208), rgb(67, 220, 253));
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(107, 78, 157, 0.4);
    transition: all 0.35s ease;
}

#proceed-button:hover {
    background: linear-gradient(135deg, #4b3470, #6b4e9d);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#navbox {
    grid-row: 1;
    grid-column: 2 / 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    margin: 10px auto;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.large-btn {
    padding: 18px 48px;
    font-size: 1.3em;
    border-radius: 10px;
}

.edge-image {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 250px; 
    opacity: 0.9;
    z-index: 999; 
}

.edge-image.left {
    left: 10px;
    
}

.edge-image.right {
    right: 10px;
    transform: translateY(-50%) scaleX(-1); 
}
.common-btn:disabled {
    background: gray;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.project-img-box {
    background: #232;
    border: 2px solid #333;
}
.projects-details-column {

}
.project-details-box h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
}
.project-details-box p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.05em;
}

#about-me-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    grid-row: 3 / 7;
    grid-column: 2 / 5;
    color: #eee;
    padding: 20px;
    font-family: Arial, sans-serif;
}

#about-me-page img {
    width: 150px;
    margin-bottom: 20px;
    border-radius: 8px;
}

#about-me-page h1 {
    color: #39cafb;
    margin-bottom: 20px;
}

#about-me-page textarea {
    width: 80%;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: #eee;
    resize: vertical;
    font-size: 16px;
    font-family: Arial, sans-serif;
    box-shadow: 0 3px 8px rgba(0,0,0,0.16);
    outline: none;
}

#about-me-page textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px #39cafb;
}


@media (max-width: 1024px) {
  #wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    padding: 10px;
    min-height: 100vh;
   
  }

  #navbox {
    flex-wrap: wrap;
    justify-content: center;
    justify-content: middle;
    width: 100%;
    margin: 10px 0;
    gap: 12px;
  }

  #bildkeeper {
    grid-row: auto;
    grid-column: auto;
    justify-content: center;
    justify-content: middle;
    gap: 20px;
    flex-wrap: wrap;
  }

  .logga, .logga2, .logga3 {
    width: 220px;
    max-width: 80vw;
  }

  #proceed-wrapper {
    grid-row: auto;
    grid-column: auto;
    margin-top: 20px;
  }

  #projects-page {
    flex-direction: column;
    align-items: center;
    align-items: middle;
    width: 100%;
    gap: 20px;
  }

  .projects-images-column,
  .projects-details-column {
    width: 100% !important;
    align-items: center;
    align-items: middle;
    padding: 0;
  }

  .project-details-box {
    width: 90%;
  }
}

@media (max-width: 1024px) {
  #bildkeeper, #proceed-wrapper, #about-me-page {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
    justify-content: middle;
  }
}



@media (max-width: 600px) {
  #navbox {
    gap: 8px;
    padding: 8px;
    
    }

  .common-btn {
    flex: 1 1 auto;
    font-size: 0.9em;
    padding: 8px 14px;
  }

  .large-btn {
    width: 100%;
    font-size: 1em;
    padding: 12px;
  }

  .logga, .logga2, .logga3 {
    width: 160px;
  }

  #proceed-button {
    font-size: 1.2em;
    padding: 12px 28px;
  }

  .project-img-box {
    width: 120px;
    height: 120px;
  }

  #about-me-page {
    padding: 10px;
    width: 100%;
  }

  #about-me-page img {
    width: 100px;
  }

  #about-text {
    font-size: 14px;
    width: 95%;
    padding: 12px;
  }


  .edge-image {
    display: none;
  }
}

@media (max-width: 600px) {
  #projects-page {
    flex-direction: row;
    justify-content: center;
    justify-content: middle;
    align-items: flex-start;
    gap: 15px;
  }

  .projects-images-column {
    width: 35%;
    align-items: center;
    padding-right: 10px;
    gap: 15px;
  }

  .projects-details-column {
    width: 65%;
    gap: 15px;
  }

  .project-img-box {
    width: 160px;
    height: 160px;
  }

  .project-details-box {
    padding: 16px;
    font-size: 0.95em;
  }

  .project-details-box h2 {
    font-size: 1.2em;
  }
}

@media (max-width: 600px) {
  #projects-page {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .projects-images-column {
    width: 40%;
    min-width: 120px;
    align-items: center;
    align-items: middle;
    gap: 10px;
  }

  .projects-details-column {
    width: 60%;
    gap: 10px;
  }

  .project-img-box {
    width: 120px;
    height: 120px;
  }

  .project-details-box {
    padding: 10px;
    font-size: 0.85em;
  }

  .project-details-box h2 {
    font-size: 1em;
    margin-bottom: 6px;
  }

  .project-details-box p {
    font-size: 0.85em;
    line-height: 1.4;
  }
}
  

