/* color variables */
:root {
    --color-secondary-text-light: #8C7E77;
    --color-secondary-background: #F2D9CD;
    --color-primary: #17B7DA;
    --color-primary-background: #BFF4FF;
    --color-primary-text-dark: #102D33;
    --color-primary-text-light: #3E5F66;
    --color-secondary: #FB7A39;
    --translation: 310px;
    --animation-speed: 45s;
}

/* reset css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-primary-background);
    font-family: "Courgette", cursive;
}

/* Enhance the existing body and container styles */
/* Container style */
main {
    background-color: var(--color-primary-background);
    color: var(--color-primary-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* animation: rotateAnimation var(--animation-speed) linear infinite; */
}


.menuContainer {
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 0px;
    box-shadow: 0px 4px 0px 0px rgba(62, 95, 102, 0.75);
}



.menuImg {
    height: 100%;
    border-radius: 50%;
    border: var(--color-primary) solid 11px;
    aspect-ratio: 1/1;
}

.screw {
    border-radius: 50%;
    background: var(--color-primary-text-dark, #102D33);
    width: 8px;
    height: 8px;
    position: absolute;

}

.screw:nth-child(1) {
    top: 10px;
    left: 10px;
}

.screw:nth-child(2) {
    top: 10px;
    right: 10px;
}

.screw:nth-child(3) {
    bottom: 10px;
    left: 10px;
}

.screw:nth-child(4) {
    bottom: 10px;
    right: 10px;
}

.menuContainer div {
    padding: 10px 10px 10px 0;
}

.menuContainer:hover {
    .menuImg, h2 {
        border-color: var(--color-secondary);
        color: var(--color-secondary);
    }
}



.menuContainer p {
    font-size: 12px;
    font-weight: 100;
    font-family: sans-serif;
}


/* Text and link styling */
.menutext,
a {
    color: var(--color-white);
    /* Assuming you want white text */
    text-decoration: none;
    z-index: 1;
    font-size: 20px;
    margin-bottom: 4px;

    /* Ensures text is above any background elements */
}

a:hover {
    text-decoration: none;
}

header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}



#logo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-color: var(--color-primary, #17B7DA);
    border: 30px solid var(--color-primary, #17B7DA);
    box-shadow: 4px 8px 0px 0px #3E5F66;
}

header img {
    width: 100px;
    height: 100px;
    z-index: 1;
    border-radius: 150%;
    background-color: #deb887;
}

header #titleBanner {
    width: 150px;
    height: 20px;
    position: absolute;
    top: 43%;
    left: 44%;
    transform: translate(-55%, -45%) rotate(-15deg);
    z-index: 2;
    font-size: 12px;
    padding: 10px 10px;
    background: linear-gradient(104deg, #F2D9CD -36.21%, #F2D9CD 62.7%, #E5CEC3 63.03%, #E5CEC3 81.1%);
    box-shadow: 2px 4px 0px 0px #8C7E77;
    width: 300px;
    height: 80px;
    position: absolute;
    top: 20%;
    left: 50%;
    text-align: center;
}

/* add media querys, with no rotations etc. */
@media (max-width: 768px) {
    main {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: 79vh;
        margin: 20px;

    }

    header {
        height: 16vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-color: var(--color-primary);
    }


    .menuContainer {
        display: flex;
        transform: none;
        animation: none;
        border-radius: 20px;
        gap: 20px;
    }

}


/* media queries desktop */
@media (min-width: 769px) {

    .menuContainer {
        width: 300px;
        height: 100px;
        padding: 0px;
        background-color: white;
        border-radius: 50px;
        display: flex;
        justify-content: space-around;
        gap: 20px;
        align-items: center;
        position: absolute;
        transform-origin: center;
        /* This centers the rotation */


    }


    /* Animation */
    /* Keyframes definition for each menuContainer */
    @keyframes rotateAnimation1 {
        from {
            transform: rotate(0deg) translate(var(--translation));
        }

        to {
            transform: rotate(360deg) translate(var(--translation));
        }
    }

    @keyframes rotateAnimation2 {
        from {
            transform: rotate(-45deg) translate(var(--translation));
        }

        to {
            transform: rotate(315deg) translate(var(--translation));
        }
    }

    @keyframes rotateAnimation3 {
        from {
            transform: rotate(-90deg) translate(var(--translation));
        }

        to {
            transform: rotate(270deg) translate(var(--translation));
        }
    }

    @keyframes rotateAnimation4 {
        from {
            transform: rotate(-135deg) translate(var(--translation));
        }

        to {
            transform: rotate(225deg) translate(var(--translation));
        }
    }

    @keyframes rotateAnimation5 {
        from {
            transform: rotate(-180deg) translate(var(--translation));
        }

        to {
            transform: rotate(180deg) translate(var(--translation));
        }
    }

    @keyframes rotateAnimation6 {
        from {
            transform: rotate(-225deg) translate(var(--translation));
        }

        to {
            transform: rotate(135deg) translate(var(--translation));
        }
    }

    @keyframes rotateAnimation7 {
        from {
            transform: rotate(-270deg) translate(var(--translation));
        }

        to {
            transform: rotate(90deg) translate(var(--translation));
        }
    }

    @keyframes rotateAnimation8 {
        from {
            transform: rotate(-315deg) translate(var(--translation));
        }

        to {
            transform: rotate(45deg) translate(var(--translation));
        }
    }

    /* Apply keyframes animation to each child */
    .menuContainer:nth-child(1) {
        animation: rotateAnimation1 var(--animation-speed) linear infinite;
    }

    .menuContainer:nth-child(2) {
        animation: rotateAnimation2 var(--animation-speed) linear infinite;
    }

    .menuContainer:nth-child(3) {
        animation: rotateAnimation3 var(--animation-speed) linear infinite;
    }

    .menuContainer:nth-child(4) {
        animation: rotateAnimation4 var(--animation-speed) linear infinite;
    }

    .menuContainer:nth-child(5) {
        animation: rotateAnimation5 var(--animation-speed) linear infinite;
    }

    .menuContainer:nth-child(6) {
        animation: rotateAnimation6 var(--animation-speed) linear infinite;
    }

    .menuContainer:nth-child(7) {
        animation: rotateAnimation7 var(--animation-speed) linear infinite;
    }

    .menuContainer:nth-child(8) {
        animation: rotateAnimation8 var(--animation-speed) linear infinite;
    }
}


/* bock-o-meter */
.meter-image-container img {
    width: 400px;
    /* This will make the image take the full width of its parent container */
    height: 400px;
    /* Or any other value you'd prefer, to set a fixed height */
    object-fit: cover;
    /* This will scale and crop the image inside its box */
    object-position: top;
    /* This will make the image stick to the top of its box */
    border-radius: 5px;
    /* Optional: If you want to round the corners of the images a bit */
}

.image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 10px;
    border-radius: 5px;
    display: block;
}

.image-preview-container {
    display: inline-block;
    position: relative;
}

.delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* QR-Bock */
#qrcode-output {
    position: relative;
}

.bulma-loader-mixin {
    display: none;
}