@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&family=Share+Tech&display=swap');

body {
    font-family: "Oxanium", sans-serif;
    background-color: #000;
    align-items: center;
    margin: 0;
    color: #d0e2e9;
}

/* ----- background ----- */

.background {
    /*background-image: url('../content/pictures/background.gif');*/
    background-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 1) 100%),
    url('../content/pictures/background.gif');

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
}

.background-index2 {
    background-color: #000;
    animation: flash 0.15s steps(1) 6;
}

.background-lingid {
    min-height: 100vh;
}

@keyframes flash {
    0%   { background-color: #161724; }
    50%  { background-color: #595db5; }
    100% { background-color: #161724; }
}

/* ------------------------------------ */


/* ----- navigeerimismenüü ----- */

.menu ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    display: inline-block;
    position: relative;
    text-transform: uppercase;
}

.menu ul li a {
    display: block;
    padding: 24px 45px;
    color: #d0e2e9;
    text-decoration: none;
    font-size: 24px;
    /* animatsioon */
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.menu ul li ul.dropdown li {
    display: block;
}

.menu ul li ul.dropdown {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    display: none;
}

.menu ul li ul.dropdown li a {
    text-align: center;
    padding: 20px 0;
    display: block;
}

.menu ul li a:hover {
    background: rgba(0, 0, 0, 0.4);
}

.menu ul li:hover ul.dropdown {
    display: block;
}

/* ------------------------------------ */


/* ----- sisu ----- */

.main-info {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    padding: 250px 0;
    gap: 100px;
}

.main-info img {
    width: 360px;
}

.description {
    font-size: 26px;
    margin-top: 20px;
    font-style: italic;
}

.description h2 {
    font-size: 40px;
    font-style: normal;
}

.description a {
    /*color: inherit;*/
    color: #6ab7bb;
}

.description a:hover {
    color: #81e5df;
}

/* ------------------------------------ */


/* ----- quote ----- */

.gap {
    width: 100%;
    height: 650px;
    background-color: #000;
}

.indexQuote {
    border: 2px solid grey;
    margin: 40px 550px;
    padding: 20px;
    text-align: center;
    font-family: "Share Tech Mono", monospace;
    font-size: 20px;
}

/* ------------------------------------ */


/* ----- sisu index2 ----- */

.secondary-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0 100px 0;
}

.secondary-info img {
    width: 760px;
}

.second-description {
    font-size: 26px;
    margin-top: 20px;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #5a5eb6;
    font-family: "Share Tech Mono", monospace;
}

.second-description h2 {
    font-size: 40px;
    font-style: normal;
}

.second-description a {
    /*color: inherit;*/
    color: #860c3b;
}

/*
.second-description a:hover {
    color: #c9165a;
}
*/

#playSound {
    cursor: pointer;
}

/*
#playSound:hover {
    color: #858afb;
}
*/

#volumeControl {
    appearance: none;
    height: 8px;
    border-radius: 6px;
    background: #860c3b;
    outline: none;
    /*transform: rotate(270deg);*/
}

#volumeControl:hover {
    background: #6f092e;
}

/* -webkit-slider-thumb -- chrome */
/* -moz-range-thumb -- firefox */

#volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #464890;
}

#volumeControl::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #464890;
}

/* ------------------------------------ */


/* ----- sisu lingid ----- */

.lingid-main-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 100px 600px;
    padding: 160px;
    background: #090d13;
}

.lingid-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.lingid-info a {
    text-decoration: none;
    color: #d0e2e9;
    font-variant: small-caps;
    font-size: 28px;
}

.lingid-info a:hover {
    color: #c9165a;
}

/* ------------------------------------ */


/* ----- rand pilt + kalkulaator ----- */

.piltmoistatus-info {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    padding: 280px 0;
    gap: 100px;
}

.piltmoistatus-info img {
    width: 260px;
}

.piltmoistatus-description {
    font-size: 26px;
    margin-top: 20px;
    font-style: italic;
}

.piltmoistatus-description h2 {
    font-size: 40px;
    font-style: normal;
}

.piltmoistatus-description a {
    /*color: inherit;*/
    color: #6ab7bb;
}

.piltmoistatus-description a:hover {
    color: #81e5df;
}

