@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Italianno&display=swap');

html {
    scroll-behavior: smooth;
}

.dropbtn {
    background-color: #bababab3;
    border: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
}

.dropdown {
    order: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content span {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {background-color: #ffffff;}

#buttonimage {
    width: auto;
    height: 2rem;
}

#logodiv {
    order: 3;
}

#logo {
    width: auto;
    height: 4rem;
    transform: scaleX(-1);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
    background-color: #60839c;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

body {
    align-content: center;
    margin: 0;
    padding: 4.5rem 0 0;
    animation: bodyFadeIn 0.5s ease-out;
}

#mottodiv {
    flex: 1;
    text-align: center;
    order: 2;
}

.motto {
    margin: 0;
    font-family: "Italianno", cursive;
    font-size:xx-large;
}

button {
    color: whitesmoke;
    border-color: #038ea7;
    background-color: #038ea7;
    box-shadow: none;
}

h1, button {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
}

h2 {
    font-family: "Italianno", cursive;
    font-size: 2.5vw;
}

h3, p, a, h4, span, li {
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
}

h3 {
    font-size: x-large;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: gray;
}

#mylink, .ftlink, #crtxt {
    color: whitesmoke;
}

p {
    font-size: medium;
}

li {
    font-size: medium;
}

.contentdiv {
    align-items: center;
    align-content: center;
    text-align: center;
    padding: 4rem 20rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contentdiv h2, .contentdiv h3, .contentdiv ul, .contentdiv p, .contentdiv h1, .contentdiv img, .contentdiv h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

ul {
  list-style-position: outside;
  display: table;
  margin: 0 auto;
  text-align: left;
  padding-left: 1.2em; 
}

#topbuttonimg {
    width: auto;
    height: 2rem;
}

#topbutton {
    background: none;
    border: none;
}

#topbutton:hover {
    transform: scale(1.05);
}

.texttoleft {
    text-align: left;
}

.highlightdiv {
    background-color: #2872a648;
    max-width: 100% !important;
    margin: 0;
    border-radius: 0;
    padding-left: 5rem;
    padding-right: 5rem;
    box-sizing: border-box;
}

.bordered {
    border-radius: 10px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

.flexbox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding-bottom: 5rem;
    padding-top: 5rem;
}

.box {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

#contactbutton {
    width: 9rem;
    height: 3rem;
    margin-top: 2rem;
    border: none;
}

#contactbutton:hover {
    transform: scale(1.05);
    background-color: blue;
}

img {
    max-width: 100%;
    height: auto;
}

.flexbox.equalheight { align-items: stretch; }

@media (max-width: 936px) {
    header {
        flex-direction: row;
        height: auto;
        gap: 1rem;
    }

    #logo {
        height: 3rem;
    }

    .motto {
        font-size: x-large;
        line-height: 1.3;
    }

    .flexbox {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }

    .box {
        min-width: auto;
        width: 100%;
    }

    .contentdiv {
        padding: 2rem 1rem;
    }

    #copyright {
        text-align: center;
    }

    .contentdiv h2, .contentdiv h3, .contentdiv ul, .contentdiv p, .contentdiv h1, .contentdiv img, .contentdiv h4 {
        margin-top: 0;
        margin-bottom: 0;
    }
    .highlightdiv {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    #middlediv {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    #totopdiv {
        display: none;
    }

    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow-x: hidden;
    }
    
    .highlightdiv {
        padding-left: 1rem;
        padding-right: 1rem;
    }

     #footerlinks {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    #footerlinks a,
    #footerlinks span {
        display: block;
    }

    #footerlinks span.ftlink {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .motto {
        font-size: large;
        line-height: 1.3;
    }

    #contactbutton {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none !important;
    }
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}