/*================ css section & main page ========================================*/
:root {
    --color-low-dark: #1b1b1b;
    --color-low-white: #efefef;
    --color-white: #ffffff;
    --color-yellow: #ffc854;
    --color-blue: #5490FF;
    /* == */
    --ColorBtn: #fff;
    --animationDuration: 1s;
    --inputWidth: 200px;
    --inputHeight: calc(var(--inputWidth) / 3);
    --buttonWidth: calc(var(--inputWidth) / 1.5);
    --buttonHeight: calc(var(--inputWidth) / 3.5);
}

.center {
    display: table;
    margin: auto;
}

.mg-tb-5vh {
    margin: 5vh auto !important;
}
.mg-tb-2vh {
    margin: 2vh auto !important;
}

.fascinate-regular {
    font-family: "Fascinate", system-ui;
    font-weight: 400;
    font-style: normal;
}

.chango-regular {
    font-family: "Chango", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

::selection {
    background-color: #f7ca18;
    color: #1b1b1b;
}

.alert{
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
}

section {
    background-color: var(--color-yellow);
    height: 100vh;
    display: flex;
}

#firstCover .title {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 10px;
    margin: 0 auto;
}

#firstCover .title span {
    font-size: 3vw;
    color: var(--color-white);
    width: 100%;
    text-transform: uppercase;
    transform: translateX(-100%);
    animation: byBottom 1s ease both;
    font-weight: 600;
    letter-spacing: 0.25vw;
}

@media (max-width: 1500px) {
    #firstCover .title span {
        font-size: 5vw;
    }
}

@media (max-width: 780px) {
    #firstCover .title span {
        font-size: 7vw;
    }
}

#firstCover .title span a {
    position: relative;
    display: inline-block;
    /* margin-left: 0.5rem; */
    text-decoration: none;
    color: var(--color-blue) !important;
    text-decoration: inherit;
}

#firstCover .title span a::after {
    content: "";
    height: 5px;
    background-color: var(--color-blue);
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    animation: linkAfter 0.5s 1s ease both;
}

#firstCover {
    background-color: var(--color-white);
    flex-direction: column;
    background: url(https://cdn.pixabay.com/photo/2021/04/02/06/56/black-n-white-pattern-6143988_1280.png);
    background:
        linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.97)),
        url('https://cdn.pixabay.com/photo/2021/04/02/06/56/black-n-white-pattern-6143988_1280.png');

    background-size: 15%;
    background-position: center;
}

#firstCover .title span {
    color: var(--color-yellow);
}

#firstCover .title span a {
    color: var(--color-yellow) !important;
}

#firstCover .title span a::after {
    background-color: var(--color-yellow);
}

#firstCover .logo-yellow {
    max-width: 50%;
    display: flex;
    margin: 0 auto;
}

/*================ <- css section & main page ========================================*/

/*================ css btn form -> ========================================*/

/* ---- FORM */
#firstCover input, #firstCover button {
    font-family: 'Nunito', sans-serif;
}

#firstCover form {
    display: flex;
    align-items: center;
    justify-content: center;
}

#firstCover input {
    width: calc(var(--inputWidth) * 1.5);
    height: calc(var(--inputWidth) / 3);
    background: var(--color-yellow);
    border: none;
    border-radius: calc(var(--inputWidth) / 3.75);
    color: var(--color-white);
    font-size: calc(var(--inputWidth) / 12);
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px calc(var(--inputWidth) / 5);
    outline: none;
    cursor: pointer;
    transition: all 250ms;
    transition: width var(--animationDuration) ease-out, all 250ms;
    position: relative;
}

#firstCover input[readonly] {
    cursor: not-allowed;
}

#firstCover input:invalid {
    box-shadow: none;
}

#firstCover input::placeholder {
    color: var(--color-white);
    text-align: center;
    opacity: 1;
}

#firstCover input:not(.active):not(:read-only):hover {
    opacity: 0.9;
    transform: scale(1.1);
}

#firstCover input.active {
    cursor: initial;
    width: calc(var(--inputWidth) * 3);
    left: calc(var(--buttonWidth) / 2);
    padding: 10px calc(var(--buttonWidth) + (var(--inputHeight) - var(--buttonHeight))) 10px calc(var(--inputWidth) / 5);
}

