* {
    box-sizing: border-box;
    font-family: "Poppins", "Helvetica Neue", sans-serif;


}

body {
    background-color: #F5f5f5;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.page-wrapper {
    padding-bottom: 60px;
}



.rubrik {
    width: 100%;
    background-color: #d5d3d3;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



a {
  display: inline-block; 
  color: black;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;

}

a:hover {
  transform: scale(1.1); 
}





h1 {
    margin: 0.3em;
    font-weight: bold;
    font-size: 5em;
    text-align: center;
}

h2 {
    font-weight: bold;
    font-size: 1em;
    text-align: center;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

th, td {
    border: 0.1em solid #555;
    text-align: center;
    vertical-align: middle;
    font-size: 3em;
    padding: 0.5em;
}

td:first-child, th:first-child {
    border-left: none;
}

td:last-child, th:last-child {
    border-right: none;
}

.content-wrapper {
    display: flex;
    margin-bottom: 20px;
    height: 700px;
    
}

.left-column {
    flex-grow: 1;
    display: flex;
    max-width: 60%;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

#Om_mig, #Senaste_projektet {
    flex: 1;
    padding: 20px;
    margin: 0;
    width: 100%;
}

#Senaste_projektet {
    border-bottom: 3px solid #555;
}

#Senaste_projektet p {
    font-size: large;
}

#me {
    width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
}

#me img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#Om_mig {
    margin-top: 0;
    font-size: 2em;
    border: 0.1em solid #555;
    border-top: none;
    border-left: none;
    border-bottom: none;
    padding: 0.5em;
}

#Om_mig p {
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

#Om_mig h2 {
    padding: 0.3em;
    font-size: 1.5em;
    text-align: center;
    margin: 0;
}

#Senaste_projektet {
    margin-top: 0;
    font-weight: bold;
    font-size: 2em;
    border: 0.1em solid #555;
    border-left: none;
    border-bottom: none;
}

#Senaste_projektet h2 {
    padding: 0.3em;
    font-size: 1.5em;
    text-align: center;
    margin: 0;
}

#Senaste_projektet h3 {
    padding: 0.3em;
    font-size: 1.3em;
    text-align: center;
    margin: 0;
}

#Senaste_projektet a {
    display: block;
    padding: 0.5em;
    font-size: 0.8em;
    text-align: center;
}

.searchbar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em;
}

.searchbar input[type=text] {
    text-align: center;
    height: 3em;
    width: 30em;
    margin-top: 0.5em;
    border: 0.1em solid #555;
    font-size: 2em;
    outline: none;
}

.sorteringsknapp button {
    font-size: 3em;
    color: rgb(0, 0, 0);
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;;
    border-top: 1px solid #555;
    padding: 10px 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: black;
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2em;
    margin: 2em auto;
    padding: 1em;
    max-width: 1200px;
}

.box {
    flex: 1 1 250px;
    max-width: 350px;
    background-color: #f5f5f5;;
    border: 2px solid #555;
    padding: 1.5em;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.box h3 {
    margin-top: 0;
    text-transform: uppercase;
    font-size: 2em;
    color: black;
}

.box p {
    font-size: 1em;
    color: black;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin: 2em auto;
    padding: 2em;
    max-width: 1200px;
    background-color: #f5f5f5;;
    border: 2px solid #555;
}

.project-card {
    flex: 1 1 calc(33.33% - 2em);
    border: 2px solid #555;
    padding: 1.5em;
    text-align: center;
    color: black;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.project-card h3 {
    margin: 0;
    font-size: 1.8em;
    color: black;
}

.project-card .project-desc {
    font-size: 1em;
    color: black;
    margin: 0.5em 0;
}

.project-card .project-footer {
    font-size: 0.9em;
    color: black;
    margin-top: 0.5em;
}

.project-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.searchbar button,
.searchbar select {
    width: 100px;
    height: 30px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1em;
    color: black;
    background-color: #f5f5f5;;
    border: 2px solid #555;
    border-radius: 0;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
}

.searchbar select {
    text-align-last: center;
}

.searchbar button:hover,
.searchbar select:hover,
.searchbar button:focus,
.searchbar select:focus {
    background-color: #f5f5f5;;
    outline: none;
}

#tech_dropdown {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    
}

.dropbtn {
    background-color: #f5f5f5;;
    color: black;
    border: 2px solid #555;
    width: 100px;
    height: 30px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: small;
}

.dropbtn:hover {
    background-color: #f5f5f5;;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f5f5f5;;
    min-width: 160px;
    z-index: 1;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid #555;
}

.dropdown-content a {
    color: black;
    padding: 10px;
    text-decoration: none;
    display: block;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1em;
    border-bottom: 1px solid #555;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.project-info-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2em;
    border: 2px solid #555;
    padding: 2em;
    background-color: #f5f5f5;;
    margin: 2em auto;
    width: 90%;
}

.info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-column h2 {
    font-size: 1.8em;
    margin-bottom: 0.8em;
    text-align: center;
    text-transform: uppercase;
}

.info-column.image p {
    font-size: 1em;
    color: #555;
    margin-top: 0.5em;
    text-align: center;
    font-style: italic;
}

.info-column p,
.info-column ul {
    font-size: 1em;
    line-height: 1.5;
    margin: 1;
    text-align: center;
}

.info-column ul {
    list-style-type: none;
    padding: 0;
}

.info-column li {
    margin-bottom: 0.3em;
}

.info-column.image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.info-column.image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 1px solid #555;
    margin-top: 0.5em;
}

.error-container {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: black;
    margin: 0;
}

.error-message {
    font-size: 24px;
    color: #666;
    margin: 10px 0 20px 0;
}

.error-link {
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.error-link:hover {
    text-decoration: underline;
}
