@font-face {
    font-family: 'chinese-rocks';
    src: url("chinese-rocks.otf") format("opentype");
}

.headercontainer {
    display: flex;
    justify-content: space-between;
    
}
h1{
    font-size: 50px;
}
body{
    background-color: #ffcf77;
    color: #333;
    text-align: center;
    font-family: 'chinese-rocks', sans-serif;
    margin: 0px;
    padding: 0px;
}
header {
    background-color: #000000;
    color: #fff;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    width: 100%;
}
.headercontainer header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
nav ul {
    list-style: none;
    padding: 0;
    justify-content: center;
}
.nav-left ul, .nav-right ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
header h1 {
    flex: 0 0 auto;
    margin: 0 40px;
    font-size: 50px;
    text-align: center;
}
nav ul li {
    display: inline;
    margin: 0 15px;
}
nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
}
nav ul li a:hover {
    text-decoration: underline;
    color: #ff0000;
}
.left, .right {
    display: unset;
    float: unset;
    justify-content: unset;
}
.row {
    display: flex;
    gap: 10px;
}
.card {
    width: 25%;
    border: 1px lightblue solid;
    border-radius: 10px;
    transition: all 150ms;
    height: auto;
}
.card-img {
   height: 450px;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}
.card-img img {
    width: 100%;
    height: 100%;
    transition: all 500ms;
    object-fit: cover;
    object-position: center;
}
.card-content {
    padding: 20px;
    flex-grow: 1;
}
.card-content h2 {
    margin-top: 0;
}
.card:hover {
    transform: translateY(-3px);
    .card-img img {
        transform: scale(1.1);
    }
}
a.button {
    border-radius: 3px;
    padding: 0.8em 1.2em;
    background-color: rgb(0, 0, 0);
    color: white;
    text-decoration: none;
    display: inline-block;
}
a.button:hover {
        animation: wiggle 200ms linear 3;
}

@keyframes wiggle {
    0% {transform: rotate(3deg)}
    100%{transform: rotate(-3deg)}
}

@media screen and (max-width: 768px) {
    body {
        margin-left: 5vw;
        margin-right: 5vw;
    }
    .row {
        display: block;
    }
    .card {
        width: auto;
        margin-bottom: 10px;
    }
}