@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap'); 
@import url('https://fonts.cdnfonts.com/css/schoolkxnew');


    * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        font-family: "Montserrat", sans-serif;
    }

    body {
        min-height: 100vh;
        font-family: 'Montserrat', sans-serif;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #2d2e83;
        color: white;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2;
    }
    
    .navbar button {
        padding: 10px 20px;
        font-size: 20px;
        background-color: #ef7d00;
        color: #ffffff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .navbar button:hover {
        background-color: #ef7b00e8;
        color: white;
    }

    .slide-container {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .slide {
        position: relative;
        width: 100%;
        height: 100vh;
    }

    .content {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 93%;
        left: 25%;
        width: 50%;
        height: max-content;
        color: #f2f2f2;
        text-align: center;
        padding: 20px;
        z-index: 2;
    }

    .background {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        filter: brightness(100%);
        z-index: 1;
        transition: background 0.5s ease;
        overflow: auto;
    }

    .background[data-item="one"] {
        background: url(images/icons-bg-black.png);
        background-size: cover;
        background-position: center;
    }

    .background[data-item="two"] {
        background: url(images/icons-bg-blue.png);
        background-size: cover;
        background-position: center;
    }

    .background[data-item="three"] {
        background: url(images/MijnKleutergroep2.png);
        background-size: cover;
        background-position: center;
    }

    .background-selection {
        margin-top: 20px;
        display: flex; 
        gap: 10px; 
        justify-content: center; 
        position: absolute; 
        bottom: 30px; 
        left: 30%;
        transform: translateX(-50%); 
        z-index: 3; 
    }

    .bg-button {
        width: 165px;
        height: 85px;
        border-radius: 5px; 
        border-color: black;
        cursor: pointer; 
        background-size: cover; 
        background-position: center; 
        transition: transform 0.3s; 
    }

    .bg-button[data-bg="one"] {
        background-image: url(images/icons-bg-white.png);
    }

    .bg-button[data-bg="two"] {
        background-image: url(images/icons-bg-blue.png);
    }

    .bg-button[data-bg="three"] {
        background-image: url(images/mkg-bg-icons.png);
    }

    .bg-button.active {
        transform: scale(1.1); 
    }

    .print-button {
        width: 70%;
        background-color: #2d2e83; 
        color: white;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        font-weight: bold;
        text-align: center;
        font-size: 1.3em;
        padding: 15px 0; 
        transition: background-color 0.3s ease; 
        margin: 20px auto 0; 
        display: none; 
    }

    .print-button:hover {
        background-color: #2d2e83; 
    }

    .add-button {
        position: absolute; 
        top: 35px; 
        right: 35px; 
        width: 50px; 
        height: 50px; 
        font-size: 50px; 
        color: white; 
        background-color: transparent; 
        border: none; 
        cursor: pointer; 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        transition: opacity 0.3s; 
        z-index: 2; 
        border-radius: 50px;
        background-color: #ef7d00;
    }
    
    .add-button:hover::after {
        content: 'Toevoegen';
        position: absolute;
        top: -30px; 
        left: 50%;
        transform: translateX(-50%);
        font-size: 16px;
        color: white;
        padding: 5px;
        border-radius: 3px;
        white-space: nowrap;
    }



    #canvas {
        position: absolute;
        top: 48%;
        left: 30%;
        transform: translate(-50%, -50%);
        z-index: 2;
        width: auto; 
        height: 80%; 
    }

    #container {
        position: absolute;
        right: 8%;
        top: 55%;
        transform: translateY(-50%);
    }

    #textarea-container {
        position: relative;
        width: 35vw;
        margin: 0 auto;
    }

    #textarea {
        font-family: "Montserrat", sans-serif;
        height: 400px;
        /* height: 70vh; */
        width: 100%;
        resize: none;
        padding: 100px 10px 10px 25px;
        font-size: 1.5em;
        background-color: #00a6d1;
        color: white;
        border-radius: 20px; 
        border: 5px solid rgba(0, 166, 209, 0.5);
        position: relative;
        z-index: 1;
        outline: none;
    }
    
    #textarea:focus {
        outline: none; 
        border: 5px solid rgba(0, 166, 209, 0.5); 
    }

    #textareaTitlesOnly {
        font-family: "Montserrat", sans-serif;
        height: 80vh;
        /* height: 400px; */
        width: 100%;
        resize: none;
        padding: 100px 10px 10px 25px; 
        font-size: 1.5em;
        background-color: #00a6d1;
        color: white;
        border-radius: 20px; 
        border: 5px solid rgba(0, 166, 209, 0.5);
        position: relative;
        z-index: 1;
        outline: none;
    }
    
    #textareaTitlesOnly:focus {
        outline: none; 
        border: 5px solid rgba(0, 166, 209, 0.5); 
    }
    
    #textarea-container h2 {
        margin-bottom: 20px;
    }
    
    .title-list {
        border: 1px solid #ccc;
        padding: 5px; 
        margin-top: 10px;
        overflow-y: auto;
        margin-top: 10px; 
    }
    
    .title-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2px; 
        padding: 3px 5px; 
        background-color: #00a6d1;
        border-radius: 3px;
    }
    
    .title-item span {
        cursor: pointer;
        color: rgb(255, 255, 255);
        font-weight: bold;
        padding: 0 10px;
    }
    
    .delete-button {
        font-size: 1.5em; 
        color: #FF0000 !important;  
        cursor: pointer;  
        transition: color 0.3s ease, transform 0.3s ease; 
    }
    
    .delete-button:hover {
        color: #FF3F3F; 
        transform: scale(1.2); 
    }
    
    .delete-button:active {
        transform: scale(1);
    }
    
    h2 {
        font-family: "Caveat Brush", cursive;
        position: absolute;
        top: 25px;
        left: -2vw;
        width: calc(100% - 20px);
        font-weight: bold;
        color: white;
        padding: 10px;
        text-align: center;
        margin: 0;
        font-size: 2.5em;
        border-radius: 15px; 
        z-index: 2; 
    }

    #textarea::placeholder {
        color: rgba(255, 255, 255, 0.5); 
    }

    @media print {
        #canvas {
            width: 100vh;
            height: 100vh;
        }
        .background {
            background-size: cover !important;
            background-position: center !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }
    }

