:root {
    --primary-color: #3498db;
    --secondary-color: #6EC1E4;
    --grey-primary: #54595F;
    --grey-text: #7A7A7A;
    --dark-red: #800101;
    --dark-green: #27ae60;

    --big-text: 32px;
    --medium-text: 26px;
    --small-text: 20px;
}

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

.wrap{
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.container {
    margin-top: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

header {
    padding: 0px 0;
    background-color: #ffffff;
}

nav .wrap {
    padding: 0;
}

nav ul {
    list-style-type: none;
    text-align: center;
    display: flex;
}

nav ul li {
    display: inline;
    background-color: var(--primary-color);
    margin: 0px 1px;
    padding: 20px 10px;
    transition: 0.3s ease all;
    cursor: pointer;
}

nav ul li:hover {
    background-color: #5dbbfa;
}

nav ul li:first-child {
    display: none;
    background-color: white;
    padding: 0 15px;
    margin: auto auto auto 0;
    font-size: 3rem;
}

nav ul li:last-child {
    display: inline;
    background-color: white;
    padding: 0 15px;
    margin: auto 0 auto auto; 
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background-image: url('img/xenia-5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    width: 100%;
}

section.content {
    padding: 20px;
    text-align: left;
}

.content .info {
    display: flex;
    justify-content: center;
    align-items: top;
    gap: 20px;
}

.content .info img {
    width: 50%;
    max-width: 600px;
    border-radius: 10px;
    margin: auto;
    min-width: 300px;
}

.content .info .text {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 500px;
    text-align: left;
    width: 100%;
}

.content .info .text p {
    font-size: 1.4rem;
    text-align: left;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}


.hr-droid {
    display: flex;
}

.hr-line{
    width: 100%;
    position: relative;
    margin: 15px;
    border-bottom: 5px solid orange;
}

.fa {
    position: relative;
    top: 3px;
    color: orange;
    font-size: 3rem;
}

.plavby {
    background-color: #f9f9f9;
    padding: 20px;
    text-align: center;
}

.plavby h2 {
    margin: auto; 
    margin-bottom: 20px;
}

.plavby-grid {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    
    gap: 20px;
    justify-items: center;
}

.no-cruises {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 20px;
    color: var(--grey-primary);
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}


.plavba {
    background-color: #86c4ee;
    border-radius: 15px;
    padding: 20px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 2rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 350px;
    height: 140px;
    position: relative;
    justify-content: center;
    transition: 0.3s ease all;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.4);
    user-select: none;
}

.plavba:hover {
    background-color: #5dbbfa;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.8);
}

.plavba-date-div {
    position: absolute;
    top:0;
    left: 10px;
    transition: 0.3s ease all;
}

.plavba-day{
    font-size: 1rem;
}

.plavba-time {
    position: absolute;
    top:0;
    right: 10px;

}

.plavba-seats {
    position: absolute;
    bottom: 0;
    left: 10px;
    
}

.plavba button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.2rem;
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,1);
    transition: 0.3s ease all;
    color: black;
}

.plavba button:hover {
    background-color: #5dbbfa;
    box-shadow: transparent;
    box-shadow: 0px 0px 0px 5px rgba(0,0,0,1);

}

.below10 {
    color: rgb(255, 230, 87);
}

.zero {
    color: rgb(255, 80, 80);
}

.reservation {
    background-color: #f9f9f9;
    padding: 20px;
    text-align: center;
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    align-items: center;
    justify-items: center;
}

#cena {
    font-size: var(--small-text);
}

.btw {
    color: #9b9b9b;
    font-size: small;
}

.input-div {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 70%;
    text-align: left;
    margin: 20px 0;
}

input {
    
    font-family: inherit;
    width: 100%;
    max-width: 300px;
    border: none;
    border-bottom: 2px solid #9b9b9b;
    outline: 0;
    font-size: 17px;
    color: #000;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
}

input[type="number"] + label {
    display: inline;
    color: #9b9b9b;
    font-size: 17px;
    user-select: none;
}

input[type="checkbox"] + label {
    display: inline;
    color: #9b9b9b;
    font-size: 17px;
    user-select: none;
}

input[type="checkbox"] {
    width: 30px;
    height: 30px;
}

input[type="number"] {
    max-width: 50px;
}

input:focus {
    border-bottom: 2px solid var(--primary-color);
}

label {
    display: none;
}

.reservation-form p {
    margin: 10px auto;
    text-align: left;
    width: 70%;
}

.op_status {
    text-align: center;
    justify-content: center;
}

.op_status h1 {
    font-size: 5rem;
    margin-bottom: 20px;
}

button {
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    border-radius: 10px;
    transition: 0.3s ease all;
}
button:hover {
    background-color: #5dbbfa;
}

body {
    position: relative;
}

body::after {
    content: '';
    display: block;
    height: 40px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;

    display: flex;
    background-color: var(--grey-primary);
    text-align: center;
    height: 40px;
    align-items: center;
    justify-content: center;
}

footer p {
    color: white;
}

@media (max-width: 1000px){
    .content .info {
        flex-direction: column;
    }
}

@media (max-device-width: 1000px){
    .content .info {
        flex-direction: column;
    }

    .content .info img {
        width: 90%;
        margin: auto;
    }

    .content .info .text {
        max-width: 100%;
    }
}
@media (max-device-width: 768px){
    .hero {
        font-size: 1.5rem;
        height: 150px;
    }

    nav ul li {
        display: none;
    }

    nav ul li:first-child {
        display: inline;
    }

    nav ul li:last-child {
        display: inline;
        margin: auto 0 auto auto;
    }

    
}

nav.active ul {
    flex-direction: column;
}

nav.active ul li {
    display: block;
    margin: 0;
    width: 100%;
}

#success-dialog {
    color: green;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
    font-size: var(--small-text);
}

#success-dialog p:nth-child(1) {
    font-size: var(--medium-text);
}

#success-dialog i {
    font-size: var(--big-text);
}

.error {
    background-color: var(--dark-red);
    color: white;
    padding: 5px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
}

#res-form {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items:center;
}

#res-form button {
    max-width: 300px;
    width: 100%;
}


.lds-dual-ring {
    color: var(--primary-color);
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 0%);
}

.lds-dual-ring,
.lds-dual-ring:after {
    box-sizing: border-box;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6.4px solid currentColor;
    border-color: currentColor transparent currentColor transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
  @keyframes lds-dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

#message-box {
    display: flex;
    flex-direction: column;
    font-size: var(--big-text);
    color: white;
    padding: 50px 10px;
    display: flex;
    align-items: center;
}

#message-box p {
    text-align: center;
}

#message-box.success {
    background-color: var(--dark-green);
}

#message-box.fail {
    background-color: var(--dark-red);
}