/* ----------- BODY ----------- */

body {
    font-family: 'Times New Roman', Times, serif;
    color: yellow;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-image: linear-gradient(to top, #000000 55%, #000ba4 100%);
}

/* ----------- HEADER ----------- */
#header{   
    text-align: center;
}

#header h1{
    text-decoration: underline;
    font-style: italic;
    font-weight: bold;
    margin-top: 0;
}

#description{
    text-align: center;
}

#star-header{
    font-size: 45px;
    margin-bottom: 0;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 140px;
    font-family: 'Times New Roman', serif;
    color: yellow;
    margin-bottom: 5px;
}

.dropdown-selected {
    padding: 5px 10px;
    background: transparent;
    border: 1px solid yellow;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
}

.dropdown-options {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid yellow;
    border-radius: 5px;
    position: absolute;
    width: 100%;
    display: none;
    z-index: 10;
}

.dropdown-options li {
    padding: 8px;
    cursor: pointer;
}

.dropdown-options li:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ----------- DESCRIBE-MOVIE ----------- */
#describe-movie{
    width: 95%;
    margin-bottom: 5px;
    text-align: left;
}

#describe-movie input{
    width: 150px;
    padding: 4px 6px;
    font-size: 14px;
}

#describe-movie select{
    width: 165px;
    padding: 4px 6px;
    font-size: 14px;
}

.buttons{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

#get {
    display: block;
    margin: 15px auto;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: yellow;
    border: 1px solid yellow;
    border-radius: 5px;
    cursor: pointer;
}

#reset {
    display: block;
    margin: 15px auto;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: yellow;
    border: 1px solid yellow;
    border-radius: 5px;
    cursor: pointer;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0;
}

.form-row label {
    width: 120px;
}

/* KÜÇÜK TOGGLE */
.switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 14px;
}

.switch input {
    display: none;
}


.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #555;
    border-radius: 14px;
    transition: 0.25s;
}


.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 2px;
    bottom: 2px;
    background-color: yellow;
    border-radius: 50%;
    transition: 0.25s;
}

input:checked + .slider {
    background-color: yellow;
}

input:checked + .slider:before {
    transform: translateX(14px);
}



/* ----------- RESULTS ----------- */
#results{
    border: 3px solid black;
    width: 95%;
    margin-bottom: 5px;
    text-align: left;
}
#results p{
    margin-left: 5px;
}

#year-max-select{
    background: rgba(0, 0, 0, 0.7);
    color: rgb(239, 239, 239);
}

#year-min-select{
    background: rgba(0, 0, 0, 0.7);
    color: rgb(239, 239, 239);
}

/* ----------- FOOTER ----------- */
#footer{
    width: 95%;
    margin-bottom: 5px;
    text-align: left;
}

#footer p{
    margin-left: 5px;
    color: rgb(239, 239, 239);
}

#footer a{
    color: rgb(229, 229, 229);
    font-style: italic;
    text-decoration: underline;
}

#footer a:hover{
    color: yellow;
}

#star-footer{
    font-size: 45px;
}

/* ------------- RESPONSIVE WIDTH -------------*/

/* ------------- GENEL -------------*/
/* DESKTOP*/
@media (min-width: 1025px) {
    #describe-movie,
    #results,
    #footer{
        width: 50%;
    }
}

/* MOBIL*/
@media (min-width: 600px) {
    #describe-movie,
    #results,
    #footer{
        width: 50%;
    }
}

/* ------------- DESCRIBE-MOVIE -------------*/
/* MOBIL */
@media (max-width: 600px) {
    #describe-movie {
        width: 95%;
    }

    .form-row label {
        width: 80px;
        font-size: 14px;
    }
    
    #describe-movie input {
        width: 120px;
        font-size: 13px;
        padding: 4px 5px;
    }

    #describe-movie select {
        width: 130px;
        font-size: 13px;
        padding: 4px 5px;
    }

    .form-row {
        gap: 6px;
        margin: 6px 0;
    }

    .switch {
        width: 20px;
        height: 10px;
    }

    .slider {
        border-radius: 10px;
    }

    .slider:before {
        height: 8px;
        width: 8px;
        left: 1px;
        bottom: 1px;
    }

    input:checked + .slider:before {
        transform: translateX(10px);
    }
}