﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-image: url("kuvat/taustakuva.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Aldrich', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0000008c;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-color: rgba(198, 207, 214, 0.255); 
    border-style: solid;
    border-width: 0px 0px 2px 0px;    
    padding: 25px;
}

nav a{
    text-decoration: none;
    color: #dde6ee;
    padding: 10px;
    margin: 10px;
    font-size: 25px;
    margin: 10px 30px;
}

nav a:hover {
    color: #00ff88;
    transition: 0.2s;
}


#logo {
    position: absolute;
    left: 0;
}

#logo img {
  width: 110px;
    height: auto;
  margin-left: 0;
}

footer {
    position: relative;
    background-color: #000000b9;
    display: flex;
    flex-direction: column;
    border-top: 2px solid rgba(198, 207, 214, 0.255);
    margin-top: 50px;
    width: 100%;
    min-height: 200px;
    color: #dde6ee;
    margin-top: auto;
}

footer a {
    text-decoration: none;
    color: #dde6ee;
    font-size: 24px;
}


/* all footer divs */

#footerDivs {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1;
}


/* Logo on the left */

#footerLeft {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#footerLogo {
    width: 165px;
    height: auto;
    margin-left: 80px;
    margin-top: 40px;
}


/* middle links*/

#footerMiddle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(40px);
}

#footerLinks {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#footerLinks a:hover {
    color: #00ff88;
    transition: 0.2s;
}


/* right side of the footer */

#footerRight {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 70px;
    margin-top: 30px;
}

#socialIcons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 180px;
    column-gap: 15px;
    cursor: pointer;
}

#socialIcons p {
    flex-basis: 100%;
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 18px;
    margin-bottom: 20px;
}

#socialIcons i {
    font-size: 40px;
}

/* social media icon colors */

#facebook {
    color: #1877F2;
}

#twitter {
    color: #dde6ee;
}

#instagram {
    color: #E1306C;
}


/* Copyright text on bottom */

#footerBottom {
    color: rgba(221, 230, 238, 0.479);
    text-align: center;
    padding: 15px;
    margin: 0;
}

/* mobile */

@media (max-width: 768px) {
body { background-attachment: scroll; }

nav {
    flex-wrap: wrap;
    gap: 0;
    padding: 8px;
}

#logo { position: static; margin-left: -4px; }
#logo img { width: 72px; margin-left: 0; }
nav a { min-height: 44px; margin: 0; padding: 8px 10px; font-size: 15px; }

#footerDivs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px 16px;
    padding: 24px 16px;
    flex: none;
}

#footerLeft, #footerMiddle, #footerRight { flex: none; }
#footerLeft { justify-content: center; }
#footerLogo { width: 90px; margin: 0; }
#footerMiddle { justify-content: center; transform: none; }
#footerLinks { flex-direction: column; align-items: center; gap: 12px; margin-top: 0; }
footer a { font-size: 18px; }
#footerRight { grid-column: 1 / -1; justify-content: center; padding-right: 0; margin-top: 0; }
#socialIcons { width: 100%; }
#socialIcons i { font-size: 32px; }

}



/* ------------------Etusivu------------------------------ */




#etusivuBG {
    margin-top: auto;
    display: flex;
    justify-content: center;
    background-image: url("kuvat/etusivuBG2.png");
    background-size: cover;
    background-position: center;
    min-height: 90vh;

}

#etusivuDiv {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#etusivuH1 /*Etusivun otsikko h1*/ {
    display: flex;
    justify-content: center;
    color: #dde6ee;
    font-size: 50px;
    text-shadow: 0 0 8px rgba(0, 245, 155, 0.8), 0 0 18px rgba(0, 245, 155, 0.5); 
    margin-top: 15vh;   
}

#esc-span {
    color: #00ff88;
}

#etusivuDiv p {
    color: #dde6ee;
    font-size: 24px; 
    width: 35%;
    align-self: center;
    text-align: center;   
}

#huoneetButton {
    display: block;
    background-color: #00000077;
    border-radius: 2px;
    border: 1px solid #00ff88;
    font-family: 'Aldrich', sans-serif;
    padding: 15px 30px;
    color: #00ff88;
    font-size: 24px;
    margin: 1px auto;
    margin-top : 15px;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

  #huoneetButton:hover {
    background-color: #000000;
    box-shadow: 0 0 18px rgba(189, 189, 189, 0.65);
    cursor: pointer;
  }



#middleBox {
    color: #dde6ee;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #00000013;
    border: 2px solid #00ff8830;
    border-left: 0;
    border-right: 0;
    padding: 20px;
}

#middleBox p {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#middleBox h2 {
  text-align: center;
}

#middleBox i {
    display: block;
    color: #00ff88;
    font-size: 36px;
    text-align: center;
}

/*Mobile*/ 

@media (max-width: 768px){

#etusivuBG { min-height: 70vh; padding: 20px 16px; }
#etusivuDiv { width: 80%; }
#etusivuH1 { font-size: 36px; margin-top: 24px; }
#etusivuDiv p { width: 100%; max-width: 36rem; font-size: 18px; }
#huoneetButton { padding: 12px 20px; font-size: 18px; }

#middleBox {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding: 28px 16px;
}

#middleBox h2 { font-size: 18px; }
#middleBox p { font-size: 14px; text-align: center; }

}



/*------------------Huoneet-----------------------------------*/


/* OTSIKKO */

#valitsehuone,
.alateksti,
.huoneet {
  width: 85%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

#valitsehuone {
  margin-top: 35px;
  margin-bottom: 5px;
  font-size: clamp(42px,5vw,68px);
  color: #dde6ee;
}

