body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    font-family: "Silkscreen", sans-serif;
    background: #f1faee;
    color: #225499;
    margin: 0;
    min-height: 100vh;
}

header {
    font-family: "Press Start 2P", system-ui;
    background-color: #1d3557;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15%;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-size: 15px;
    color: #a8dadc;
}

a {
    color: #a8dadc;
    text-decoration: none;
}

h1 {
    font-size: 24px;
    margin: 1%;
    display: flex;
    align-items: center;
    gap: 1%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

#logo {
    width: 50px;
    height: 50px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
}

#start {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.start-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.start-title img {
    width: 200px;
    height: 200px;
}
#start h1 {
    font-family: "Press Start 2P", system-ui;
    font-size: 50px;
    color: #39629b;
}
#start p {
    font-size: 25px;
    color: #477dca;
    text-align: center;
    line-height: 1.5;
}

#game-board {
    display: grid;
    width: 80%;
    height: 80%;
    grid-template-columns: repeat(4, 25%);
    gap: 10px;
    perspective: 800px;
    margin-bottom: 30px;
}

.card {
    width: 150px;
    height: 150px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50px;
}

.card-back {
    transform: rotateY(180deg);
}

.card:hover {
    transform: scale(1.05);
}

.card.matched {
    box-shadow: 0 0 15px 5px rgba(0, 255, 0, 0.6);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: "Silkscreen", sans-serif;
}

#about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    width: 80%;
    height: 100%;
    margin-top: 20px;
}
.about-img-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 40%;
    height: 80%;
    gap: 30px;
}
.about-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.social-links{  
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.social-link{
    width: 30px;
    height: 30px;
}
.about-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 60%;
    height: 80%;
    gap: 20px;
}
.about-content h2{
    font-family: "Press Start 2P", system-ui;
    font-size: 18px;
    color: #39629b;
}
.about-content p{
    font-size: 14px;
    color: #477dca;
    text-align: center;
    line-height: 1.5;
}

footer {
    width: 100%;
    margin-top: auto;
    padding: 15px 0;
    background-color: #1d3557;
    color: #a8dadc;
    text-align: center;
    font-family: "Press Start 2P", system-ui;
    font-size: 12px;
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 80%;
    max-width: 600px;
    padding: 20px;
    background-color: #1d3557;
    color: #a8dadc;
    border-radius: 10px;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-message {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    background-color: #f1faee;
    color: #1d3557;
    border: 2px solid #a8dadc;
    box-sizing: border-box;
}

.status-message.status-success {
    border-color: #2a9d8f;
    color: #1b6f64;
}

.status-message.status-error {
    border-color: #e63946;
    color: #b02632;
}

.contact-form label {
    align-self: flex-start;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #a8dadc;
    border-radius: 6px;
    background: #f1faee;
    color: #1d3557;
    font-family: "Silkscreen", sans-serif;
    resize: none;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
#alert-div {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1d3557;
    color: #a8dadc;
    padding: 20px 40px;
    border-radius: 10px;
    font-family: "Press Start 2P", system-ui;
    font-size: 18px;
    z-index: 1000;
}
#buttons-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 30px;
}