/* == MODAL STYLING == */

    .modal {
        display: none;
        position: fixed;
        z-index: 4;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }

    .modal-content {
        position: absolute;
        top: 50%;
        left: 90%;
        transform: translate(-50%, -50%);
        background-color: #2d2e83;
        padding: 30px;
        width: 350px;
        height: 500px;
        border-radius: 10px;
        text-align: center;
        color: white;
    }

    .close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        color: #fff;
    }

    p {
        font-size: 1.7em;
        margin-bottom: 20px;
        margin-top: 10px;
        font-family: "Caveat Brush", cursive;
    }

    input[type="text"] {
        width: 100%;
        height: 45px;
        padding: 10px;
        font-size: 1.5em;
        text-align: center;
        margin-bottom: 20px;
        border-radius: 20px;
        border: none;
        background-color: white; 
        color: blue; 
    }

    input[type="text"]:focus {
        outline: none;
        box-shadow: none;
    }

    input[type="radio"] {
        appearance: none;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        border-color: white;
        margin-right: 10px;
        cursor: pointer;
        margin-top: 10px;
        margin-bottom: 10px;
        border: 2px solid ;
    }

    #model-checkbox-red {
        background-color: #ff3131 ;
    }
    #model-checkbox-orange {
        background-color: #ff6100 ;
    }
    #model-checkbox-yellow {
        background-color: #f5ff4d ;
    }
    #model-checkbox-green {
        background-color: #42d100 ;
    }
    #model-checkbox-blue {
        background-color: #287fff ;
    }
    #model-checkbox-purple {
        background-color: #8c52ff ;
    }
    #model-checkbox-pink {
        background-color: #ff66c4 ;
    }
    #model-checkbox-mkg-darkblue {
        background-color: #1a1c74;
    }
    #model-checkbox-mkg-blue {
        background-color: #00a6d1;
    }
    #model-checkbox-mkg-green {
        background-color: #afca0b;
    }
    #model-checkbox-mkg-yellow {
        background-color: #ffcc00;
    }
    #model-checkbox-mkg-orange {
        background-color: #ef7d00;
    }

    input[type="radio"]:checked {
        border: none;
    }

    .save-model-button {
        width: 85%;
        height: 55px ;
        background-color: #2d2e83;
        color: white;
        border-color: white;
        font-weight: bold;
        border-width: 3px;
        padding: 10px 24px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 1.3em;
        margin-top: 20px;
        border-style: solid;
        outline: none;
    }
    
    .save-model-button:active {
        border-style: solid;
    }
    