#valitsehuone span {
  color: #00ff88;
}

.alateksti {
  margin-top: 0;
  margin-bottom: 20px;
  color: #8e9ca5
}

/* HUONEET */

.huoneet {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
  margin-bottom: 100px;
}

.huoneet article {
  display: flex;
  background: #08131c;
  border: 1px solid;
  border-radius: 14px;
  overflow: hidden;
}
.huoneet article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px #0008;
}

.huoneet img {
  width: 37%;
  object-fit: cover;
}

.sisalto {
  flex: 1;
  padding: 22px;
  min-width: 0;
}

/* BOKSIEN TEKSTIT */

.ylatiedot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: bold;
}

.sisalto h2 {
  margin: 0 0 10px;
  font-size: 27px;
  color: #dde6ee;
}

.vaikeus {
  margin: 0 0 14px;
  font-weight: bold;
}

.kuvaus {
  color: #8e9ca5;
  font-size: 16px;
  line-height: 1.5;
}

.sisalto a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 6px;
  color: #08131c;
  text-decoration: none;
  font-weight: bold;
}
.sisalto a:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

/* VÄRIT */

#paakayttooikeus { border-color:#00ff88; }
#pakettimyrsky { border-color:#29b6f6; }
#nollapaiva { border-color:#ff6534; }
#kuollutkoodi { border-color:#a970ff; }

#paakayttooikeus .ylatiedot,
#paakayttooikeus .vaikeus { color:#00ff88; }

#pakettimyrsky .ylatiedot,
#pakettimyrsky .vaikeus { color:#29b6f6; }

#nollapaiva .ylatiedot,
#nollapaiva .vaikeus { color:#ff6534; }

#kuollutkoodi .ylatiedot,
#kuollutkoodi .vaikeus { color:#a970ff; }

#paakayttooikeus a { background:#00ff88; }
#pakettimyrsky a { background:#29b6f6; }
#nollapaiva a { background:#ff6534; }
#kuollutkoodi a { background:#a970ff; }


/* TABLETTI */

@media (max-width: 1100px) {

  .huoneet {
    grid-template-columns: 1fr;
    width: 90%;
  }

  .huoneet article {
    width: 100%;
  }

  .huoneet img {
    width: 38%;
  }

  .sisalto {
    min-width: 0;
  }
}


/* PUHELIN */

@media (max-width: 700px) {

  #valitsehuone,
  .alateksti,
  .huoneet {
    width: 90%;
  }

  #valitsehuone {
    font-size: 40px;
  }

  .huoneet article {
    flex-direction: column;
  }

  .huoneet img {
    width: 100%;
    height: 210px;
  }

  .sisalto {
    padding: 18px;
  }

  .ylatiedot {
    font-size: 13px;
  }

  .sisalto h2 {
    font-size: 23px;
  }

  .kuvaus {
    font-size: 15px;
  }
}

/*------------------Ota yhteyttä-----------------------------------*/

/* Koko sivun asetus */

main {
    flex: 1;
    padding-bottom: 60px;
}

/* Sivun otsikko */

.ythotsikko {
    padding: 40px 40px 20px;
    align-self: center;
}

#ythotsikko1 {
    margin: 0 0 16px;
    font-size: 4rem;
    color: #dde6ee;
}

#ythotsikko2 {
    color: #00ff88;
    margin-left: 8px;
}

#yhteysp {
    color:#8e9ca5;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

/* Yhteystiedot */

.kortit{
    margin: 0 auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
    gap: 30px;
}
.kortti{
    background: #0d1c29;
    border: 1px solid #00ff88;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
}
.kortti .icon-pyörä {
    color: #00ff88;
    font-size: 48px;
}
.kortti h2{
    margin: 16px 0 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #dde6ee;

}
.kortti p{
    margin: 0;
    color:#8e9ca5;
    line-height: 1.6;
}

/* Infoa saavutettavuudesta */

.sisalto1 {
    max-width: 1200px;
    margin: 60px auto 0;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.vasen h2 {
    margin: 0 0 24px;
    font-size: 2.2rem;
}
#laheta{
    color:#00ff88; 
}
#laheta2{
    color:#dde6ee;
    position: relative;
    left: 10px;
}
.vasen p {
    margin: 0;
    color:#8e9ca5;
    font-size: 1.05rem;
    line-height: 1.8;
}

.lisainfo {
    margin-top: 40px;
}

.lisainfo h3 {
    margin: 28px 0 8px;
    font-size: 1.2rem;
    color:#dde6ee;
}

/* Sivun kuva */

.oikea {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pyorea-kuva{
    position: relative;
    left: 80px;
    width: 400px;
    max-width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff88;
}

/* Tabletti kok */

@media (max-width: 1100px) {

    .kortit {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
    }

    .sisalto1 {
        width: 90%;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .pyorea-kuva {
        width: 300px;
        left: 0;
    }

    .ythotsikko {
        text-align: center;
    }
}


/* Puhelimen kok */

@media (max-width: 700px) {

    .ythotsikko {
        padding: 30px 20px 20px;
        text-align: center;
    }

    #ythotsikko1 {
        font-size: 40px;
    }

    #yhteysp {
        font-size: 16px;
    }

    .kortit {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kortti {
        padding: 24px 15px;
    }

    .sisalto1 {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vasen h2 {
        font-size: 28px;
    }

    .pyorea-kuva {
        width: 230px;
        left: 0;
    }
}

