/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and HTML styling */
body, html {
    height: 100%;
    background-color: rgb(255, 0, 0);
}

/* Header styling */
.textintro {
    color: rgb(255, 255, 255);
    margin-top: 5vh;
}

/* General Span styling */
.red {
    color: red !important;
}

/* Layout Containers */
.container {
    display: flex;
    height: 100vh;
}

.leftcolumn {
    width: 10vw;
    background-color: rgb(0, 0, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
}

.ovningar {
    background-color: rgb(0, 0, 0);
    color: white;
    text-align: center;
    width: 80%;
    height: 80%;
    padding: 10px;
    list-style-type: none;
}

.ovnhr {
    margin: 10px;
}

.egnapro{
    margin-bottom: 30px;
}

.nav ul {
    list-style-type: none;
    padding: 0;
}

.nav a {
    display: block;
    color: rgb(235, 0, 78);
    text-decoration: none;
    font-size: 1em;
    font-family: 'Times New Roman', Times, serif;
    transition: background-color 0.3s linear;
    text-decoration: underline;
    margin-top: 10px;
}

.nav a:hover {
    color: rgb(150, 245, 250);
    transition: font-size 0.5s;
}

.navbar li {
    display: inline-block;
    padding: 0px 30px;
}

.navbar li a {
    transition: all 0.3s ease 0s;
}

/* Underline effect for navbar links */
.navbar ul li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: blueviolet;
    display: block;
    margin: auto;
    transition: width 0.5s ease-in-out;
}

/* Expand underline on hover */
.navbar ul li a:hover::after {
    width: 100%;
}

.rightcolumn {
    width: 90vw;
    display: flex;
    flex-direction: column;
}

.top-right {
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 50vh;
}

.textintro {
    text-align: center;
}

.bottom-right {
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bildtext {
    color: brown;
    text-align: start;
}

/* Rotating Image Gallery Styling */
.box {
    position: relative;
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: animate 20s linear infinite;
}

@keyframes animate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.box-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
}

.box-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-1 {
    transform: rotateY(calc(1 * 45deg)) translateZ(200px);
}

.item-2 {
    transform: rotateY(calc(2 * 45deg)) translateZ(200px);
}

.item-3 {
    transform: rotateY(calc(3 * 45deg)) translateZ(200px);
}

.item-4 {
    transform: rotateY(calc(4 * 45deg)) translateZ(200px);
}

.item-5 {
    transform: rotateY(calc(5 * 45deg)) translateZ(200px);
}

.item-6 {
    transform: rotateY(calc(6 * 45deg)) translateZ(200px);
}

.item-7 {
    transform: rotateY(calc(7 * 45deg)) translateZ(200px);
}

.item-8 {
    transform: rotateY(calc(8 * 45deg)) translateZ(200px);
}
