* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: kookyCloud;
    src: url(../fonts/KookyCloud/Hello-KookyCloud.otf);
}

@font-face {
    font-family: kookyCloud-extra;
    src: url(./fonts/KookyCloud/Hello-KookyCloud-Extra.otf);
}

@font-face {
    font-family: bahnschrift;
    src: url(/fonts/BAHNSCHRIFT.TTF);
}

body {
    font-family: 'bahnschrift', Arial, sans-serif;
}

h1,
h2,
h3 {
    font-family: 'bahnschrift', Arial, sans-serif;
}

p {
    font-family: 'bahnschrift', Arial, sans-serif;
}

:root {
    --dark-grey: #222222;
    --beige: #F6EDE5;
    --darker-beige: #DDD4D1;
    --pink: #FD0062;
    --light-pink: #FECBEF;
    --purple: #5642BA;
    --neon-green: #CEFF00;
    --light-green: #f1ffb1;
}

#logo img {
    width: 15rem;
}

nav {
    background-color: var(--dark-grey);
    height: 2.8rem;
    padding-right: 1.1rem;
}

nav ul,
li {
    list-style: none;
}

nav ul {
    width: 100%;
    text-align: right;
}

nav li {
    display: inline-block;
    position: relative;
    background-color: var(--beige);
    color: var(--dark-grey);
    margin: 0.5rem;
    border-radius: 0.5rem;
}

nav a {
    display: block;
    line-height: 2.8rem;
    padding: 0 0.8rem;
    text-decoration: none;
    color: var(--dark-grey);
    font-size: 1.5rem;
    font-family: bahnschrift;
}

nav li a:hover {
    color: var(--dark-grey);
    background-color: var(--darker-beige);
    border-radius: 0.5rem;
}

.nav-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.nav-container img {
    height: 3.5rem;
}

header {
    background-color: var(--dark-grey);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


body::before {
    content: "";
    background-image: url('../img/kurvbaggrund.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
}

.checkout-container {
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 20px;
    max-width: 1200px;
    background-color: transparent;
    box-shadow: none;
    margin-top: 20px;
    font-family: bahnschrift;
}


.info-section,
.cart-section {
    padding: 0;
    overflow: hidden;
}

.info-section {
    background-color: var(--beige);
    width: 48%;
    margin-right: 60px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-family: 'bahnschrift', Arial, sans-serif;
}

.info-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.info-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
}

.info-section .form-group {
    display: flex;
    gap: 10px;
}

.info-section .form-group input {
    flex: 1;
}

.info-section .newsletter {
    margin-top: 20px;
}

.info-section .buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.info-section button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.back {
    display: inline-block;
    /* Gør linket til en blok, så det kan have padding og margin */
    padding: 10px 20px;
    /* Tilføj padding for at gøre knappen større */
    background-color: #ffcccb;
    /* Lyserød baggrundsfarve */
    color: #000;
    /* Sort tekstfarve */
    text-decoration: none;
    /* Fjern understregning fra linket */
    border-radius: 5px;
    /* Afrundede hjørner */
    border: none;
    /* Fjern standard border */
    cursor: pointer;
    /* Gør musemarkøren til en pointer */
    font-size: 1em;
    /* Skriftstørrelse */
    text-align: center;
    /* Centrer teksten */
}

.info-section .back {
    background-color: #ffcccb;
}

.info-section .continue {
    background-color: #d4edda;
    font-family: 'bahnschrift', Arial, sans-serif;
}

.cart-section {
    background-color: transparent;
    width: 48%;
    margin-left: 10px;
}

.cart-top {
    background-color: white;
    padding: 20px;
}

.cart-bottom {
    background-color: #D9D9D9;
    padding: 20px;
}

.summary p {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.total {
    font-weight: bold;
    font-size: 1.2em;
}

h2 {
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    justify-content: space-between;
}

.form-group input {
    width: 48%;
}

input {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
}

.newsletter {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.newsletter input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.newsletter label {
    margin-left: 5px;
    font-size: 1em;
    cursor: pointer;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.back {
    background-color: #ffcccb;
}

.continue {
    background-color: #d4edda;
}

.cart-section {
    width: 50%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #D9D9D9;
}

img {
    width: 80px;
    vertical-align: middle;
}

.summary {
    margin-top: 20px;
}

.summary p {
    display: flex;
    justify-content: space-between;
}

.total {
    font-weight: bold;
    font-size: 1.2em;
}

.buzzy {
    position: absolute;
    bottom: -20px;
    right: 320px;
    width: 100px;
    transform: scale(1.5);
    /* Gør billedet 1,5 gange større */
}


footer {

    background-color: var(--dark-grey);
    position: absolute;
    bottom: -24%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: var(--beige);
    width: 100%;
    padding: 1rem;
}

footer a {
    color: var(--beige);
}

footer h2 {
    font-size: 1.5rem;
    padding-bottom: 1rem;
}

footer img {
    width: 12.5rem;
}

.social-media {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.social-media img {
    width: 6rem;
}


#toast-notification {
    font-family: bahnschrift;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}


#toast-notification.toast-visible {
    visibility: visible;
    opacity: 1;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

.toast-visible {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 3.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.toast-error {
    font-family: bahnschrift;
    background-color: red;
    position: fixed;
    bottom: 20px;
    right: 20px;
}
