/* @import url('https://fonts.googleapis.com/css2?family=Fredoka&display=swap'); */

html {
    height: 95%;
    scroll-behavior: smooth;

}


body {
    font-family: 'Fredoka', sans-serif;
    color: #5B5B5A;
    height: 95%;
    font-size: 3vh;
    /* Font size based on 2.5% of the viewport height */
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
        /* Minimum font size for smaller screens */
    }

    h1 {
        font-size: 35px !important;
    }

    h2 {
        font-size: 30px !important;
    }

    h3 {
        font-size: 18px !important;
    }

}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 2px;
}


/* Create a Parallax Effect */
.bgimg-1,
.bgimg-2 {
    opacity: 0.7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('media/background-narrow.jpg');
}

.bgimg-1 {
    min-height: 100%;
}


.bgimg-2 {
    min-height: 70%;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
}


/* regarding navigation bar*/
/* Remove margins and padding from the list, and add background color */
ul.topnav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
    border-bottom: #DBDBDB 1px solid;
}

/* Float the list items side by side */
ul.topnav li {
    float: right;
}

/* Style the links inside the list items */
ul.topnav li a {
    display: inline-block;
    color: #646464;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 2.5vh;
    letter-spacing: 3px;
}

/* Change background color of links on hover */
ul.topnav li a:hover {
    background-color: #f1f2f0;
}

/* Hide the list item that contains the link that should open and close the topnav on small screens */
ul.topnav li.icon {
    display: none;
}

/* When the screen is less than 680 pixels wide, hide all list items. Show the list item that contains the link to open and close the topnav (li.icon) */
@media screen and (max-width:680px) {
    ul.topnav li {
        display: none;
    }

    ul.topnav li.icon {
        float: right;
        display: inline-block;
    }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens */
@media screen and (max-width:680px) {
    ul.topnav.responsive {
        position: relative;
    }

    ul.topnav.responsive li.icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    ul.topnav.responsive li {
        float: none;
        display: inline;
    }

    ul.topnav.responsive li a {
        display: block;
        text-align: center;
    }
}


/*  Collapsible Part  */
.accordion,
.accordion::before,
.accordion::after {
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.accordion {
    max-width: 800px;
    text-align: right;
}

article {
    border: 1px solid #fff;
    padding: 2px;
    margin: 1px auto;
}


.accordion article label:hover h3 {
    background-color: #D2D6CF !important;
    /* Change this to the color you want on hover */
}

.accordion article h3 {
    padding: 7px;
    text-align: center;
}

input[type="radio"] {
    appearance: none;
    position: fixed;
    top: -100vh;
    left: -100vh;

    &~div {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s;
    }

    &:checked~div {
        max-height: 600px;
    }
}
