:root {
    --primary: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary: #2196F3;
    --secondary-light: #64B5F6;
    --secondary-dark: #1976D2;
    --background: #FFFFFF;
    --foreground: #333333;
    --gray-light: #F5F5F5;
    --gray: #E0E0E0;
    --gray-dark: #9E9E9E;
    --border: #DDDDDD;
    --radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Form element sizing */
    --checkbox-size: 22px;
    --checkbox-dot-size: 10px;
    --checkbox-checkmark-left: 6px;
    --checkbox-checkmark-top: 2px;
    --checkbox-checkmark-width: 6px;
    --checkbox-checkmark-height: 11px;
    --radio-dot-offset: 4px;
    --icon-container-size: 36px;
    --form-border-radius: 12px;
    --icon-border-radius: 10px;
    --card-border-radius: 16px;
}

.nice-box {
    height: 250px;
    background-position: center center;
    background-size: cover;
    border-radius: 50px;
    background-repeat: no-repeat;
    margin: 5px;
}

.nice-box-small {
    height: 70px;
    background-position: center center;
    background-size: cover;
    border-radius: 50px;
    background-repeat: no-repeat;
    margin: 5px;
}

.fixed-width-label-50 {
    display: inline-block;
    width: 50px;
}

.fixed-width-label-100 {
    display: inline-block;
    width: 100px;
}

.fixed-width-label-200 {
    display: inline-block;
    width: 200px;
}

.bordered {
    border-radius: var(--radius);
    border: 1px solid var(--gray);
    padding: 5px 5px 5px 5px;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    /*border-bottom: 1px dotted black; !* If you want dots under the hoverable text *!*/
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: var(--bulma-text-80);
    color: #fff;
    text-align: left;
    padding: 5px;
    margin-left: 2em;
    border-radius: 6px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
}

.navbar-item > img {
    max-height: 5.5rem;
}

.site-title {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--gray);
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.elevation-card {
    border-top: 4px solid var(--primary);
}

.speed-card {
    border-top: 4px solid var(--secondary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 10px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
}

.elevation-icon {
    width: 24px;
    height: 24px;
    background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon'%3E%3Cpath d='m18 9-6-6-6 6'%3E%3C/path%3E%3Cpath d='M12 3v14'%3E%3C/path%3E%3Cpath d='M5 21h14'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.speed-icon {
    width: 24px;
    height: 24px;
    background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon'%3E%3Cpath d='m12 14 4-4'%3E%3C/path%3E%3Cpath d='M3.34 19a10 10 0 1 1 17.32 0'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.elevation-card .card-icon {
    background-color: var(--primary);
}

.speed-card .card-icon {
    background-color: var(--secondary);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
}

.elevation-card .card-title {
    color: var(--primary-dark);
}

.speed-card .card-title {
    color: var(--secondary-dark);
}

.card-description {
    padding: 0 20px 20px;
    color: var(--gray-dark);
}

.card-diagram {
    height: 160px;
    margin: 0 20px;
    border-radius: var(--radius);
    background-color: var(--gray-light);
}

.elevation-diagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100'%3E%3Cpath d='M0,80 L20,70 L40,60 L60,40 L80,30 L100,20 L120,25 L140,40 L160,35 L180,50 L200,45 L220,30 L240,35 L260,50 L280,60 L300,80' fill='none' stroke='%234CAF50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0,80 L20,70 L40,60 L60,40 L80,30 L100,20 L120,25 L140,40 L160,35 L180,50 L200,45 L220,30 L240,35 L260,50 L280,60 L300,80 L300,100 L0,100 Z' fill='rgba(76, 175, 80, 0.2)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.speed-diagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100'%3E%3Cpath d='M0,80 L20,60 L40,40 L60,30 L80,50 L100,70 L120,50 L140,30 L160,40 L180,60 L200,50 L220,30 L240,50 L260,70 L280,60 L300,80' fill='none' stroke='%232196F3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0,80 L20,60 L40,40 L60,30 L80,50 L100,70 L120,50 L140,30 L160,40 L180,60 L200,50 L220,30 L240,50 L260,70 L280,60 L300,80 L300,100 L0,100 Z' fill='rgba(33, 150, 243, 0.2)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.card-link {
    display: block;
    text-align: center;
    padding: 12px;
    margin: 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.elevation-card .card-link {
    background-color: var(--primary);
}

.elevation-card .card-link:hover {
    background-color: var(--primary-dark);
}

.speed-card .card-link {
    background-color: var(--secondary);
}

.speed-card .card-link:hover {
    background-color: var(--secondary-dark);
}

.loading-spinner,
.loading-spinner div,
.loading-spinner div:after {
    box-sizing: border-box;
}
.loading-spinner {
    color: currentColor;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.loading-spinner div {
    transform-origin: 40px 40px;
    animation: loading-spinner 1.2s linear infinite;
}
.loading-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3.2px;
    left: 36.8px;
    width: 6.4px;
    height: 17.6px;
    border-radius: 20%;
    background: currentColor;
}
.loading-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}
.loading-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}
.loading-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}
.loading-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}
.loading-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}
.loading-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}
.loading-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}
.loading-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}
.loading-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}
.loading-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}
.loading-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}
.loading-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}
@keyframes loading-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* To hide an element */
.hidden {
    display: none;
}

.nico-hidden {
    display: none !important;
}

/* To hide an element with fade */
.fade-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
