html, body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: gainsboro;
    color: black;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

aside {
    background-color: gainsboro;
    padding: 15px;
    margin-left: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    float: left;
    width: 250px;
    max-height: 100vh;
    overflow-y: auto;
}

ul.tree-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.tree-item {
    cursor: pointer;
    margin: 5px 0;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    color: black;
}

.tree-item:hover {
    background-color: #d0d0d0;
}

.tree-item.hover-parent {
    color: blue;
}

.tree-item.hover-child {
    color: blue;
}

.tree-item ul .tree-item:not(.hover-child) {
    color: black;
}

.toggle-btn {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.toggle-btn svg {
    width: 16px;
    height: 16px;
    stroke: #333;
    fill: none;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.tree-item.expanded > .toggle-btn svg {
    transform: rotate(90deg);
    stroke: #007bff;
}

ul.tree-list ul {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
    background-color: gainsboro;
    max-height: 300px;
    overflow-y: auto;
}

.tree-item.expanded > ul {
    display: block;
}

.main-content {
    margin-left: 270px;
    margin-right: 60px;
    padding: 20px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    box-sizing: border-box;
}

.main-content p {
    white-space: pre-wrap;
    line-height: 1.6;
    text-align: justify;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: black;
    background-color: gainsboro;
}

footer a {
    color: #007BFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.font {
    color: black;
    text-shadow: 5px 5px 5px grey;
    margin: 0;
    gap: 10px;
    text-align: center;
    background-color: gainsboro;
}

a#herf_main {
    color: black;
    text-decoration: none;
}


a#herf_main:hover {
    color: red;
}


b#herf_main {
    color: black;
    text-decoration: none;
}

b#herf_main:hover {
    color: red;
}


img.crown-car {
    max-width: 40% !important;
    page-break-inside: avoid;
    -webkit-transition: -webkit-transform 4s;
    -moz-transition: -moz-transform 4s;
    -o-transition: -o-transform 4s;
    transition: transform 4s;
}
img.crown-car:hover {
    -webkit-transform: rotate(360deg) scale(1.25, 1.25);
    -moz-transform: rotate(360deg) scale(1.25, 1.25);
    -o-transform: rotate(360deg) scale(1.25, 1.25);
    transform: rotate(360deg) scale(1.25, 1.25);
}

@media print {
    html, body {
        background-color: white !important;
        color: black;
        width: auto;
        height: auto;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    aside,
    .tree-list,
    .toggle-btn {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 20px;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .main-content p {
        font-size: 14pt;
        line-height: 1.6;
        text-align: justify;
    }

    footer {
        position: static !important;
        background-color: white !important;
        color: black !important;
        page-break-before: always;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
	}
	
	.main-content img.crown-car {
        display: none;
    }
	
	.hide-on-print {
        display: none;
    }

    a[href]:after {
        content: none !important;
    }
}
@media screen and (max-width: 480px) {
    html, body {
        overflow: auto;
        width: 100%;
        height: auto;
        font-size: 14px;
    }

    aside {
        margin-left: 10px;
        width: 100%;
        max-height: 150px;
        overflow-y: auto;
        float: none;
        box-shadow: none;
        border-radius: 0;
        padding: 10px;
    }

    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 15px;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    footer {
        position: static !important;
        width: 100% !important;
        padding: 10px;
    }
}

