@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

body,
html {
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: "Quicksand", sans-serif;
    background: #feebf1;
}

.logo {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    box-sizing: border-box;
}

.logo img {
    display: block;
}

header {
    position: relative;
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

header .profile {
    position: relative;
    height: 45%;
    border-radius: 50%;
    margin-top: -60px;
    border: 20px solid #9188e3;
    aspect-ratio: 1/1;
    background-color: #a39be7;
    background-position: center;
    background-size: cover;
    z-index: 2;
}

header .pet-message {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%); /* Yatayda ortala */
    width: calc(100% + 140px); /* Konuşma balonunun genişliği */
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Yumuşak gölge */
    text-align: center;
    font-size: 14px;
    color: #615b99;
}

header .pet-message::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

header .profile-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    transform: translate(-50%, -50%);
    aspect-ratio: 1/1;
    height: calc(50% + 40px);
    border-radius: 50%;
    background: linear-gradient(to bottom, #ada1e7, transparent);
    pointer-events: none;
    z-index: 1;
}

.content {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    box-sizing: border-box;
    background: #fff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.content .info {
    width: 100%;
}

.content .top-info {
    width: 100%;
    display: flex;
    margin-top: 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.content .top-info .pet-name {
    font-size: 30px;
    font-weight: 900;
    color: #615b99;
    margin: 0;
}

.content .top-info .pet-breed {
    font-size: 18px;
    color: #615b99;
    margin: 2px 0 0 0;
}

.content .top-info .vaccinated {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #615b99;
    padding: 8px 10px;
    border-radius: 10px;
}

.content .top-info .vaccinated.full {
    background-color: #eaf0d4;
    color: #819716;
    font-weight: 700;
}

.content .top-info .vaccinated.full span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #819716;
}

.content .top-info .vaccinated.full span img {
    display: block;
    width: 70%;
    margin-left: 1px;
    margin-top: 1px;
}

.content .second-info {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.content .second-info .second-item {
    display: flex;
    width: 33.3%;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px 10px;
    border-radius: 10px;
}

.content .second-info .second-item span:first-child {
    font-size: 19px;
    font-weight: 700;
}

.content .second-info .second-item span:last-child {
    font-size: 17px;
}

.content .second-info .age {
    color: #625345;
    background-color: #fbd9b9;
}

.content .second-info .sex {
    color: #524160;
    background-color: #deb9fb;
}

.content .second-info .weight {
    color: #595e53;
    background-color: #d6dfcb;
}

footer {
    width: 100%;
    height: 80px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content .owner-phone {
    display: flex;
    width: calc(100% + 40px);
    margin-left: -20px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    padding: 10px 20px;
    box-sizing: border-box;
    text-decoration: none;
    background-color: #6861a8;
    font-weight: 900;
}

.content .owner-phone img {
    width: 40px;
    margin-top: 2px;
}

.buttons {
    display: flex;
    width: 100%;
    flex-wrap: wrap; /* Butonların birden fazla satıra sığmasını sağlar */
    gap: 10px; /* Butonlar arası boşluk */
    justify-content: center; /* Butonları yatayda ortalar */
}

.buttons a {
    flex: 1 1 calc(50% - 10px); /* Her satırda 2 buton olacak şekilde ayarla */
    box-sizing: border-box;
    display: flex;
    gap: 5px;
    align-items: center; /* Metni dikeyde ortalar */
    justify-content: center; /* Metni yatayda ortalar */
    text-align: center;
    padding: 10px;
    background-color: #9188e3; /* Buton arka plan rengi */
    color: white; /* Metin rengi */
    text-decoration: none; /* Link alt çizgisini kaldır */
    border-radius: 10px; /* Köşeleri yuvarlar */
    font-size: 16px;
    height: 15vh; /* Buton yüksekliği ekran yüksekliğine göre ayarla */
    max-height: 75px;
    transition: background-color 0.3s ease; /* Hover efekti için geçiş */
    font-size: 20px;
    font-weight: 900;
}

.buttons .call-911 {
    background-color: #bb5856;
}

.buttons .find-a-vet {
    background-color: #6b9b6f;
}

.buttons .owners-location {
    background-color: #7394b7;
}

.buttons .text-owner {
    background-color: #b575b1;
}

@media (max-height: 800px) {
    .buttons a {
        max-height: 50px;
    }

    header {
        height: 30%;
    }

    header .profile {
        margin-top: -40px;
    }

    header .profile-shadow {
        margin-top: -20px;
    }

    .logo img {
        max-height: 50px;
    }

    .content {
        height: 60%;
    }

    .content .second-info .second-item {
        padding: 5px 10px;
    }
}
