@import url('https://fonts.googleapis.com/css2?family=Petit+Formal+Script&display=swap');

/* Reset default browser styles */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

/* check https://i.pinimg.com/originals/cc/b1/95/ccb19576ec5676acdddf9645374b157f.png for more tints of green */
/* [ 94bb86 , a0c293 , accaa1 , b8d1ae , c4d9bc , cfe1c9 , dbe8d7 , e7f0e4 , f3f7f2 , ffffff ] */
:root{
    --main-color: #a0c293; /* #ff5c8a */
    --font-family: 'Petit Formal Script', cursive, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #212121;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    transition: height 0.5s ease;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

header {
    background-color: var(--main-color);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    transition: height 0.5s ease;
}

img {
    -webkit-user-drag: none;
}

h1 {
    font-size: 32px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1px;
    font-weight: bold;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: height 0.5s ease;
}

#photoGallery {
    max-width: 98vw;
    max-height: 65vh;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    transition: height 0.5s ease;
}

#mainImage {
    display: block;
    max-height: 65vh;
    max-width: 95vw;
    width: auto;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 0 50px black;
}

footer {
    background-color: var(--main-color);
    padding: 10px;
    border-radius: 10px 10px 0 0;
    transition: height 0.5s ease;
}

footer p {
    color: #ffffff;
    font-size: 24px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: bold;
}

.actions {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin: 0.5em;
    max-width: 50vw;
    transition: height 0.5s ease;
}

#pausebtn {
    display: flex;
    border: none;
    border-radius: 25px;
    color: #ffffff;
    background-color: var(--main-color);
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: bold;
    padding: 0.3em 0.5em;
    width: 50px;
    height: 50px;
    align-items: center;
    margin-bottom: 0.5em;
}

#pausebtn:hover{
    cursor: pointer;
}

#pausebtn img {
    position: relative;
    color: #ffffff;
    max-width: 40px;
    max-height: 40px;
}

#slider {
    margin-left: 2em;
    margin-right: 0.75em;
    appearance: none;
    -webkit-appearance: none;
    /* width: 100%; */
    height: 25px;
    background: #9b9b9b;
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 25px;
    overflow: hidden;
}

#slider:hover {
    opacity: 1;
}

#slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--main-color);
    cursor: pointer;
    border: 8px solid #ffffff;
    border-radius: 25px;
    box-shadow: -113px 0 0 100px var(--main-color);
}

#slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--main-color);
    cursor: pointer;
    border-radius: 25px;
}

#slidervalue {
    display: inline;
    color: #ffffff;
    font-size: 24px;
    width: 150px;
    text-align: end;
}

#deco {
    display: none;
}

.emoji {
    position: absolute;
    z-index: -1;
    width: 72px;
    height: 72px;
    overflow: hidden;
}

@media only screen and (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    #photoGallery {
        padding: 10px;
    }

    #mainImage {
        max-height: 60vh;
    }

    footer p {
        font-size: 18px;
    }

    .actions {
        flex-direction: column;
        justify-content: center;
    }

    #slider {
        margin: 0;
        justify-content: center;
    }

    #pausebtn {
        margin-left: 0;
    }

    #slidervalue {
        display: flex;
        justify-content: center;
    }
}

@media only screen and (max-height: 600px) {
    h1 {
        font-size: 24px;
    }

    #photoGallery {
        padding: 10px;
    }

    #mainImage {
        max-height: 65vh;
    }

    footer p {
        font-size: 18px;
    }
}
