body{
    max-width: 80%;
    margin: auto;
}

.middle {
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between; /* Centers the content horizontally */
    gap: 10px; /* Adds space between the buttons */
    padding-top: 10px;
    max-width: 80%;
    margin: auto;
}

.takki {
    border: 1px solid #295882;
    padding: 15px;
    padding-right: 30px;
    padding-left: 30px;
    transition: box-shadow 0.3s ease;
    background-color: #377dbb;
    color: white;
    border-radius: 0.25rem;
    font-style: normal;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;;
}

.takki:hover, .articles:hover {
    box-shadow: 0 0 40px 3px rgba(72, 86, 153, 0.724);
    transform: scale(1.02);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}


.search:hover {
    box-shadow: 0 0 20px 2px rgba(72, 86, 153, 0.724);
}

.searchid {
    display: grid;
    grid-template-columns: 1fr 0.2fr;
    gap: 10px;
    height: 49px;
}

.errorSkilabod {
    color: red;
}

.successSkilabod {
    color: lightgreen;
}

h1{
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-2 {
    display: grid;
    gap: 50px;
    grid-template-columns: 1fr 1fr;
    max-width: 20%;
    margin: 0 auto;
}

.grid-myndir {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.articles {
    border-radius: 5%;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;;
}

.myndir img {
    border-radius: 5%;
    overflow: hidden;
    margin-bottom: 10px;
}

.video {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}