@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&family=Thasadith:wght@700&display=swap');

* {
    box-sizing: border-box
}

body {
    background: #e8efe2;
    font-family: "Thasadith", serif;
    font-weight: 700;
}

nav {
    padding: 8px 0;
    font-family: "Sour Gummy", serif;
    font-size: 20px;
    color: #4f7777;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    border-bottom: 1px solid #dfdfe0;
}

h1 {
    font-family: "Sour Gummy", serif;
    color: #4f7777;
    font-size: 50px;
    text-align: center;

}

h2 {
    font-family: "Sour Gummy", serif;
    color: #4f7777;
    font-size: 40px;
    text-align: center;

}

h3 {
    font-family: "Thasadith", serif;
    font-weight: 700;
    color: #4f7777;
    font-size: 20px;
    text-align: center;
}

h4 {
    font-family: "Thasadith", serif;
    font-weight: 700;
    color: #4f7777;
    font-size: 25px;
    text-align: center;
}

ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
}

li {
    margin: 0;
    padding: 0;
}


a {
    font-family: "Sour Gummy", serif;
    color: #4f7777;
    text-decoration: none;
}

a:hover {
    color: #4f7777;
    text-decoration: underline;
    font-family: "Sour Gummy", serif;
}

a:visited {
    color: #4f7777;
    font-family: "Sour Gummy", serif;
}

.welcome {
    font-family: "Sour Gummy", serif;
    color: #4f7777;
    font-size: 70px;
    text-align: center;
}

.welcome-message {
    font-family: "Thasadith", serif;
    font-weight: 700;
    color: #4f7777;
    font-size: 30px;
    text-align: center;
}

.hero {
    position: relative;
    color: white; 
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.hero::before {
    content: ""; 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://images.stockcake.com/public/0/0/6/0060ae64-4f9b-48bd-a95a-df1c339bed71_large/dogs-in-park-stockcake.jpg");
    background-size: cover; 
    background-position: center;
    opacity: 0.2; 
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2;
}

.register {
    font-family: "Sour Gummy", serif;
    color: #4f7777;
    font-size: 25px;
    text-align: center;
}

.dog-name {
    font-family: "Sour Gummy", serif;
    font-weight: 500;
    font-size: 20px;
}

.show-name {
    font-family: "Sour Gummy", serif;
    display: flex;
    justify-content: center;
    color: #4f7777;
}

.dog-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background: #f8faf6;
    border: 10px solid #c4d0c4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.show-image {
    width: 300px;
    height: auto;
    border: 10px solid white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dog-details {
    flex: 1;
    font-family: "Thasadith", serif;
    font-size: 16px;
    color: #4f7777;
    line-height: 1.5;
}

.dog-details p {
    margin: 10px 0;
}

.label {
    font-family: "Sour Gummy", serif;
}


.polaroid img {
    border: 10px solid white;
    display: block;
    max-width: 100%;
    max-height: 70%;
    object-fit: contain;

}

.polaroid {
    width: 300px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #dfdfe0;
    margin: 10px;
    text-align: center;
}

.polaroid .caption {
    margin-top: -20px;
    font-family: "Thasadith", serif;
    font-size: 15px;
    color: #4f7777;
    word-wrap: break-word;
    text-align: center;
}

.polaroid:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dfdfe0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form label {
    font-family: "Sour Gummy", serif;
    font-weight: 700;
    font-size: 16px;
    color: #4f7777;
    margin-bottom: 8px;
    display: block;
}

.form input:focus {
    border-color: #4f7777;
    outline: none;
    box-shadow: 0 0 3px rgba(78, 103, 156, 0.6);
}

.form button,
.dog-form button,
.delete button {
    width: 100%;
    padding: 10px 15px;
    font-family: "Sour Gummy", serif;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: #4f7777;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.form button:hover,
.delete button:hover,
.dog-form button:hover {
    background: #3e5e5e;
}

.form button:active,
.delete button:active,
.dog-form button:active {
    background: #3e5e5e;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form .error {
    font-size: 16px;
    color: #ff6868;
    margin-top: -8px;
    margin-bottom: 16px;
    text-align: left;
}

.form input[type="number"],
.form input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Sour Gummy", serif;
    color: #4f7777;
    background: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.form input[type="number"]:focus,
.form input[type="date"]:focus {
    border-color: #4f7777;
    outline: none;
    box-shadow: 0 0 3px rgba(78, 103, 156, 0.6);
}

.form input[type="text"],
.form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Sour Gummy", serif;
    font-size: 16px;
    color: #4f7777;
    background: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dog-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dfdfe0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.dog-form fieldset {
    border: 1px solid #dfdfe0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}


.dog-form fieldset legend {
    font-family: "Sour Gummy", serif;
    font-weight: 700;
    color: #4f7777;
    font-size: 18px;
    margin-bottom: 10px;
}


.dog-form label {
    font-family: "Sour Gummy", serif;
    font-weight: 700;
    color: #4f7777;
    font-size: 16px;
    margin-bottom: 8px;
}


.dog-form input[type="text"],
.dog-form input[type="date"],
.dog-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Sour Gummy", serif;
    font-size: 16px;
    color: #4f7777;
    background: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dog-form input[type="checkbox"] {
    transform: scale(1.2);
}

.dog-form input[type="radio"] {
    margin: 0;
    vertical-align: middle;
    transform: scale(1.2);
}


.dog-form input:focus,
.dog-form textarea:focus {
    border-color: #4f7777;
    outline: none;
    box-shadow: 0 0 3px rgba(78, 103, 156, 0.6);
}


.dog-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.dog-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}


.dog-form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dog-form .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    background: #e8efe2;
}

.error-page h2 {
    font-family: "Sour Gummy", serif;
    color: #ff6868;
    font-size: 50px;
    margin-bottom: 20px;
}

.error-page .error-message {
    font-family: "Thasadith", serif;
    font-size: 20px;
    color: #4f7777;
    margin-bottom: 20px;
}

.error-page .error-details {
    font-family: "Thasadith", serif;
    font-size: 18px;
    color: #4f7777;
    margin-bottom: 20px;
    text-align: left;
}

.error-page .error-home-link {
    font-family: "Sour Gummy", serif;
    color: white;
    background: #4f7777;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.error-page .error-home-link:hover {
    background: #3e5e5e;
}