/*Googl fonts import*/
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Asterix wildcard selector to overide default styles added by the browser*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*Generic project styles*/
    color: #3a3a3a;
    font-family: 'Lato', sans-serif;
}

h1,
h2,
h3 {
    font-family: 'Roboto', sans-serif;
    text-transform: initial;
    letter-spacing: 1px;
    color: #3a3a3a;
}

.hidden-heading {
    display: none;
}

/*General styles*/
header {
    background-color: yellow;
    padding: 0 1rem;
    position: fixed;
    z-index: 99;
    width: 100%;
    box-shadow: 0 3px 3px #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

header a {
    text-decoration: none;
    color: inherit;
}

#menu {
    font-size: 20px;
    letter-spacing: 2px;
    list-style-type: none;

}

#menu>li {
    margin-bottom: 1em;
}

.active {
    border-bottom: 0.5px solid #3a3a3a;
}

/* Nav toggle*/
nav {
    font-size: 13px;
    padding: 2px;
}

#nav-toggle:checked~nav {
    display: block;
}

#nav-toggle {
    display: none;
}

.nav-toggle-label {
    font-size: 1rem;
}

/*main content*/
main {
    /* Make the main element take any extra surplus space to push footer down*/
    flex: 1 0 auto;
    margin-top: 40px;
    padding: 20px;
}

/*Places section*/
#places {
    height: 600px;
    width: 100%;
    background: url('../images/romania-landscape.webp') no-repeat center center/cover;
    position: relative;
}

#cover-text {
    /*Final rgba sets the opacity to semi-transparent*/
    background-color: rgba(104, 44, 91, 0.736);
    font-size: 100%;
    position: absolute;
    bottom: 30px;
    width: 80%;
    min-height: 200px;
    padding-top: 40px;
    padding-left: 10px;
}

#cover-text>h2,
#cover-text>h3 {
    color: #fafafa;
}

#amazing {
    width: 100%;
    margin: 0 auto;
    background: url('../images/mountains-in-the-winter.webp') no-repeat center/cover;
    padding: 0;
    text-align: center;
    flex-basis: 200px;
    flex-grow: 1;
}

#why-visit {
    background-color: rgba(1, 22, 136, 0.6);
    color: #fafafa;
}

#amazing h3 {
    font-size: larger;
    font-weight: bold;
    color: #fafafa
}

#audio {
    position: inherit;
}

#about {
    background-color: red;
    width: 100%;
    text-align: center;
    color: #fafafa;
    padding: 10px;
    margin: 0;
}

#about h2 {
    padding: 15px;
    color: #3a3a3a;
    background-color: #00bbff;
    font-size: x-large
}

#about h3 {
    font-size: larger;
}

/*Photo page*/
#pictures img {
    width: 100%;
    line-height: 1em;
}

#pictures {
    line-height: 0;
}

/*Feedback section*/
main { 
    /* Enlarge main element to push footer down*/
    flex: 1 0 auto;
    /* Add margin at the top to prevent content from being covered by the header */
    margin-top: 60px;
    /* Enable flex properties for child elements */
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-color: #0516ff;
}

#feedback-for-container {
    background: url('../images/romania-map.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
}

#feedback { 
    background-size: cover;
    background-position: 100%;
    width: 100%;
    height: auto;
    flex-grow: 1;
    padding: 20px 10% 0 10%;
}

h2 {
    color: #fafafa;
    margin-bottom: 20px;
}

#feedback-form {
    color: #fafafa;
    background-color: rgba(255, 0, 0, 0.6);
    padding: 20vw 15px;
    padding-top: 10vh;
}

.text-input {
    background: #0b83fb76;
    color: #fafafa;
    width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 1px solid #fafafa;
    border-radius: 2px;
    padding: 0 5px;
}

.radio-button {
    width: 100%;
    display: flex;
    justify-content: center;

}

.feedback-button {
    margin-top: 20px;
    border-radius: 2px;
    padding: 15px 32px;
    font-size: 100%;
    background-color: #11f320;
    color: #3a3a3a;
}

.textbox {
    background-color: #0b83fb76;
    color: #fafafa;
    padding: 5px;
    width: auto;
    height: 100px;
}

/* Footer */
#social-networks {
    text-align: center;
    padding: 20px 10px;
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
    background-color: yellow;
}

#social-networks i {
    font-size: 200%;
    padding: 10%;
    color: #0516ff;
}

/*Media query for large or landscape photos 576px*/
@media screen and (max-width: 576px) { 
#feedback {
    background: url('../images/romania-flag.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
}
}

/*Media query for large or landscape photos 576px*/
@media screen and (min-width: 576px) {
    #pictures {
        column-count: 2;
        column-gap: 0;
    }

    #feedback-form {
        max-width: 250px;
        padding-top: 10%;
        left: 20%;
        top: 70px;
    }
}

/*Media query for tablet and larger screen (768px and up)*/
@media screen and (min-width: 768px) {

    /*header*/

    #menu {
        display: flex;
    }

    #menu>li {
        padding-left: 1rem;
    }

    .nav-toggle-label {
        display: none;
    }

    #logo {
        font-size: 150%;
        line-height: 50px;
        margin-left: 0.5rem;
    }

    /* Main content*/
    main {
        /*Push main content down to accomodate larger header */
        margin-top: 20px;
    }

    /*Places*/
    #cover-text {
        width: 300px;
        right: 50px;
    }

    /*Photos*/
    #pictures {
        column-count: 3;
    }

    /*Feedback*/
    #feedback-for-container {
        display: flex;
        justify-content: center;
    }

    #feedback-form {
        max-width: 300px;
        left: 20%;
        top: 50px;
    }

    .text-input:hover {
        border-color: #4968f3;
    }

    .feedback-button:hover {
        background-color: #61d1f0;
        color: #3a3a3a;
    }
}

/* Larger devices (Laptops and desktops 992px an up) */
@media screen and (min-width: 992px) {
    #menu a:hover {
        border-bottom: 1px solid #3a3a3a;
    }

    /*Photos*/
    #pictures {
        column-count: 4;
    }
}