/*
MAIN STYLES FOR OLLIKORPI.FI
Olli Korpi 2024
*/

/* ladataan fontti */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Fjalla One';
    font-style: normal;
    font-weight: 300;
    src: url('/wp-content/themes/olli-korpi-teema/fonts/FjallaOne-Regular.ttf') format('truetype');
    /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300;
    src: url('/wp-content/themes/olli-korpi-teema/fonts/SourceSans3-VariableFont_wght.ttf') format('truetype');
    /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

.content {
    /*background-image: linear-gradient(0deg, #77c9d4, #57bc90);*/
    background: rgb(222,242,241);
    background: linear-gradient(90deg, rgba(222,242,241,1) 20%, rgba(255,255,255,1) 50%, rgba(222,242,241,1) 80%);
}

.mouse {
	width: 20px;
	height: 40px;
	border: 2px solid #3aafa9;
	border-radius: 60px;
	position: relative;
	&::before {
		content: '';
		width: 5px;
		height: 5px;
		position: absolute;
		top: 5px;
		left: 50%;
		transform: translateX(-50%);
		background-color: #3aafa9;
		border-radius: 50%;
		opacity: 1;
		animation: wheel 2s infinite;
		-webkit-animation: wheel 2s infinite;
	}
}

@keyframes wheel {
	to {
		opacity: 0;
		top: 30px;
	}
}

@-webkit-keyframes wheel {
	to {
		opacity: 0;
		top: 30px;
	}
}

.icon-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fjalla One', sans-serif;
}

.page {
    margin: 0 auto;
}

.otsake h1 {
    font-size: 80px;
    color: #3aafa9;
    text-align: center;
    right: 0;
    left: 0;
    margin: auto;
    padding-top: 40px;
}

p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 18px;
}

/* sticky header */
#masthead {
    top: 0;
    width: 100% !important;
    z-index: 2;
}

#colophon {
    position: relative;
    background-color: #def2f1f1;
    color: #3aafa9;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.menu-item {
    margin: 0 10px;
}

#primary-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#primary-menu li a {
    font-size: 21px;
    font-family: 'Fjalla One', sans-serif;
    font-weight: bold;
    color: #3aafa9;
    fill: #3aafa9;
    text-align: center;
}

#primary-menu li a i {
    font-size: 24px; /* Asettaa ikonin koon */
}

#renderCanvas {
    width: 100vw;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(222,242,241);
    background: linear-gradient(90deg, rgba(222,242,241,1) 20%, rgba(255,255,255,1) 50%, rgba(222,242,241,1) 80%);
    z-index: 9999; /* Ensure it covers everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3aafa9; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

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

.container {
    width: 100%;
}

ul {
    margin: 0 0 0 0;
}

.welcome {
    position: absolute;
    display: block;
    background-color: #def2f1f1;
    padding: 20px;
    margin: 20px;
    right: 0;
    left: 0;
    margin: auto;
    width: 60%;
}

.me {
    position: absolute;
    display: block;
    background-color: #def2f1f1;
    padding: 20px;
    margin: 20px;
    right: 0;
    left: 0;
    margin: auto;
    width: 60%;
}

.education {
    position: absolute;
    display: block;
    background-color: #def2f1f1;
    padding: 20px;
    margin: 20px;
    right: 0;
    left: 0;
    margin: auto;
    width: 60%;
}

.work {
    position: absolute;
    display: block;
    background-color: #def2f1f1;
    padding: 20px;
    margin: 20px;
    right: 0;
    left: 0;
    margin: auto;
    width: 60%;
}

.skills {
    position: absolute;
    display: block;
    background-color: #def2f1f1;
    padding: 20px;
    margin: 20px;
    right: 0;
    left: 0;
    margin: auto;
    width: 60%;
}

.free-time {
    position: absolute;
    display: block;
    background-color: #def2f1f1;
    padding: 20px;
    margin: 20px;
    right: 0;
    left: 0;
    margin: auto;
    width: 60%;
}

.contact {
    position: absolute;
    display: block;
    background-color: #def2f1f1;
    padding: 20px;
    margin: 20px;
    right: 0;
    left: 0;
    margin: auto;
    width: 60%;
}

.botsake {
    position: absolute;
    top: -90px;
    font-size: 60px;
    color: #3aafa9;
    text-align: center;
    right: 0;
    left: 0;
    margin: auto;
}

.cf7-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.cf7-two-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.cf7-column {
    flex: 1 1 45%;
    box-sizing: border-box;
}

.cf7-form-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.cf7-form-container input[type="text"],
.cf7-form-container input[type="email"],
.cf7-form-container input[type="tel"],
.cf7-form-container textarea {
    width: 100%;
    padding: 10px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.cf7-form-container textarea {
    height: 150px;
}

.cf7-form-container input[type="submit"] {
    padding: 10px 15px;
    background-color: #3aafa9;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
}

.cf7-form-container input[type="submit"]:hover {
    background-color: #57bc90;
}

@media (max-width: 900px) {
    .cf7-column {
        flex: 1 1 100%;
    }

    .gallery-columns-3 {
        grid-template-columns: repeat(2, 1fr);
      }
}

@media (max-width: 600px) {
    .cf7-form-container {
        padding: 5px;
    }

    .cf7-form-container input[type="submit"] {
        width: 100%;
    }
}


@media screen and (max-width: 600px) {
    .welcome {
        width: 100%;
    }

    .me {
        width: 100%;
    }

    .education {
        width: 100%;
    }

    .work {
        width: 100%;
    }

    .skills {
        width: 100%;
    }

    .free-time {
        width: 100%;
    }

    .contact {
        width: 100%;
    }

    .gallery-columns-3 {
        grid-template-columns: repeat(1, 1fr);
      }
}