/* source: itmat\index.htm style block 1 */
body {
            margin: 0;
            overflow: hidden;
            font-family: Arial, sans-serif;
        }

        /* Baggrundsstil */
        .background {
            position: relative;
            width: 100vw;
            height: 100vh;
            background-color: #f0f0f0;
        }

        /* Geometriske figurer */
        .parallelogram {
            width: 120px;
            height: 100px;
            background-color: #8A2BE2;
            transform: skew(20deg);
        }

        .trapezoid {
            width: 150px;
            border-bottom: 80px solid #FFD700;
            border-left: 25px solid transparent;
            border-right: 25px solid transparent;
            height: 0;
        }

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .shape:not(.circle) {
            animation: rotate 5s linear infinite;
        }

        .shape {
            position: absolute;
            opacity: 0.5;
            z-index: 1; /* Figurerne har lavere z-index, så de kommer bagved overskrift og knapper */
        }

        .circle {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: #FF6347;
        }

        .triangle {
            width: 0;
            height: 0;
            border-left: 50px solid transparent;
            border-right: 50px solid transparent;
            border-bottom: 100px solid #4682B4;
        }

        .square {
            width: 100px;
            height: 100px;
            background-color: #32CD32;
        }

        /* Knapper */
        .button-container {
            position: relative;
            margin: 10px auto; /* Increase margin to lower the buttons */
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            grid-gap: 20px;
            padding: 20px;
            z-index: 10; /* Sørger for at knapperne er over figurerne */
        }
        
        body {
            overflow-y: auto; /* Allow vertical scrolling */
        }

        .background {
            height: auto;
            min-height: 100vh;
        }


        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 15px 20px;
            color: #fff;
            text-align: center;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .button-icon {
            font-size: 44px;
            line-height: 1;
        }

        .button.color-1 { background-color: #f44336; }
        .button.color-2 { background-color: #2196F3; }
        .button.color-3 { background-color: #4CAF50; }
        .button.color-4 { background-color: #FFEB3B; color: black; }
        .button.color-5 { background-color: #FF9800; }

        .button.color-1:hover { background-color: #d33224; }
        .button.color-2:hover { background-color: #1976D2; }
        .button.color-3:hover { background-color: #3e8e41; }
        .button.color-4:hover { background-color: #f4dd24; color: black; }
        .button.color-5:hover { background-color: #e68900; }

        .excel-task-frame,
        .geogebra-task-frame,
        .programming-task-frame {
            position: relative;
            z-index: 10;
            width: min(1100px, calc(100% - 40px));
            margin: 0 auto 10px;
            padding: 18px 18px 10px;
            border: 4px solid #222;
            border-radius: 8px;
            background-color: rgba(255, 255, 255, 0.72);
            box-sizing: border-box;
        }

        .excel-task-frame .button-container,
        .geogebra-task-frame .button-container,
        .programming-task-frame .button-container {
            padding: 10px 0;
            margin: 0 auto;
        }

        .section-heading {
            color: black;
            font-size: 26px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 8px;
        }

        .programming-card-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            padding: 10px 0;
        }

        .submenu-card {
            display: flex;
            gap: 18px;
            align-items: center;
            min-height: 150px;
            padding: 22px;
            border: 2px solid #102033;
            border-radius: 8px;
            background: #fff;
            color: #102033;
            text-decoration: none;
            box-shadow: 8px 8px 0 #ffd60a;
            box-sizing: border-box;
        }

        .submenu-card:hover {
            transform: translateY(-2px);
        }

        .card-icon {
            font-size: 54px;
        }

        .submenu-card strong {
            display: block;
            margin-bottom: 7px;
            font-size: 30px;
            font-weight: 900;
        }

        .submenu-card small {
            display: block;
            color: #3b4b5f;
            font-size: 17px;
            line-height: 1.35;
        }

        .scratch-starter-section {
            margin-top: 18px;
        }

        .subsection-heading {
            margin: 0 0 10px;
            color: black;
            font-size: 22px;
            font-weight: bold;
            text-align: center;
        }

        .scratch-starter-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 16px;
        }

        .scratch-starter-card {
            display: grid;
            gap: 10px;
            padding: 12px;
            border: 2px solid #102033;
            border-radius: 8px;
            background: #fff;
            color: #102033;
            text-align: center;
            text-decoration: none;
            box-shadow: 8px 8px 0 #b7e4c7;
            box-sizing: border-box;
        }

        .scratch-starter-card:hover {
            transform: translateY(-2px);
        }

        .scratch-starter-card img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            border: 2px solid #102033;
            border-radius: 6px;
            background: #edf2f7;
        }

        .scratch-starter-card span {
            font-size: 19px;
            font-weight: 900;
        }

        /* Overskrift */
        .header {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            background-color: #90ee90;
            color: black;
            text-align: center;
            padding: 20px;
            font-size: 24px;
            z-index: 1000; /* Make sure the header stays above everything */
        }

        @media (max-width: 640px) {
            .button-container {
                grid-template-columns: 1fr;
                padding: 12px;
            }

            .programming-card-grid {
                grid-template-columns: 1fr;
            }

            .submenu-card {
                align-items: flex-start;
                flex-direction: column;
            }

            .scratch-starter-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (min-width: 641px) and (max-width: 980px) {
            .scratch-starter-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }



