* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 100%;
    line-height: 1.6;
    color: #333;
}

p{
    font-size: 100%;
}

.skip-link{
    position: absolute;
    top: -40px;
    left: 0;
    background: #CBE1CB;
    color: #000;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    border-radius: 20px;
}

.skip-link:focus {
    top: 10px;
}


header {
    background-color: #626C60;
    padding: 10px 0;
    border-bottom: 4px solid #3D2933;
}

a {
    color: blue;
}

a:visited {
    color: purple;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    color: #000000;
    background-color: #C6DEC6;
    border-radius: 20px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #C9BABA;
}

nav ul li a:visited {
    color: #000000;
}

.coverimage {
    background-image: url('pictures/cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}


.info {
    background-color: #CBE1CB;
    padding: 20px;
    margin-bottom: 20px;
    text-align: justify;
}

.plusinfo {
    background-color: #CBE1CB;
    border-left: 5px solid #626C60;
    padding: 20px;
    margin-bottom: 20px;
    font-style: italic;
    text-align: justify;
}

.featured-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 20px;
    background-color: #626C60;
    padding: 20px;
}

.bat-feature {
    flex: 1 1 30%;
    width: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

.bat-image {
    width: 250px;
    height: 250px;
    margin: 0 auto 10px;
    position: relative;
    border-radius: 20px;
    display: block;
}

.bat-caption {
    background-color: #C6DEC6;
    border-radius: 20px;
    display: inline-block;
    padding: 8px 20px;
    text-align: center;
    max-width: 250px;
    margin: 0 auto;
}

.contact-form {
    border: 3px solid #3D2933;
    border-radius: 10px;
    background-color: #C9BABA;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #000;
}

textarea {
    height: 100px;
    resize: vertical;
}

.radio-group {
    margin-top: 15px;
}

.radio-group div {
    margin-bottom: 5px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.buttons {
    padding: 8px 20px;
    background-color: #CBE1CB;
    border: 1px solid #3D2933;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #d9edd9;
}

/*fun facts*/

.fact-card {
    background-color: #CBE1CB;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    
}
.fact-images {
    width: 250px;
    height: 250px;
    margin: 0 auto 10px;
    border-radius: 20px;
}

video {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*species*/

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background-color: #C9BABA;
}

@media (min-width: 900px) {
    .species-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.species-card {
    border: 1px solid #ccc;
    padding: 10px;
}

.species-image {
    width: 100%;
    height: 200px;
    background-color: #eee;
    margin-bottom: 10px;
    position: relative;
}

.species-info {
    width: 100%;
    border-collapse: collapse;
}

@media print {
    nav,
    header,
    .coverimage,
    video,
    footer {
        display: none;
    }
}