:root {
    font-size: 16px;
    font-family: Arial, serif;
}

body {
    display: flex;
    justify-content: center;
    max-height: 90vh;

    /*background-image: url("../images!***");*/
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

button {
    margin-bottom: 8px;

    border-radius: 5px;
    width: 8.4rem;
    height: 2.4rem;
    font-size: 1.2rem;
    background-color: royalblue;
    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    /*background-color: lightskyblue;*/
    color: black;
}

.page {
    min-height: 700px;
    max-width: 900px;
}

.header-content {
    display: flex;
    justify-content: center;

    border-radius: 2px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 2px;
}

.logo a {
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    justify-content: space-between;

    padding: 10px;
    margin-bottom: 10px;
    margin-top: 10px;

    font-size: 1.5rem;

    border-radius: 2px;

    border: 2px solid transparent;
}

nav:hover {
    transition: 0.5s;
    /*border: 2px solid black;*/
}

#button-one {
    position: relative;

    width: 50%;
}

#button-one img {
    width: 100%;
    height: auto;
}

#button-two {
    position: relative;

    width: 50%;
}

#button-two img {
    width: 100%;
    height: auto;
}

.content {
    background-color: #F5F5F3;
    /*border: 1px solid black;*/
    border-radius: 2px;

}

.welcome {
    display: flex;
    justify-content: center;

    margin-top: 20px;
}

.choice {
    display: flex;
    justify-content: center;

    margin-left: 10%;
    margin-right: 10%;
}

.inline {
    display: inline;
}

/*Handling of buttons is a bit cursed but at least didn't break existing stuff*/
#button-one .link-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background-color: #555;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#button-one .link-button:hover {
    background-color: black;
}

#button-two .link-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background-color: #555;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#button-two .link-button:hover {
    background-color: black;
}

.link-button {
    width: auto;
    height: auto;

    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.link-button:focus {
    outline: none;
}

.link-button:active {
    color:red;
}

.underline-animation {
    display: inline-block;
    position: relative;

    color: black;
}

.underline-animation::after {
    position: absolute;
    content: '';

    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;

    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.28s ease-out;

    background-color: black;
}

.error-msg {
    border: 1px solid red;
    padding: 10px;
    color: red;
    max-width: 400px;
}

.underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media screen and (max-width: 680px) {

    #dropdowns {
        flex-direction: column;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;

        flex-direction: column;
        gap: 10px;
    }

    #checkout {
        justify-content: end;
    }

}