.moistatus {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.moista-valja {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.piltBackground {
    width: 360px;
    height: 300px;
    background-color: #151e2b;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin: 60px 0;
}

.piltBackground img {
    max-width: 90%;
    max-height: 90%;
    object-fit: cover;
}

.pilt {
    display: flex;
    flex-direction: column;
    padding: 240px;
    align-items: center;
    background-color: #090d13;
}

.randPilt {
    background-color: #28374c;
    color: #d0e2e9;
    border: none;
    padding: 15px 30px;
    font-family: "Oxanium", sans-serif;
    border-radius: 2px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

/*
#radio {
    padding: 0 0 50px 0;
}
*/

#vastus {
    text-align: center;
    margin: 20px;
}

#vastus2 {
    text-align: center;
    margin: 10px;
}

input#kogus {
    padding: 10px 15px;
    border-radius: 2px;
    font-size: 16px;
    outline: none;
    width: 120px;
    border: 2px solid #33425d;
    background-color: #33425d;
    color: #d0e2e9;
}

#kogusInput {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

/* ------------------------------------ */


/* ------------------------------------ */

.kalkulaator {
    display: flex;
    flex-direction: column;
    padding: 240px;
    align-items: center;
    background-color: #0c0b14;
}

.kalkulaatorBackground {
    width: 360px;
    height: 300px;
    background-color: #1b182e;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin: 60px 0;
}

.kalkulaatorBackground img {
    max-width: 90%;
    max-height: 90%;
    object-fit: cover;
}

input#pikkusInput {
    padding: 14px 12px;
    margin-top: 10px;
    border-radius: 2px;
    font-size: 16px;
    outline: none;
    width: 120px;
    height: 6px;
    border: 1px solid #1b182e;
    background-color: #1b182e;
    color: #d0e2e9;
}

input#kiirusInput {
    padding: 14px 12px;
    margin-top: 10px;
    border-radius: 2px;
    font-size: 16px;
    outline: none;
    width: 120px;
    height: 6px;
    border: 1px solid #1b182e;
    background-color: #1b182e;
    color: #d0e2e9;
}

.kalkButton {
    background-color: #28294c;
    color: #d0e2e9;
    border: none;
    padding: 12px 36px;
    font-family: "Oxanium", sans-serif;
    border-radius: 2px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

/* ------------------------------------ */


/* ----- jQuery ----- */

#helpButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 25px;
    height: auto;
    cursor: pointer;
}

#instruction {
    position: fixed;
    bottom: 60px;
    left: 20px;
    width: 420px;
    background-color: rgba(19, 28, 40, 0.5);
    color: #d0e2e9;
    padding: 30px;
    font-family: "Oxanium", sans-serif;
    font-size: 16px;
    display: none;
    margin-bottom: 20px;
}

#instruction h3 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

#instruction ul {
    /*list-style: none;*/
    padding: 0 20px;
    margin: 0;
}

#instruction ul li {
    padding: 6px 0 6px 0;
    text-align: justify;
}

#talkButton {
    cursor: pointer;
}

#phrases {
    background-color: rgb(126, 5, 51, 0.5);
    color: #d0e2e9;
    height: 500px;
    width: 360px;
    padding: 40px 50px;
    font-family: "Oxanium", sans-serif;
    display: none;
    font-size: 26px;
    /*color: #c9165a;*/
}


.dialogue {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}
/*
.phrases {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    font-size: 26px;
    color: #c9165a;
}
*/

.phrase {
    padding: 8px 0 8px 0;
}

#phrase1 {
}

#phrase2 {
    cursor: pointer;
    text-align: center;
    position: relative;
}

#phrase3 {
    display: none;
}

#coord {
    margin:0 0 18px 0;
}

/* ------------------------------------ */


/* ----- opilased ----- */

#cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

#cards .opilane:hover {
    transform: scale(1.05);
}

#cards .opilane {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 80px;
    margin: 20px;
    background-color: #090d13;
    border-radius: 2px;
    font-variant: small-caps;
    font-weight: bold;
    font-size: 20px;
    transition: transform 0.2s ease-in-out;
}

div#cards img {
    width: 180px;
    height: 180px;
    /*margin: 20px 0;*/
}

#cards a {
    margin: 15px 0;
}

#cards .opilane.mees:hover {
    background-color: #102938;
}

#cards .opilane.naine:hover {
    background-color: #381026;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

#cards .opilane:hover img {
    animation: shake 0.5s ease-in-out infinite;
}

/* ------------------------------------ */

#fade {
    cursor: pointer;
}

footer {
    text-align: center;
    margin: 16px 0;
}