451 lines
7.4 KiB
CSS
451 lines
7.4 KiB
CSS
:root {
|
|
--primary: #457b9d;
|
|
--accent: #00a7b3;
|
|
/* --bg-light: #f1faee; */
|
|
--text-dark: #1d3557;
|
|
--text-gray: #555;
|
|
--font: 'Noto Sans JP', sans-serif;
|
|
--radius: 1rem;
|
|
--shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: linear-gradient(to right, #74ebd5, #ACB6E5);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.navbar {
|
|
background-color: var(--primary) !important;
|
|
padding: 1rem 2rem;
|
|
}
|
|
|
|
.navbar .logo {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
}
|
|
|
|
.breed-select,
|
|
.search-box {
|
|
margin-left: 1rem;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--radius);
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.sub-nav {
|
|
background-color:#dbecfa;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.sub-nav .nav-link {
|
|
color: var(--text-dark);
|
|
padding: 0.5rem 1rem;
|
|
transition: background 0.3s;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sub-nav .nav-link.active,
|
|
.sub-nav .nav-link:hover {
|
|
color: #fff;
|
|
background-color: #01659b;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
|
|
main.flex-fill {
|
|
padding-top: 2rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.slider-wrapper {
|
|
width: 92%;
|
|
max-width: 800px;
|
|
height: 500px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
position: relative;
|
|
}
|
|
|
|
.slider-container {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
transition: transform 0.5s ease;
|
|
will-change: transform;
|
|
}
|
|
|
|
.slide {
|
|
flex: 0 0 250px;
|
|
}
|
|
|
|
.slide-btn {
|
|
background: rgba(255, 255, 255, 0.8);
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 50%;
|
|
box-shadow: var(--shadow);
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.slide-btn:hover {
|
|
background: #fff;
|
|
}
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
transition: transform 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 300px;
|
|
position: relative;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.card img {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.card h4 {
|
|
font-size: 1.2rem;
|
|
margin: 0.75rem 0 0.5rem;
|
|
color: var(--primary);
|
|
text-align: center;
|
|
}
|
|
|
|
.card p {
|
|
flex: 1;
|
|
font-size: 0.9rem;
|
|
padding: 0 0.75rem;
|
|
color: var(--text-gray);
|
|
text-align: center;
|
|
}
|
|
|
|
.card-button,
|
|
.btn-outline {
|
|
display: inline-block;
|
|
margin: 1rem auto 1.25rem;
|
|
padding: 0.5rem 1.5rem;
|
|
font-weight: bold;
|
|
font-size: 1rem;
|
|
color: var(--accent);
|
|
border: 2px solid var(--accent);
|
|
border-radius: 2rem;
|
|
background: none;
|
|
cursor: pointer;
|
|
transition: background 0.3s, color 0.3s;
|
|
}
|
|
|
|
.left-btn,
|
|
.right-btn {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
z-index: 2;
|
|
}
|
|
|
|
.left-btn {
|
|
left: 0.5rem;
|
|
}
|
|
|
|
.right-btn {
|
|
right: 0.5rem;
|
|
}
|
|
|
|
|
|
.card-button:hover,
|
|
.btn-outline:hover {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.button-area {
|
|
gap: 1rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
|
|
.flip-card {
|
|
perspective: 1000px;
|
|
height: 300px;
|
|
position: relative;
|
|
background:#dbecfa;
|
|
}
|
|
|
|
.flip-inner {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
transition: transform 0.6s;
|
|
transform-style: preserve-3d;
|
|
|
|
}
|
|
|
|
.flip-card:hover .flip-inner {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.flip-front,
|
|
.flip-back {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
backface-visibility: hidden;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.flip-front img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.flip-back {
|
|
background: linear-gradient(135deg, var(--primary), #dbecfa);
|
|
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
|
|
transform: rotateY(180deg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
color: rgb(240, 248, 184);
|
|
}
|
|
|
|
.flip-back h4 {
|
|
font-size: 1.2rem;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: bold;
|
|
color: #ddd;
|
|
}
|
|
|
|
.flip-back p {
|
|
font-size: 0.95rem;
|
|
line-height: 1.6;
|
|
color: #f1f1f1;
|
|
}
|
|
|
|
|
|
.upload-download-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
padding: 2rem;
|
|
background-color: #dbecfa;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
max-width: 500px;
|
|
margin: 2rem auto;
|
|
}
|
|
|
|
.upload-download-container input[type="file"] {
|
|
display: none;
|
|
}
|
|
|
|
.upload-download-container button {
|
|
padding: 0.75rem 2rem;
|
|
font-size: 1rem;
|
|
background-color: var(--primary);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow);
|
|
transition: background-color 0.3s, transform 0.3s;
|
|
display: inline-block;
|
|
}
|
|
|
|
.upload-download-container button:hover {
|
|
background-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
#fileInputLabel {
|
|
font-size: 1rem;
|
|
color: var(--primary);
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
#fileInputLabel:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
#uploadResult {
|
|
font-size: 1rem;
|
|
color: var(--text-gray);
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#downloadBtn {
|
|
padding: 0.75rem 2rem;
|
|
font-size: 1rem;
|
|
background-color: var(--accent);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow);
|
|
transition: background-color 0.3s, transform 0.3s;
|
|
display: inline-block;
|
|
}
|
|
|
|
#downloadBtn:hover {
|
|
background-color: var(--primary);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
z-index: 999;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: #fff;
|
|
padding: 2rem;
|
|
width: 90%;
|
|
max-width: 400px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
|
|
position: relative;
|
|
animation: fadeIn 0.3s ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(-20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.modal-content h2 {
|
|
margin-top: 0;
|
|
font-size: 1.5rem;
|
|
text-align: center;
|
|
color: #333;
|
|
}
|
|
|
|
.modal-content label {
|
|
display: block;
|
|
margin: 1rem 0 0.3rem;
|
|
font-weight: 600;
|
|
color: #444;
|
|
}
|
|
|
|
.modal-content input {
|
|
width: 100%;
|
|
padding: 0.6rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
box-sizing: border-box;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.modal-actions {
|
|
margin-top: 1.5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.modal-actions button {
|
|
flex: 1;
|
|
margin: 0 0.3rem;
|
|
padding: 0.6rem;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background-color: #5aa9fe;
|
|
color: white;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.modal-actions button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.modal-actions button#cancelLogin,
|
|
.modal-actions button#cancelRegister {
|
|
background-color: #ccc;
|
|
color: #333;
|
|
}
|
|
|
|
.modal-actions button#cancelLogin:hover,
|
|
.modal-actions button#cancelRegister:hover {
|
|
background-color: #999;
|
|
}
|
|
|
|
.close {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 16px;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #666;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.close:hover {
|
|
color: #000;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.slider-wrapper {
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
|
|
.slide {
|
|
flex: 0 0 80%;
|
|
height: 100%;
|
|
}
|
|
|
|
.card {
|
|
height: auto;
|
|
}
|
|
|
|
.button-area {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.upload-download-container {
|
|
width: 90%;
|
|
padding: 1.5rem;
|
|
}
|
|
}
|