/* GLOBAL */
:root {
    --pink: magenta;
    --grey: #f2f2f2;
}

body {
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
}

/* Global button styling */
button {
    font-size: 14px;
    color: var(--pink);
    background-color: transparent;
    border: 2px solid var(--pink);
    text-transform: uppercase;
    border-radius: 3px;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
    margin-bottom: 25px;
}

button:hover {
    background-color: var(--pink);
    color: white;
}

/* Global img behaviour*/
img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Global section padding*/
section {
    padding: 32px;
}

/* HEADER */
header {
    padding: 10px 32px;
    background-color: black;
    position: fixed;
    width: 100%;
    z-index: 99;
}

.top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 42px;
}

header .row {
    align-items: center;
}

.nav-link {
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
}

.nav-link:hover {
    color: var(--pink);
}

/* Add the underline after the nav link */
.nav-link:hover:after, .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 25px);
    height: 2px;
    background-color: var(--pink);
}

/* HOME PAGE */
.jumbotron {
    padding-top: calc(128px + 64px);
}

.jumbotron .container {
    position: relative;
}

h1 {
    font-size: 38px;
    line-height: 41px;
    font-weight: 700;
    margin-bottom: 25px;
}

.pairing {
    background-color: var(--grey);
}

.row {
    gap: 50px;
    margin-bottom: 50px;
}

.row:last-child {
    margin-bottom: unset;
}

/* Set a minimum height for each content box */
#movie, #cocktail, #single-cocktail {
    min-height: 600px;
    border: 5px dotted black;
    position: relative;
    padding: 25px;
}

span {
    font-size: 125px;
    line-height: 125px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#movie h3, #movie img, #cocktail h3, #cocktail img {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

#movie h3:first-child, #cocktail h3:first-child {
    min-height: 75px;
}

.instructions {
    margin-top: 25px;
}

#movie img, #cocktail img {
    height: 325px;
}

#instructions {
    margin-top: 25px;
}

.top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 34px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
}

#matchBtn, .save-recipe {
    text-align: center;
}

/* MODAL */

.modal, .show {
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal {
    display: none;
}

.modal-content {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 280px;
    height: auto;
    padding: 25px;
    border-radius: 0px;
    border: 0px;
    justify-content: center;
}

h5 {
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

a {
    color: var(--pink);
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-navigation {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

button:hover {
    transition: all 0.3s ease;
}

button:hover a {
    color: white;
}

/* RECIPES PAGE */
.saved-recipes {
    padding-top: calc(128px + 64px);
}

.saved-recipes .row:first-child {
    margin-bottom: 100px;
}

.saved-cocktail-buttons:first-child {
    border: 1px solid black;
}

/* Specific style for saved cocktail buttons */
.saved-cocktail-buttons {
    display: block;
    border: 1px solid black;
    border-top: 0;
    padding: 10px;
    color: black;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saved-cocktail-buttons:hover {
    background-color: var(--grey);
    color: black;
}

.saved-cocktail-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#deleteBtn {
    margin-bottom: 0px;
    border: 0px;
    position: relative;
}

#deleteBtn:after {
    content: url('images/button.svg');
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(0deg);
    width: 22px;
    height: 22px;
}

#deleteBtn:hover {
    background-color: transparent;
    border: 0px;
    opacity: 0.5;
}

#single-cocktail img {
    margin-bottom: 25px;
}

#backBtn {
    margin-top: 25px;
    width: 100%;
}

.cocktail-title {
    text-align: left;
}

/* FOOTER */
footer {
    text-align: center;
    background-color: black;
    padding: 64px 0px;
    color: white;
}

footer .col {
    width: calc(100% - 64px);
    padding: 0;
}

.owners {
    margin-bottom: 50px;
    text-transform: uppercase;
}

.owners a {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.owners a:hover {
    color: var(--pink);
}

.credit img {
    width: 125px;
    height: auto;
}

/* MEDIA QUERIES */
@media only screen and (min-width: 510px) {

    #movie img,
    #cocktail img {
        height: 550px;
    }

}

@media only screen and (min-width: 767px) {
    
    .modal-content {
        width: 550px;
        padding: 50px;
    }

    .button-navigation {
        flex-direction: row;
        justify-content: space-between;
    }

    section {
        padding: 64px;
    }

    .container {
        padding: 0;
    }

    h1 {
        font-size: 56px;
        line-height: 59px;
    }

    #movie img, #cocktail img {
        height: 450px;
    }

    .col-md-6 {
        width: calc(50% - 25px);
    }

    .col-md-4 {
        width: calc(33.333% - 25px);
    }

    .col-md-8 {
        width: calc(66.666% - 25px);
    }

}

@media only screen and (min-width: 1080px) {

    .jumbotron .container:after {
        content: url('images/logomarque.svg');
        position: absolute;
        bottom: -112.5px;
        right: 0;
        width: 225px;
        height: 225px;
        transform: rotate(12.5deg);
    }

    .jumbotron .content {
        width: 75%;
    }

    #movie img, #cocktail img {
        height: 600px;
    }

}