html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Cochin', serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('media/theme/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    font-family: sans-serif;
    background-color: #ffffff;
    color: #b23772;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    font-family: sans-serif;
    font-size: 1.5rem;
    background-color: #ffffff;
    color: #b23772;
    padding: 15px;
    border-radius: 5px;
    margin-left: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-button:hover {
    background-color: #ddd;
}

.dropdown-content {
    font-family: sans-serif;
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    margin-left: 50px;
}

.dropdown-content a {
    color: #b23772;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.logo img {
    height: 150px;
    margin: 0;
    padding: 0;
}

.contact a {
    font-family: sans-serif;
    font-size: 1.5rem;
    color: #b23772;
    text-decoration: none;
    padding: 15px;
    border-radius: 5px;
    margin-right: 75px;
    transition: all 0.3s ease;
}

.contact a:hover {
    background-color: #ddd;
}

main {
    flex: 1;
    padding: 20px;
    text-align: center;
    padding-top: 190px;
    padding-bottom: 100px;
}

.intro {
    font-family: sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    max-width: 800px;
    margin: 0 auto 20px;
    
}

.border-image {
    width: 50%;
    margin: 0 auto;
}

#border_top, #border_bottom {
    display: none;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    width: 250px;
    text-align: center;
    background-color: #ddd;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transform: translateY(-5px);
}

.card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.card a {
    text-decoration: none;
    color: #b23772;
}

.card h3 {
    margin: 10px 0;
    font-size: 1.6rem;
}

footer {
    position:fixed;
    bottom:0px;
    width: 100%;
    font-family: sans-serif;
    background-color: #ffffff;
    color: #b23772;
    text-align: center;
    padding: 10px;
    box-shadow: 0px -4px -8px rgba(0,0,0,0.2);
}

footer a {
    color: #b23772;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1800px) {
    main {
        padding-top: 160px;
        padding-bottom: 100px;
    }
    .intro {
        font-size: 1.2rem;
    }
    
    .logo img {
        height:120px;
    }
    .card {
        width: 250px;
    }

}

@media screen and (max-width: 1300px) {
    main {
        padding-bottom: 100px;
    }
    .intro {
        font-size: 1.3rem;
    }

    .border-image {
        width: 65%;
    }

    .cards {
        justify-content: center;
        gap: 30px;
        margin-right: 70px;
        margin-left: 70px;
    }

    .card {
        width: 300px;
    }

    .card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}

@media screen and (max-width: 1000px) {
    .logo img {
        height: 120px;
    }
    .border-image {
        width: 650px;
    }
    .intro {
        font-size: 1.2rem;
        max-width: 600px;
    }
    .card {
        width: 250px;
    }
}

@media screen and (max-width: 810px) {
    .border-image {
        width: 600px;
    }
    .card {
        width: 200px;
    }
}


@media screen and (max-width: 700px) {
    main {
        padding-top: 150px;
    }
    .dropdown-button {
        margin-left: 15px;
    }
    .logo img {
        height: 100px;
    }
    .border-image {
        width: 90%;
    }
    .intro {
        font-size: 1.2rem;
        max-width: 550px;
    }
    .card {
        width: 300px;
    }
    .contact a {
        margin-right: 50px;
    }
}

@media screen and (max-width: 600px) {
    main {
        padding-top: 140px;
    }
    .border-image {
        display: none;
    }
    #border_top {
        display: block;
        margin: 0 auto;
        height: 50px;
        background: url('media/theme/border_top_short.png') no-repeat center;
        background-size: 80% ;
        
    }
    #border_bottom {
        display: block;
        margin: 0 auto;
        height: 50px;
        background: url('media/theme/border_bottom_short.png') no-repeat center;
        background-size: 80% ;
    }
    .dropdown-button {
        font-size: 0;
        padding: 10px;
        margin-left: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dropdown-button::before {
        content: "☰";
        font-size: 1.5rem;
        color: #b23772;
    }

    .dropdown-content {
        margin-left: 20px;
    }

    .contact {
        margin-right: 20px;
    }
    .contact a {
        font-size: 0;
        padding: 10px;
        margin-right: 20px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact a::before {
        content: '';
        background-image: url('media/theme/contact.png');
        background-size: 30px 30px;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        width: 30px;
        height: 30px;
    }
    .intro {
        font-size: 1rem;
        max-width: 400px;
    }
    .card {
        width: 250px;
    }
}

@media screen and (max-width: 500px) {
    main {
        padding-top: 140px;
        padding-bottom: 60px;
    }
    #border_top {
        background-size: 100% ;
        
    }
    #border_bottom {
        background-size: 100% ;
    }
    .cards {
        margin: 20px 30px;
    }
    footer {
        font-size: 0.9rem;
        padding: 0px;
    }
}

@media screen and (max-width: 350px)  {
    .cards {
        margin: 20px 30px;
    }
    .logo img {
        height: 70px;
    }
    main {
        padding-top: 120px;
        padding-bottom: 70px;
    }
    .card {
        padding: 20px;
        width: 400px;
    }
    footer {
        font-size: 0.9rem;
        padding: 0px;
    }
}