#firstCover input.active::placeholder {
    text-align: left;
}

#firstCover input.active+button {
    display: block;
    font-weight: 100;
}

#firstCover button {
    width: var(--buttonWidth);
    height: var(--buttonHeight);
    background: var(--ColorBtn);
    border: 0;
    border-radius: calc(var(--inputWidth) / 3.75);
    position: relative;
    left: calc(-1 * (var(--buttonWidth) / 2 + (var(--inputHeight) - var(--buttonHeight)) / 2));
    color: var(--color-yellow);
    font-size: calc(var(--inputWidth) / 12);
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    z-index: 2;
}

#firstCover input+button {
    display: none;
}

#firstCover input.active+button {
    display: block;
}

/* Mobile styles for firstCover form */
@media (max-width: 600px) {
    #firstCover form {
        flex-direction: column;
        align-items: stretch;
    }
    #firstCover input {
        margin-bottom: 12px;
        font-size: 1.1rem;
        left: 0px !important;
        padding: 0px 30px !important;
    }
    #firstCover input.active {
        font-weight: 300;
        text-transform: lowercase;
        max-width: 80vw;
        width: 80vw !important;
    }
    #firstCover button {
        position: static;
        width: 80vw;
        max-width: 80vw;
        margin: 0 auto;
        left: 0;
        font-size: 1.1rem;
        border: 1px solid var(--color-yellow);
        margin-bottom: 24px;
        background-color: #ffc95426;
    }
}

/*========= generateur de phrase section ===========*/
.container-btn-bonheur {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 2vh;
    margin-bottom: 5vh;
}

@media (max-width: 780px) {
    .container-btn-bonheur {
        flex-direction: column-reverse;
        align-content: center;
        align-items: center;
        flex-wrap: nowrap;
    }
    #generateurSection button{
        margin-bottom: 5vh;
    }
}

#generateurSection{
    height: auto;
}
#spotifySection {
    height: auto;
}

#generateurSection button {
    background: var(--ColorBtn);
    border: 1px solid var(--color-yellow);
    left: 0;
    color: var(--color-yellow);
    z-index: 2;
    margin: 0 auto;

    width: calc(var(--inputWidth) * 1.5);
    height: calc(var(--inputWidth) / 3);
    border-radius: calc(var(--inputWidth) / 3.75);
    font-size: calc(var(--inputWidth) / 12);
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px calc(var(--inputWidth) / 5);
    outline: none;
    cursor: pointer;
    transition: all 250ms;
    transition: width var(--animationDuration) ease-out, all 250ms;
    position: relative;
}

#generateurSection button:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

#generateurSection button:active {
    transform: scale(0.9);
}

#phrase {
    font-family: 'Nunito', sans-serif;
    color: var(--color-yellow);
    font-size: x-large;
    font-weight: bold;
}

.spotify-box {
    width: 95%;
    margin-top: 3vh;
}

/* ===== FOOTER ===== */
#mainFooter {
    background: #fff;
    padding: 32px 0 16px 0;
    border-top: 1px solid #eee;
}
#mainFooter .footer-title {
    font-family: 'Fascinate', system-ui;
    font-size: 2rem;
    color: #ffc854;
    text-transform: uppercase;
    letter-spacing: 2px;
}
#mainFooter .footer-title a {
    color: var(--color-yellow) !important;
    text-decoration: none;
}
#mainFooter .footer-copyright {
    color: #000;
    opacity: 0.4;
    font-size: 1rem;
    margin: 12px 0 20px 0;
}

#mainFooter .btn {
    font-weight: 600;
}

#mainFooter .btn-outline-primary {
    color: var(--color-yellow);
    border-color: var(--color-yellow);
}

.btn-primary {
    color: var(--color-white);
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
    color: white !important;
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
}

.btn-outline-primary:active,
.btn-primary:active {
    background-color: var(--color-yellow) !important;
    opacity: 0.8;
    transform: scale(0.8);
    transition: all 250ms ease-in-out;
}