/* Global styles for portfolio pages */

@font-face {
    font-family: 'VCR OSD Mono';
    src: url('fonts/VCR_OSD_MONO_1.001.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    line-height: 1.6;
    background-color: #000000;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
    padding-top: 60px; /* Push content below the navbar */
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px; /* Navbar height */
    background: rgba(0, 0, 0, 0.438);
    padding: 10px 0;
    text-align: center;
    z-index: 1001;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    transition: background 0.8s ease;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #00bcd4;
}

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px; /* Add space above and below each section */
}

.section-content {
    width: 90%; /* Bubble width */
    min-height: 150px; /* Minimum height for a nice look */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    border-radius: 30px; /* Bubble-like effect */
    text-align: center;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    z-index: 1000;
}

.section + .section {
    margin-top: 0px; /* Space between sections */
}

h1 {
    margin-bottom: 20px;
    font-size: 30px;
}

p {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 30px;
    margin-bottom: 30px;
}

ul {
    display: inline-block;
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
    text-align: left;
    margin-bottom: 0px;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px; /* Add space above and below each section */
}

.contact-info-content {
    width: 100%; /* Bubble width */
    min-height: 150px; /* Minimum height for a nice look */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.466);
    padding: 20px;
    border-radius: 0px; /* Bubble-like effect */
    text-align: center;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    z-index: 1000;
}

.wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(300px);
}

.gradient {
    position: fixed;
    border-radius: 100%;
    opacity: 0.75;
    mix-blend-mode: screen;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);
}

.gradient-1 {
    background: rgb(224, 114, 11) none repeat scroll 0% 0% / auto padding-box border-box;
    width: 700px;
    height: 700px;
    animation-duration: 12s;
    opacity: 0.75;
    left: 60%;
    top: 40%;
    z-index: -2;
    animation-name: animation-gradient-1;
}

.gradient-2 {
    background: rgb(23, 91, 218) none repeat scroll 0% 0% / auto padding-box border-box;
    width: 600px;
    height: 600px;
    animation-duration: 12s;
    opacity: 0.75;
    left: 40%;
    top: 60%;
    z-index: -1;
    animation-name: animation-gradient-2;
}

.gradient-3 {
    background: rgb(137, 1, 1) none repeat scroll 0% 0% / auto padding-box border-box;
    width: 500px;
    height: 500px;
    animation-duration: 12s;
    opacity: 0.75;
    left: 50%;
    top: 50%;
    z-index: -3;
    animation-name: animation-gradient-3;
}

@keyframes animation-gradient-1 {
    0% {
        transform: translateY(-50%) translateX(-50%) rotate(-20deg) translateX(20%);
    }
    25% {
        transform: translateY(-50%) translateX(-50%) skew(-15deg, -15deg) rotate(80deg) translateX(30%);
    }
    50% {
        transform: translateY(-50%) translateX(-50%) rotate(180deg) translateX(25%);
    }
    75% {
        transform: translateY(-50%) translateX(-50%) skew(15deg, 15deg) rotate(240deg) translateX(15%);
    }
    100% {
        transform: translateY(-50%) translateX(-50%) rotate(340deg) translateX(20%);
    }
}

@keyframes animation-gradient-2 {
    0% {
        transform: translateY(-50%) translateX(-50%) rotate(40deg) translateX(-20%);
    }
    25% {
        transform: translateY(-50%) translateX(-50%) skew(15deg, 15deg) rotate(110deg) translateX(-5%);
    }
    50% {
        transform: translateY(-50%) translateX(-50%) rotate(210deg) translateX(-35%);
    }
    75% {
        transform: translateY(-50%) translateX(-50%) skew(-15deg, -15deg) rotate(300deg) translateX(-10%);
    }
    100% {
        transform: translateY(-50%) translateX(-50%) rotate(400deg) translateX(-20%);
    }
}

@keyframes animation-gradient-3 {
    0% {
        transform: translateY(-50%) translateX(-50%) translateX(-15%) translateY(10%);
    }
    20% {
        transform: translateY(-50%) translateX(-50%) translateX(20%) translateY(-30%);
    }
    40% {
        transform: translateY(-50%) translateX(-50%) translateX(-25%) translateY(-15%);
    }
    60% {
        transform: translateY(-50%) translateX(-50%) translateX(30%) translateY(20%);
    }
    80% {
        transform: translateY(-50%) translateX(-50%) translateX(5%) translateY(35%);
    }
    100% {
        transform: translateY(-50%) translateX(-50%) translateX(-15%) translateY(10%);
    }
}

/* Sudoku Solver specific styles */
.sudoku-container {
    display: inline-grid;
    grid-template-columns: repeat(9, 50px);
    grid-template-rows: repeat(9, 50px);
    gap: 1px;
    margin: 20px;
    border: 2px solid black;
}

.cell {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid grey;
    font-size: 20px;
    cursor: pointer;
    background-color: white;
    color: black;
    position: relative;
}

.cell.fixed {
    background-color: lightgray;
    cursor: default;
}

.cell.computer {
    color: green;
}

.cell.selected {
    background-color: rgba(0, 0, 255, 0.5);
}

.cell.highlight {
    background-color: rgba(0, 0, 255, 0.2);
}

.number-buttons {
    margin-top: 10px;
}

button {
    font-size: 20px;
    margin: 5px;
    padding: 10px;
}

.sudoku-container div:nth-child(3n) {
    border-right: 2px solid black;
}

.sudoku-container div:nth-child(n+19):nth-child(-n+27),
.sudoku-container div:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid black;
}

/* Reference page styles */
.container {
    width: 80%;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

input[type="text"] {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.back-button {
    background-color: green;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
}

.yellow-background {
    background-color: yellow;
    padding: 10px;
}

.button {
    background-color: green;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    margin-right: 10px;
}

.textbox-container {
    display: flex;
    flex-wrap: wrap;
}

.textbox {
    flex: 1 0 calc(33.33% - 20px);
    margin: 5px;
}

.button-container {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
}
