:root {
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
    --grow-size-one: calc(0.9em + 0.4vw);
    --size-one: 1em;
    --size-half: 0.5em;
    --position-center: center;
    --primary-orange: #ff6b27;
    --primary-purple: #b027ff;
    --white: hsl(0, 0%, 100%);
    --white-80: hsl(0, 0%, 80%);
    --black: hsl(0, 0%, 20%);
    --bg-color: #a22;
}

/* 1.2 */
:is(*, ::before, ::after) {
    box-sizing: inherit;
    font-family: inherit;
    font-size: var(--grow-size-one);
}

/* 1.3 */
body {
    margin: 0 auto;
    min-height: 99vh;
    color: var(--white);
    background-color: var(--bg-color);
    position: relative;
    /* footer is absolutely positioned to this element */
}

/* 1.3.1 */
body *+* {
    margin: 0;
}

/* 1.4 */
footer {
    display: flex;
    width: 100%;
    //position: absolute;
    bottom: 0em;
    justify-content: center;
    margin-top: 4em;
}

@media (orientation: landscape) {
    body {
        padding-bottom: 1em;
    }

    footer {
        bottom: 0;
    }
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #be008e;
    border: 2 solid #8a0000;
    border-radius: 50%;
    max-width: 100%;
    height: auto;
}

.header-image {
    text-align: center !important;
}

.header {
    margin-bottom: 1rem;
}

.header h1 {
    margin-bottom: 0.1rem;
}

.text-center {
    text-align: center !important;
}

p {
    margin-left: 2rem;
    margin-right: 2rem;
}

.track-number-select {
    color: black;
}

.smslinkki {
    color: rgb(255, 90, 189);
}

.player {
    display: grid;
    grid-template-rows: repeat(4, auto);
    gap: var(--size-one);
    background-color: transparent;
}

/* 2.2 */
.title {
    text-align: var(--position-center);
    font-size: calc(2 * var(--size-one));
}

/* 2.3 */
.control-panel {
    display: flex;
    justify-content: space-around;
}

/* 2.4 */
.track-info {
    margin-top: var(--size-half);
    display: none;
    justify-content: var(--position-center);
    align-items: var(--position-center);
    padding: 0 var(--size-one);
}

/* 2.5 */
.track-name {
    display: none;
    justify-content: var(--position-center);
    align-items: center;
    font-size: var(--size-one);
    margin-top: -2em;
}

/* 2.6 */
.song-tracker {
    margin-right: var(--size-half);
}

/* 2.7 All buttons expect for the initial play button are hidden by default*/
.button--prev,
.button--next,
.button--repeat,
.button--pause,
.button--shuffle,
.volume-section {
    display: none;
}

/* 2.8 Sets up special states of the buttons when hovered/active -- used in desktop only*/
@media (min-width: 40em) {
    .button:hover {
        color: var(--white);
        transition: ease-out 0.5s;
    }

    .button--prev:active {
        transform: translateX(-1em);
    }

    .button--next:active {
        transform: translateX(1em);
    }

    .button--shuffle:active {
        transform: rotateX(180deg);
        transition: box-shadow 0.5s ease-out;
    }

    .button--repeat:active {
        transform: rotateZ(-180deg);
        transition: box-shadow 0.5s ease-out;
    }
}

/* 2.9 */
.button,
.volume-control {
    font-size: 0.8em;
    padding: 0.75em 1.75em;
    background-color: transparent;
    color: var(--white);
    border: none;
    border-radius: 0.4em;
    cursor: pointer;
}

@media (min-width: 40em) {

    .button,
    .volume-control {
        font-size: 1em;
        color: var(--white-80);
    }
}

@media (orientation: landscape) {

    .button,
    .volume-control {
        font-size: 1em;
        color: var(--white);
    }
}

/* 2.10 Make this button a bit bigger than the rest to highlight its importance */
.button--play,
.button--pause {
    font-size: 1.55em;
    padding: 0 1em;
}

@media (min-width: 40em) {

    .button--play,
    .button--pause {
        font-size: 2em;
        padding: 0 1em;
    }
}

/* 2.11 */
.button--repeat,
.button--shuffle {
    position: relative;
}

/* 2.12 Both classes are applied to notification markers on the repeat and shuffle buttons respectively to show to the user if either functionally is in effect. */
.repeat,
.shuffle {
    display: none;
}

/* 2.13 Applies classes to the repeat and shuffle notifications */
.infinity,
.shuffle-active,
.one {
    font-size: 0.5em;
    display: block;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    left: 0;
    padding-top: 3em;
    position: absolute;
}

/* 2.14 */
.infinity {
    font-size: 1em;
    padding-top: 1.2em;
}

/* 2.15 */
.volume-section,
.track-select {
    align-items: center;
    margin-left: 6em;
}

/* 2.16 The volume slider doesn't show on small screens, but does have a media query to display when a mobile device is in landscape orientation*/
.volume-control {
    width: 8em;
    height: 2vh;
    background-color: transparent;
    border-radius: var(--size-one);
    border: var(--white) solid 2px;
    padding: 0;
    margin-left: 0.5em;
}

@media (min-width: 40em) {
    .volume-control {
        opacity: 0.7;
    }

    .volume-control:hover {
        opacity: 1;
    }
}

@media (orientation: landscape) {
    .volume-control {
        opacity: 0.7;
        height: 4vh;
    }

    .volume-control:hover {
        opacity: 1;
    }
}

/* 2.17 This is to style the input slider for the volume on firefox, chrome and safari*/
.volume-control::-moz-range-thumb,
.volume-control::-webkit-slider-thumb {
    cursor: pointer;
    border-radius: 100%;
    width: 1.5vh;
    height: 1.5vh;
    background: var(--white);
    -webkit-appearance: none;
    appearance: none;
    border: var(--white) solid 2px;
}

@media (orientation: landscape) {

    .volume-control::-moz-range-thumb,
    .volume-control::-webkit-slider-thumb {
        width: 3vh;
        height: 3vh;
    }
}

/* 2.18 The icon used to show if a song is muted or not */
.volume-change {
    border: none;
    background-color: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 1.25em;
    max-width: 1em;
    padding: 1.25em;
}

/* 2.19 */
.progress {
    width: 100%;
    max-height: 1.5vh;
    background-color: transparent;
    border-radius: var(--size-one);
    border: var(--white) solid 2px;
    padding: 0;
    margin: 0 2em;
}

@media (min-width: 40em) {
    .progress {
        max-height: 4.5vh;
        opacity: 0.7;
    }

    .progress:hover {
        opacity: 1;
    }
}

@media (orientation: landscape) {
    .progress {
        opacity: 0.7;
        height: 4vh;
    }

    .progress:hover {
        opacity: 1;
    }
}

/* 2.20 This is to style the input slider for the song seeker. This is only for firefox, chrome and safari*/
.progress::-moz-range-thumb,
.progress::-webkit-slider-thumb {
    cursor: pointer;
    border-radius: 100%;
    width: 2vh;
    max-height: 2vh;
    -webkit-appearance: none;
    appearance: none;
    border: var(--white) solid 2px;
    background-color: var(--white);
}

@media (min-width: 40em) {

    .progress::-moz-range-thumb,
    .progress::-webkit-slider-thumb {
        width: 4vh;
        max-height: 4vh;
    }
}


*[class*='col-xs'] {
    padding: 5px;
}